Class CGPath
- Namespace
- FluffyUnderware.Curvy.Generator
Path Data (Shape + Direction (Spline Tangents) + Orientation/Up)
[CGDataInfo(0.13, 0.59, 0.95, 1)]
public class CGPath : CGShape
- Inheritance
-
CGPath
- Derived
- Inherited Members
Constructors
CGPath()
public CGPath()
CGPath(CGPath)
public CGPath(CGPath source)
Parameters
sourceCGPath
Properties
Directions
Tangents of the path's points, in the path's local space
public SubArray<Vector3> Directions { get; set; }
Property Value
- SubArray<Vector3>
Remarks
Setting a new SubArray<T> will Free(SubArray<T>) the current SubArray<T> instance
Methods
Clone<T>()
public override T Clone<T>() where T : CGData
Returns
- T
Type Parameters
T
Copy(CGPath, CGPath)
public static void Copy(CGPath dest, CGPath source)
Parameters
Dispose(bool)
protected override bool Dispose(bool disposing)
Parameters
disposingbool
Returns
Interpolate(float, out Vector3, out Vector3, out Vector3)
Interpolates Position, Direction and Normal by F
public void Interpolate(float f, out Vector3 position, out Vector3 direction, out Vector3 up)
Parameters
ffloat0..1
positionVector3directionVector3a.k.a tangent
upVector3a.k.a normal
InterpolateDirection(float)
Interpolates Direction by F
public Vector3 InterpolateDirection(float f)
Parameters
ffloat0..1
Returns
- Vector3