Struct LinearBezier3
public readonly struct LinearBezier3 : ICurve3
- Implements
- Inherited Members
Constructors
LinearBezier3(Point3, Point3)
Initializes a new LinearBezier3 with the specified endpoints.
public LinearBezier3(Point3 p0, Point3 p1)
Parameters
Fields
P0
The starting point of the segment.
public readonly Point3 P0
Field Value
P1
The ending point of the segment.
public readonly Point3 P1
Field Value
Properties
this[float]
Evaluates the curve at the given parameter t.
Alias for Lerp(float).
public Point3 this[float t] { get; }
Parameters
tfloat
Property Value
Methods
Length()
public float Length()
Returns
Length(float)
Returns the length of the segment.
The precision parameter is ignored for linear segments.
public float Length(float precision)
Parameters
precisionfloat
Returns
Lerp(float)
Evaluates the segment at parameter t.
public Point3 Lerp(float t)
Parameters
tfloatA normalized parameter in the range [0, 1].
Returns
Tangent(float)
Returns the constant tangent (direction) of the segment.
public Vector3 Tangent(float t)
Parameters
tfloatIgnored — the tangent is constant for a linear segment.
Returns
ToCubic()
Converts this linear segment to a CubicBezier3 with collinear controls.
public CubicBezier3 ToCubic()
Returns
ToQuadratic()
Converts this linear segment to a QuadraticBezier3 with a midpoint control.
public QuadraticBezier3 ToQuadratic()
Returns
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.