Skip to content
Select language:English

Package-level declarations

MCL 1.3.5

Types

class Mat2d(values: DoubleArray) : Matd

Represents a 2x2 matrix of floating-point double precision values.

class Mat2f(values: FloatArray) : Matf

Represents a 2x2 matrix of floating-point single precision values.

class Mat3d(values: DoubleArray) : Matd

Represents a 3x3 matrix of floating-point double precision values.

class Mat3f(values: FloatArray) : Matf

Represents a 3x3 matrix of floating-point single precision values.

class Mat4d(values: DoubleArray) : Matd

Represents a 4x4 matrix of floating-point double precision values.

class Mat4f(values: FloatArray) : Matf

Represents a 4x4 matrix of floating-point single precision values.

open class Matd(val rows: Int, val cols: Int, val values: DoubleArray)

Represents a generic matrix of floating-point double precision values.

open class Matf(val rows: Int, val cols: Int, val values: FloatArray)

Represents a generic matrix of floating-point single precision values.

class Quatd(x: Double, y: Double, z: Double, w: Double)

Represents a quaternion using double-precision floating-point components.

class Quatf(x: Float, y: Float, z: Float, w: Float)

Represents a quaternion using single-precision floating-point components.

class Trans3d(val orientation: Quatd, val position: Vec3d)

Represents a rigid transformation in 3D space.

class Trans3f(val orientation: Quatf, val position: Vec3f)

Represents a rigid transformation in 3D space.

class Vec2d(x: Double, y: Double) : Vecd

Represents a 2D vector of Floating-point double precision coordinates.

class Vec2f(x: Float, y: Float) : Vecf

Represents a 2D vector of floating-point single precision coordinates.

class Vec3d(x: Double, y: Double, z: Double) : Vecd

Represents a 3D vector of Floating-point double precision coordinates.

class Vec3f(x: Float, y: Float, z: Float) : Vecf

Represents a 3D vector of floating-point single precision coordinates.

class Vec4d(x: Double, y: Double, z: Double, w: Double) : Vecd

Represents a 4D vector of floating-point double precision coordinates.

class Vec4f(x: Float, y: Float, z: Float, w: Float) : Vecf

Represents a 4D vector of floating-point single precision coordinates.

open class Vecd(val values: DoubleArray)

Represents a vector of floating-point double precision coordinates.

open class Vecf(val values: FloatArray)

Represents a vector of floating-point single precision coordinates.

Properties

const val EPSILON_DOUBLE: Double = 1.0E-12

A small threshold value used to determine whether a double-precision floating-point number can be considered equal to zero.

const val EPSILON_FLOAT: Float = 1.0E-6f

A small threshold value used to determine whether a single-precision floating-point number can be considered equal to zero.

const val HALF_PI: Double

The value of π/2 in double precision.

const val HALF_PIf: Float

The value of π/2 in single precision.

const val PIf: Float

The value of π in single precision.

const val TWO_PI: Double

The value of 2*π in double precision.

const val TWO_PIf: Float

The value of 2*π in single precision.

Functions

Converts a floating-point number to a string representation with the specified number of decimal digits.

Converts a floating-point double precision number to degrees.

Converts a floating-point single precisionnumber to degrees.

Converts a floating-point double precision number to radians.

Converts a floating-point single precision number to radians.

Unrolls the angle to the range 0, 2π.

Unrolls the angle to the range -π, π.