SpatialRotateValue
class SpatialRotateValue(val centroid: NormalizedPoint3D, val rotation: Rotation3D, val leftInteractionKind: InteractionKind, val rightInteractionKind: InteractionKind, val targetEntity: Entity? = null)
Class that holds the value of a rotate gesture.
Constructors
Link copied to clipboard
constructor(centroid: NormalizedPoint3D, rotation: Rotation3D, leftInteractionKind: InteractionKind, rightInteractionKind: InteractionKind, targetEntity: Entity? = null)
Properties
Link copied to clipboard
The centroid of the rotate gesture in normalized space.
Link copied to clipboard
The interaction kind of the left pointer.
Link copied to clipboard
The interaction kind of the right pointer.
Link copied to clipboard
The rotation of the rotate gesture, when gesture is rotating. Every rotation delta returned is relative to the last rotation. For lifecycle callbacks such as onRotateStart, onRotateEnd, and onRotateCancel, this value is Rotation3D.identity.
Link copied to clipboard
If the scale gesture happens on a 3d model, targetEntity will be the Entity of the 3d model. Otherwise, targetEntity will be null.