androidx.xr.runtime.math
Classes
Matrix4 |
An immutable 4x4 matrix that represents translation, scale, and rotation. |
Pose |
Represents an immutable rigid transformation from one coordinate space to another. |
Quaternion |
Represents a rotation component in three-dimensional space. |
Ray |
Represents a ray in 3D space. |
Vector2 |
Represents a position in the 2D plane. |
Vector3 |
Represents a three-dimensional position in space. |
Top-level functions summary
Float |
Clamps a value. |
Float |
Linearly interpolates between two values. |
Float |
Converts |
Float |
Converts |
Top-level functions
lerp
fun lerp(a: Float, b: Float, t: Float): Float
Linearly interpolates between two values.
toDegrees
fun toDegrees(angleInRadians: Float): Float
Converts angleInRadians
from radians to degrees.
toRadians
fun toRadians(angleInDegrees: Float): Float
Converts angleInDegrees
from degrees to radians.