desmath ~master (2016-01-06T21:44:09Z)
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
(
in
E
vals
)
;
this
(
in
Quaterni
!
T
q
)
;
static
selftype
fromAngle
(
T
alpha
,
auto
ref
const
(
Vector
!(
K
,
E
))
axis
)
;
auto
opMul
(
auto
ref
const
(
Quaterni
!
E
)
b
)
;
auto
rot
(
auto
ref
const
(
Vector
!(
K
,
E
))
b
)
;
T
norm
[@property getter];
T
mag
[@property getter];
auto
con
[@property getter];
auto
inv
[@property getter];
}
Constructors
this
this
(
in
E
vals
)
this
this
(
in
Quaterni
!
T
q
)
Alias This
data
Members
Aliases
selftype
alias
selftype
=
Quaterni
!
T
vectype
alias
vectype
=
Vector
!(
4
,
T
)
Functions
opMul
auto
opMul
(
auto
ref
const
(
Quaterni
!
E
)
b
)
rot
auto
rot
(
auto
ref
const
(
Vector
!(
K
,
E
))
b
)
Properties
con
auto
con
[@property getter]
inv
auto
inv
[@property getter]
mag
T
mag
[@property getter]
norm
T
norm
[@property getter]
Static functions
fromAngle
selftype
fromAngle
(
T
alpha
,
auto
ref
const
(
Vector
!(
K
,
E
))
axis
)
Variables
data
vectype
data
;
Meta
Source
See Implementation
des
math
linear
quaterni
aliases
dquat
quat
rquat
structs
Quaterni