Struct BezierKnot
This struct contains position and tangent data for a knot. The position is a scalar point and the tangents are vectors.
The Spline class stores a collection of BezierKnot that form a series of connected
Bezier
Inherited Members
Namespace: UnityEngine .Splines
Assembly: solution.dll
Syntax
[Serializable]
public struct BezierKnot : ISerializationCallbackReceiver, IEquatable<BezierKnot>
Constructors
Name | Description |
---|---|
Bezier |
Create a new BezierKnot struct. |
Bezier |
Creates a new Bezier |
Bezier |
Create a new BezierKnot struct. |
Fields
Name | Description |
---|---|
Position | The position of the knot. On a cubic Bezier curve, this is equivalent to P0 or P3, depending on whether this knot is forming the first or second control point of the curve. |
Rotation | Rotation of the knot. |
Tangent |
The tangent vector that leads into this knot. On a cubic Bezier curve, this value is used to calculate P2 when used as the second knot in a curve. |
Tangent |
The tangent vector that follows this knot. On a cubic Bezier curve, this value is used to calculate P1 when used as the first knot in a curve. |
Methods
Name | Description |
---|---|
Equals(object) | Compare against an object for equality. |
Equals(Bezier |
Compare two knots for equality. |
Get |
Calculate a hash code for this knot. |
On |
See ISerializationCallbackReceiver. |
On |
See ISerializationCallbackReceiver. |
To |
Create a string with the values of this knot. |
Transform(float4x4) | Multiply the position and tangents by a matrix. |
Operators
Name | Description |
---|---|
operator +(Bezier |
Knot position addition. This operation only applies to the position, tangents and rotation are unmodified. |
operator -(Bezier |
Knot position subtraction. This operation only applies to the position, tangents and rotation are unmodified. |