zmath ~master (2021-07-15T08:21:03Z)
Home
Dub
Repo
Quaternion.rotate
zmath
quaternion
Quaternion
Apply a 3d rotation Quaternion over a 3d/4d Vector
struct
Quaternion
(T = floatt)
nothrow pure const
V
rotate
(
V
)
(
auto
ref
const
V
v
)
if
(
isVector
!
V
&&
V.dim
>= 3
)
if
(
__traits(
isFloating
,
T
)
)
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
Apply a 3d rotation Quaternion over a 3d/4d Vector