core
/
graphics.glimpse.types
/
Vec3
/
Companion
common
Companion
object
Companion
Content copied to clipboard
Functions
Properties
Functions
fromList
Link copied to clipboard
common
fun
fromList
(list:
List
<
Float
>):
Vec3
Content copied to clipboard
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
Content copied to clipboard
Returns a 3D vector defined by its spherical coordinates: radial
distance
,
longitude
and
latitude
.
Properties
nullVector
Link copied to clipboard
common
val
nullVector
:
Vec3
Content copied to clipboard
A null vector.
unitX
Link copied to clipboard
common
val
unitX
:
Vec3
Content copied to clipboard
A standard unit vector in the direction of X axis.
unitY
Link copied to clipboard
common
val
unitY
:
Vec3
Content copied to clipboard
A standard unit vector in the direction of Y axis.
unitZ
Link copied to clipboard
common
val
unitZ
:
Vec3
Content copied to clipboard
A standard unit vector in the direction of Z axis.