Companion

object Companion

Functions

Link copied to clipboard
fun fromList(list: List<Float>): Vec3

Returns an instance of Vec3 with the given list of coordinates.

Link copied to clipboard
fun fromSphericalCoordinates(    distance: Float,     longitude: Angle,     latitude: Angle): Vec3

Returns a 3D vector defined by its spherical coordinates: radial distance, longitude and latitude.

Properties

Link copied to clipboard
val nullVector: Vec3

A null vector.

Link copied to clipboard
val unitX: Vec3

A standard unit vector in the direction of X axis.

Link copied to clipboard
val unitY: Vec3

A standard unit vector in the direction of Y axis.

Link copied to clipboard
val unitZ: Vec3

A standard unit vector in the direction of Z axis.