C# Class Curves.CatmullRom

Inheritance: Curve
Mostra file Open project: TomBBonin/UnityHelpers Class Usage Examples

Public Properties

Property Type Description
CloseLoop bool

Public Methods

Method Description
CatmullRom ( int resolution, Vector3 controlPoints, bool closeLoop = false ) : UnityEngine
Evaluate ( float t, Vector3 &tangent, Vector3 &curvature ) : Vector3
GetCurvePoints ( ) : Curves.CurvePoint[]
GetCurvePoints ( int resolution, Vector3 controlPoints, bool closeLoop = false ) : Curves.CurvePoint[]
GetCurvePositions ( int resolution, Vector3 controlPoints, bool closeLoop = false ) : UnityEngine.Vector3[]
MeasureCurve ( ) : void

Private Methods

Method Description
Evaluate ( Vector3 p0, Vector3 p1, Vector3 tanP0, Vector3 tanP2, float t ) : Vector3
Evaluate ( Vector3 p0, Vector3 p1, Vector3 tanP0, Vector3 tanP1, float t, Vector3 &tangent ) : Vector3
Evaluate ( Vector3 p0, Vector3 p1, Vector3 tanP0, Vector3 tanP1, float t, Vector3 &tangent, Vector3 &curvature ) : Vector3
GetClampedPointIdx ( int pointIdx ) : int
GetPointOnCurve ( Vector3 p0, Vector3 p1, Vector3 m0, Vector3 m1, float t, float &distanceOnCurve, CurvePoint &prevPoint ) : CurvePoint

Method Details

CatmullRom() public method

public CatmullRom ( int resolution, Vector3 controlPoints, bool closeLoop = false ) : UnityEngine
resolution int
controlPoints UnityEngine.Vector3
closeLoop bool
return UnityEngine

Evaluate() public method

public Evaluate ( float t, Vector3 &tangent, Vector3 &curvature ) : Vector3
t float
tangent UnityEngine.Vector3
curvature UnityEngine.Vector3
return UnityEngine.Vector3

GetCurvePoints() public method

public GetCurvePoints ( ) : Curves.CurvePoint[]
return Curves.CurvePoint[]

GetCurvePoints() public static method

public static GetCurvePoints ( int resolution, Vector3 controlPoints, bool closeLoop = false ) : Curves.CurvePoint[]
resolution int
controlPoints UnityEngine.Vector3
closeLoop bool
return Curves.CurvePoint[]

GetCurvePositions() public static method

public static GetCurvePositions ( int resolution, Vector3 controlPoints, bool closeLoop = false ) : UnityEngine.Vector3[]
resolution int
controlPoints UnityEngine.Vector3
closeLoop bool
return UnityEngine.Vector3[]

MeasureCurve() public method

public MeasureCurve ( ) : void
return void

Property Details

CloseLoop public_oe property

public bool CloseLoop
return bool