Defines a 3-dimensional line segment (single-precision).
Namespace: DigitalRune.Mathematics.InterpolationAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.7.0.0 (1.7.0.9486)
Syntax
| C# |
|---|
public class LineSegment3F : ICurve<float, Vector3F>, IRecyclable |
| Visual Basic |
|---|
Public Class LineSegment3F _ Implements ICurve(Of Single, Vector3F), _ IRecyclable |
| Visual C++ |
|---|
public ref class LineSegment3F : ICurve<float, Vector3F>, IRecyclable |
Remarks
A LineSegment3F performs linear interpolation (LERP) between two points.
The curve function point = C(parameter) takes a scalar parameter and returns a point on the curve (see GetPoint(Single)). The curve parameter lies in the interval [0,1]; it is also known as interpolation parameter, interpolation factor or weight of the target point. C(0) returns the start point Point1; C(1) returns the end point Point2.