Table of Contents

Class CGPath

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

source CGPath

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

dest CGPath
source CGPath

Dispose(bool)

protected override bool Dispose(bool disposing)

Parameters

disposing bool

Returns

bool

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

f float

0..1

position Vector3
direction Vector3

a.k.a tangent

up Vector3

a.k.a normal

InterpolateDirection(float)

Interpolates Direction by F

public Vector3 InterpolateDirection(float f)

Parameters

f float

0..1

Returns

Vector3