This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEditor; | |
| using System.Collections; | |
| using System.Linq; | |
| [CustomEditor(typeof(SplineMesh))] | |
| public class SplineMeshEditor : Editor | |
| { | |
| protected SplineMesh m_Target; | |
| protected MeshFilter m_MeshFilter; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * At least two points are needed to interpolate something. | |
| * @class Lagrange polynomial interpolation. | |
| * The computed interpolation polynomial will be reffered to as L(x). | |
| * @example | |
| * var l = new Lagrange(0, 0, 1, 1); | |
| * var index = l.addPoint(0.5, 0.8); | |
| * console.log(l.valueOf(0.1)); | |
| * | |
| * l.changePoint(index, 0.5, 0.1); |
NewerOlder