desmath ~master (2021-12-18T03:28:57.6940602)
Dub
Repo
Quaterni
des
math
linear
quaterni
struct
Quaterni (
T
)
if
(
isFloatingPoint
!
T
) {
alias
vectype
=
Vector
!(
4
,
T
)
;
vectype
data
;
alias
selftype
=
Quaterni
!
T
;
this
(E vals);
this
(Quaterni!T q);
mixin
accessByString
!(
4
,
T
,
"data.data"
,
"i j k a"
)
;
static
selftype
fromAngle
(T alpha, const(Vector!(K, E)) axis);
auto
opMul
(const(Quaterni!E) b);
auto
rot
(const(Vector!(K, E)) b);
T
norm
[@property getter];
T
mag
[@property getter];
auto
con
[@property getter];
auto
inv
[@property getter];
auto
len2
[@property getter];
}
Constructors
this
this
(E vals)
this
this
(Quaterni!T q)
Alias This
data
Members
Aliases
selftype
alias
selftype
=
Quaterni
!
T
vectype
alias
vectype
=
Vector
!(
4
,
T
)
Functions
opMul
auto
opMul
(const(Quaterni!E) b)
rot
auto
rot
(const(Vector!(K, E)) b)
Mixins
__anonymous
mixin
accessByString
!(
4
,
T
,
"data.data"
,
"i j k a"
)
Undocumented in source.
Properties
con
auto
con
[@property getter]
inv
auto
inv
[@property getter]
len2
auto
len2
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
mag
T
mag
[@property getter]
norm
T
norm
[@property getter]
Static functions
fromAngle
selftype
fromAngle
(T alpha, const(Vector!(K, E)) axis)
Variables
data
vectype
data
;
Meta
Source
See Implementation
des
math
linear
quaterni
aliases
dquat
quat
rquat
structs
Quaterni