Struct AngularLimit
- Namespace
- Jitter2.Dynamics.Constraints
- Assembly
- Jitter2.dll
Represents an angular limit defined by a minimum and maximum angle. Used by constraints to restrict rotational motion within a specified range.
public struct AngularLimit
- Inherited Members
Constructors
AngularLimit(JAngle, JAngle)
Represents an angular limit defined by a minimum and maximum angle. Used by constraints to restrict rotational motion within a specified range.
public AngularLimit(JAngle from, JAngle to)
Parameters
Fields
Fixed
A limit that locks the angle in place (no rotation allowed).
public static readonly AngularLimit Fixed
Field Value
Full
A limit that allows full rotation (-π to +π radians).
public static readonly AngularLimit Full
Field Value
Properties
From
Gets or sets the minimum angle of the limit.
public JAngle From { readonly get; set; }
Property Value
To
Gets or sets the maximum angle of the limit.
public JAngle To { readonly get; set; }
Property Value
Methods
Deconstruct(out JAngle, out JAngle)
Deconstructs the limit into its minimum and maximum angles.
public readonly void Deconstruct(out JAngle limitMin, out JAngle limitMax)
Parameters
FromDegree(float, float)
Creates an angular limit from degree values.
public static AngularLimit FromDegree(float min, float max)
Parameters
Returns
- AngularLimit
A new AngularLimit instance.