C# Class Curves.Curve

Datei anzeigen Open project: TomBBonin/UnityHelpers Class Usage Examples

Public Properties

Property Type Description
BankColor UnityEngine.Color
ControlPoints UnityEngine.Vector3[]
CurvatureColor UnityEngine.Color
Length float
MaxBankAngle float
NormalColor UnityEngine.Color
Resolution int
SplineColor UnityEngine.Color
TangentColor UnityEngine.Color

Public Methods

Method Description
Draw ( ) : void
Evaluate ( float t, Vector3 &tangent, Vector3 &curvature ) : Vector3
GetBankAngle ( Vector3 tangent, Vector3 curvature, float maxBank ) : float
GetCurvePoints ( ) : Curves.CurvePoint[]
MeasureCurve ( ) : void

Protected Methods

Method Description
Curve ( int resolution, Vector3 controlPoints ) : UnityEngine
FixNormals ( CurvePoint &curvePoints ) : void
GetCurvePositions ( Curve curve, int resolution, Vector3 controlPoints ) : UnityEngine.Vector3[]

Method Details

Curve() protected method

protected Curve ( int resolution, Vector3 controlPoints ) : UnityEngine
resolution int
controlPoints UnityEngine.Vector3
return UnityEngine

Draw() public method

public Draw ( ) : void
return void

Evaluate() public abstract method

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

FixNormals() protected static method

protected static FixNormals ( CurvePoint &curvePoints ) : void
curvePoints CurvePoint
return void

GetBankAngle() public static method

public static GetBankAngle ( Vector3 tangent, Vector3 curvature, float maxBank ) : float
tangent UnityEngine.Vector3
curvature UnityEngine.Vector3
maxBank float
return float

GetCurvePoints() public abstract method

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

GetCurvePositions() protected static method

protected static GetCurvePositions ( Curve curve, int resolution, Vector3 controlPoints ) : UnityEngine.Vector3[]
curve Curve
resolution int
controlPoints UnityEngine.Vector3
return UnityEngine.Vector3[]

MeasureCurve() public abstract method

public abstract MeasureCurve ( ) : void
return void

Property Details

BankColor public_oe property

public Color,UnityEngine BankColor
return UnityEngine.Color

ControlPoints public_oe property

public Vector3[],UnityEngine ControlPoints
return UnityEngine.Vector3[]

CurvatureColor public_oe property

public Color,UnityEngine CurvatureColor
return UnityEngine.Color

Length public_oe property

public float Length
return float

MaxBankAngle public_oe static_oe property

public static float MaxBankAngle
return float

NormalColor public_oe property

public Color,UnityEngine NormalColor
return UnityEngine.Color

Resolution public_oe property

public int Resolution
return int

SplineColor public_oe property

public Color,UnityEngine SplineColor
return UnityEngine.Color

TangentColor public_oe property

public Color,UnityEngine TangentColor
return UnityEngine.Color