Struct CurvePoint
- Namespace
- PluginUI
- Assembly
- PluginUI.dll
Breakpoint of a CurveEditor: position (0..1), value (0..1) and curvature of the segment that starts at this point (−1..1: negative = fast start, positive = slow start, 0 = straight).
public readonly record struct CurvePoint : IEquatable<CurvePoint>
- Implements
- Inherited Members
Constructors
CurvePoint(double, double, double)
Breakpoint of a CurveEditor: position (0..1), value (0..1) and curvature of the segment that starts at this point (−1..1: negative = fast start, positive = slow start, 0 = straight).
public CurvePoint(double X, double Y, double Curvature = 0)
Parameters
XdoublePosition in [0, 1].
YdoubleValue in [0, 1].
CurvaturedoubleCurvature of the segment towards the next point, in [−1, 1].
Properties
Curvature
Curvature of the segment towards the next point, in [−1, 1].
public double Curvature { get; init; }
Property Value
X
Position in [0, 1].
public double X { get; init; }
Property Value
Y
Value in [0, 1].
public double Y { get; init; }