phobos-next ~master (2022-05-18T09:58:38.2169964)
Dub
Repo
Vector.coordToIndex
nxt
geometry
Vector
Coordinate Character c to Index
struct
Vector
(E, uint D, bool normalizedFlag = false, Orient orient = Orient.column)
template
coordToIndex (
char
c
) {
static if
(
(c == 'x')
)
enum
coordToIndex
;
static if
(!(
(c == 'x')
))
static if
(
(c == 'y')
)
enum
coordToIndex
;
static if
(!(
(c == 'x')
))
static if
(!(
(c == 'y')
))
static if
(
(c == 'z')
)
enum
coordToIndex
;
static if
(!(
(c == 'x')
))
static if
(!(
(c == 'y')
))
static if
(!(
(c == 'z')
))
static if
(
(c == 'w')
)
enum
coordToIndex
;
}
Members
Manifest constants
coordToIndex
enum
coordToIndex
;
Undocumented in source.
coordToIndex
enum
coordToIndex
;
Undocumented in source.
coordToIndex
enum
coordToIndex
;
Undocumented in source.
coordToIndex
enum
coordToIndex
;
Undocumented in source.
Meta
Source
See Implementation
nxt
geometry
Vector
aliases
norm
w
x
y
z
constructors
this
enums
isCompatibleMatrix
isCompatibleVector
functions
clear
normalize
nrnNorm
opBinary
opBinaryRight
opCast
opEquals
opIndex
opOpAssign
opSlice
opUnary
randInPlace
set
update
manifest constants
dimension
properties
joinString
magnitude
magnitudeSquared
normalized
ok
orientationString
toLaTeX
toMathML
toString
static functions
isCompatibleMatrixImpl
isCompatibleVectorImpl
static variables
E0
E1
e1
e2
e3
e4
templates
coordToIndex
variables
_vector
Coordinate Character c to Index