zmath ~master (2021-07-15T08:21:03Z)
Home
Dub
Repo
Quaternion.this
zmath
quaternion
Quaternion
Build a new Quaternion from a 3D Vector w will be set to 1
this
(T i, T j, T k, T w)
this
(T[] xs)
this
(Vector!(T, 3) vec)
struct
Quaternion
(T = floatt)
nothrow @
nogc
pure
this
(
in
Vector
!(
T
, 3)
vec
)
if
(
__traits(
isFloating
,
T
)
)
this
(Vector!(T, 4) vec)
this
(Vector!(T, 3) v, U angle)
this
(U roll, U pitch, U yaw)
Parameters
vec
Vector
!(
T
, 3)
Vector 3d
Meta
Source
See Implementation
zmath
quaternion
Quaternion
constructors
this
functions
approxEqual
conj
normalize
opBinary
opCast
opEquals
opIndex
opIndexAssign
opUnary
rotate
toAxisAngle
toEuler
toString
properties
isUnit
length
sq_length
static variables
dim
unions
__anonymous
Build a new Quaternion from a 3D Vector w will be set to 1