C# Класс BezierCurves.BezierCurve3D

Наследование: UnityEngine.MonoBehaviour
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddKeyPoint ( ) : BezierPoint3D

Adds a key point at the end of the curve

AddKeyPointAt ( int index ) : BezierPoint3D

Add a key point at a specified index

GetApproximateLength ( ) : float
GetApproximateLengthOfCubicCurve ( BezierPoint3D startPoint, BezierPoint3D endPoint, int sampling ) : float
GetApproximateLengthOfCubicCurve ( Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent, int sampling ) : float
GetBinormal ( float time, Vector3 up ) : Vector3
GetBinormalOnCubicCurve ( float time, Vector3 up, BezierPoint3D startPoint, BezierPoint3D endPoint ) : Vector3
GetBinormalOnCubicCurve ( float time, Vector3 up, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : Vector3
GetCubicSegment ( float time, BezierPoint3D &startPoint, BezierPoint3D &endPoint, float &timeRelativeToSegment ) : void
GetNormal ( float time, Vector3 up ) : Vector3
GetNormalOnCubicCurve ( float time, Vector3 up, BezierPoint3D startPoint, BezierPoint3D endPoint ) : Vector3
GetNormalOnCubicCurve ( float time, Vector3 up, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : Vector3
GetPoint ( float time ) : Vector3

Evaluates a position along the curve at a specified normalized time [0, 1]

GetPointOnCubicCurve ( float time, BezierPoint3D startPoint, BezierPoint3D endPoint ) : Vector3
GetPointOnCubicCurve ( float time, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : Vector3
GetRotation ( float time, Vector3 up ) : Quaternion
GetRotationOnCubicCurve ( float time, Vector3 up, BezierPoint3D startPoint, BezierPoint3D endPoint ) : Quaternion
GetRotationOnCubicCurve ( float time, Vector3 up, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : Quaternion
GetTangent ( float time ) : Vector3
GetTangentOnCubicCurve ( float time, BezierPoint3D startPoint, BezierPoint3D endPoint ) : Vector3
GetTangentOnCubicCurve ( float time, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : Vector3
RemoveKeyPointAt ( int index ) : bool

Removes a key point at a specified index

Защищенные методы

Метод Описание
OnDrawGizmos ( ) : void

Описание методов

AddKeyPoint() публичный Метод

Adds a key point at the end of the curve
public AddKeyPoint ( ) : BezierPoint3D
Результат BezierPoint3D

AddKeyPointAt() публичный Метод

Add a key point at a specified index
public AddKeyPointAt ( int index ) : BezierPoint3D
index int The index at which the key point will be added
Результат BezierPoint3D

GetApproximateLength() публичный Метод

public GetApproximateLength ( ) : float
Результат float

GetApproximateLengthOfCubicCurve() публичный статический Метод

public static GetApproximateLengthOfCubicCurve ( BezierPoint3D startPoint, BezierPoint3D endPoint, int sampling ) : float
startPoint BezierPoint3D
endPoint BezierPoint3D
sampling int
Результат float

GetApproximateLengthOfCubicCurve() публичный статический Метод

public static GetApproximateLengthOfCubicCurve ( Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent, int sampling ) : float
startPosition UnityEngine.Vector3
endPosition UnityEngine.Vector3
startTangent UnityEngine.Vector3
endTangent UnityEngine.Vector3
sampling int
Результат float

GetBinormal() публичный Метод

public GetBinormal ( float time, Vector3 up ) : Vector3
time float
up UnityEngine.Vector3
Результат UnityEngine.Vector3

GetBinormalOnCubicCurve() публичный статический Метод

public static GetBinormalOnCubicCurve ( float time, Vector3 up, BezierPoint3D startPoint, BezierPoint3D endPoint ) : Vector3
time float
up UnityEngine.Vector3
startPoint BezierPoint3D
endPoint BezierPoint3D
Результат UnityEngine.Vector3

GetBinormalOnCubicCurve() публичный статический Метод

public static GetBinormalOnCubicCurve ( float time, Vector3 up, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : Vector3
time float
up UnityEngine.Vector3
startPosition UnityEngine.Vector3
endPosition UnityEngine.Vector3
startTangent UnityEngine.Vector3
endTangent UnityEngine.Vector3
Результат UnityEngine.Vector3

GetCubicSegment() публичный Метод

public GetCubicSegment ( float time, BezierPoint3D &startPoint, BezierPoint3D &endPoint, float &timeRelativeToSegment ) : void
time float
startPoint BezierPoint3D
endPoint BezierPoint3D
timeRelativeToSegment float
Результат void

GetNormal() публичный Метод

public GetNormal ( float time, Vector3 up ) : Vector3
time float
up UnityEngine.Vector3
Результат UnityEngine.Vector3

GetNormalOnCubicCurve() публичный статический Метод

public static GetNormalOnCubicCurve ( float time, Vector3 up, BezierPoint3D startPoint, BezierPoint3D endPoint ) : Vector3
time float
up UnityEngine.Vector3
startPoint BezierPoint3D
endPoint BezierPoint3D
Результат UnityEngine.Vector3

GetNormalOnCubicCurve() публичный статический Метод

public static GetNormalOnCubicCurve ( float time, Vector3 up, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : Vector3
time float
up UnityEngine.Vector3
startPosition UnityEngine.Vector3
endPosition UnityEngine.Vector3
startTangent UnityEngine.Vector3
endTangent UnityEngine.Vector3
Результат UnityEngine.Vector3

GetPoint() публичный Метод

Evaluates a position along the curve at a specified normalized time [0, 1]
public GetPoint ( float time ) : Vector3
time float The normalized length at which we want to get a position [0, 1]
Результат UnityEngine.Vector3

GetPointOnCubicCurve() публичный статический Метод

public static GetPointOnCubicCurve ( float time, BezierPoint3D startPoint, BezierPoint3D endPoint ) : Vector3
time float
startPoint BezierPoint3D
endPoint BezierPoint3D
Результат UnityEngine.Vector3

GetPointOnCubicCurve() публичный статический Метод

public static GetPointOnCubicCurve ( float time, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : Vector3
time float
startPosition UnityEngine.Vector3
endPosition UnityEngine.Vector3
startTangent UnityEngine.Vector3
endTangent UnityEngine.Vector3
Результат UnityEngine.Vector3

GetRotation() публичный Метод

public GetRotation ( float time, Vector3 up ) : Quaternion
time float
up UnityEngine.Vector3
Результат UnityEngine.Quaternion

GetRotationOnCubicCurve() публичный статический Метод

public static GetRotationOnCubicCurve ( float time, Vector3 up, BezierPoint3D startPoint, BezierPoint3D endPoint ) : Quaternion
time float
up UnityEngine.Vector3
startPoint BezierPoint3D
endPoint BezierPoint3D
Результат UnityEngine.Quaternion

GetRotationOnCubicCurve() публичный статический Метод

public static GetRotationOnCubicCurve ( float time, Vector3 up, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : Quaternion
time float
up UnityEngine.Vector3
startPosition UnityEngine.Vector3
endPosition UnityEngine.Vector3
startTangent UnityEngine.Vector3
endTangent UnityEngine.Vector3
Результат UnityEngine.Quaternion

GetTangent() публичный Метод

public GetTangent ( float time ) : Vector3
time float
Результат UnityEngine.Vector3

GetTangentOnCubicCurve() публичный статический Метод

public static GetTangentOnCubicCurve ( float time, BezierPoint3D startPoint, BezierPoint3D endPoint ) : Vector3
time float
startPoint BezierPoint3D
endPoint BezierPoint3D
Результат UnityEngine.Vector3

GetTangentOnCubicCurve() публичный статический Метод

public static GetTangentOnCubicCurve ( float time, Vector3 startPosition, Vector3 endPosition, Vector3 startTangent, Vector3 endTangent ) : Vector3
time float
startPosition UnityEngine.Vector3
endPosition UnityEngine.Vector3
startTangent UnityEngine.Vector3
endTangent UnityEngine.Vector3
Результат UnityEngine.Vector3

OnDrawGizmos() защищенный Метод

protected OnDrawGizmos ( ) : void
Результат void

RemoveKeyPointAt() публичный Метод

Removes a key point at a specified index
public RemoveKeyPointAt ( int index ) : bool
index int The index of the key point that will be removed
Результат bool