Table of Contents

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

from JAngle

The minimum angle of the limit.

to JAngle

The maximum angle of the limit.

Fields

Fixed

A limit that locks the angle in place (no rotation allowed).

public static readonly AngularLimit Fixed

Field Value

AngularLimit

Full

A limit that allows full rotation (-π to +π radians).

public static readonly AngularLimit Full

Field Value

AngularLimit

Properties

From

Gets or sets the minimum angle of the limit.

public JAngle From { readonly get; set; }

Property Value

JAngle

To

Gets or sets the maximum angle of the limit.

public JAngle To { readonly get; set; }

Property Value

JAngle

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

limitMin JAngle

The minimum angle.

limitMax JAngle

The maximum angle.

FromDegree(float, float)

Creates an angular limit from degree values.

public static AngularLimit FromDegree(float min, float max)

Parameters

min float

The minimum angle in degrees.

max float

The maximum angle in degrees.

Returns

AngularLimit

A new AngularLimit instance.