Rotation

data class Rotation(val angle: Double, val axis: Model.Axis, val origin: Vector3dc, val rescale: Boolean)

The rotation of an Element.

Parameters

angle

The angle of the rotation. Can be 45.0, 22.5, -22.5, -45.0

axis

The axis of the rotation.

origin

The origin / pivot point of the rotation.

rescale

Whether the model should be rescaled to fit the new size. (for example a 45° rotation stretches the element by sqrt(2))

Constructors

Link copied to clipboard
constructor(angle: Double, axis: Model.Axis, origin: Vector3dc, rescale: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val origin: Vector3dc
Link copied to clipboard