Rotation3D

@Stable
class Rotation3D(val degree: Float, val axis: RotationAxis3D, val pivot: NormalizedPoint3D = NormalizedPoint3D.Center)

Holds the values used by 3d rotation.

Constructors

Link copied to clipboard
constructor(degree: Float, axis: RotationAxis3D, pivot: NormalizedPoint3D = NormalizedPoint3D.Center)

Types

Link copied to clipboard
object Companion

Holds built-in Rotation3D instances.

Properties

Link copied to clipboard

The axis of rotation, see RotationAxis3D.

Link copied to clipboard
val degree: Float

The degree by which to rotate the composable.

Link copied to clipboard

The NormalizedPoint3D relative the composable about which to perform the rotation.

Functions

Link copied to clipboard
fun copy(degree: Float = this.degree, axis: RotationAxis3D = this.axis, pivot: NormalizedPoint3D = this.pivot): Rotation3D

Returns a copy of this instance optionally overriding the degree, axis or pivot parameter.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Rotates this Rotation3D by quat.

Rotates this Rotation3D by rotation.

Link copied to clipboard

Rotation3D convert to Quat.

Link copied to clipboard
open override fun toString(): String