Skip to content
Select language:English

MCL 1.3.5

open class Vecf(val values: FloatArray)

Represents a vector of floating-point single precision coordinates.

Parameters

values

Array of components.

Inheritors

Constructors

constructor(values: FloatArray)

Properties

Returns the magnitude (norm) of the vector.

Returns the squared magnitude of the vector.

val size: Int

Returns the size of the vector.

Functions

operator fun get(i: Int): Float

Returns the value at the specified index.