Twist2d

constructor(line: Vector2d<DistanceUnit>, angle: Double)(source)


constructor(x: Distance, y: Distance, angle: Rotation2d)(source)

Constructs a Twist2d from x and y distance measurements and a rotation.

Parameters

x

the x-component of linear displacement

y

the y-component of linear displacement

angle

the angular displacement as a rotation


constructor(x: Distance, y: Distance, angle: Angle)(source)

Constructs a Twist2d from x and y distance measurements and an angle measurement.

Parameters

x

the x-component of linear displacement

y

the y-component of linear displacement

angle

the angular displacement as an angle measurement


constructor(x: Double, y: Double, angle: Rotation2d)(source)

Constructs a Twist2d from x and y coordinates (in inches) and a rotation.

Convenience constructor that assumes inch units for linear displacement.

Parameters

x

the x-component of displacement in inches

y

the y-component of displacement in inches

angle

the angular displacement as a rotation


constructor(x: Double, y: Double, angle: Double)(source)

Constructs a Twist2d from x and y coordinates (in inches) and an angle (in radians).

Convenience constructor that assumes inch units for linear displacement and radians for angle.

Parameters

x

the x-component of displacement in inches

y

the y-component of displacement in inches

angle

the angular displacement in radians