Companion

object Companion

Functions

fromList
Link copied to clipboard
common
fun fromList(list: List<Float>): Vec3
Returns an instance of Vec3 with the given list of coordinates.
fromSphericalCoordinates
Link copied to clipboard
common
fun fromSphericalCoordinates(distance: Float, longitude: Angle, latitude: Angle): Vec3
Returns a 3D vector defined by its spherical coordinates: radial distance, longitude and latitude.

Properties

nullVector
Link copied to clipboard
common
val nullVector: Vec3
A null vector.
unitX
Link copied to clipboard
common
val unitX: Vec3
A standard unit vector in the direction of X axis.
unitY
Link copied to clipboard
common
val unitY: Vec3
A standard unit vector in the direction of Y axis.
unitZ
Link copied to clipboard
common
val unitZ: Vec3
A standard unit vector in the direction of Z axis.