armos v0.2.4 (2017-08-20T09:34:11Z)
Dub
Repo
Vector.opDispatch
armos
math
vector
Vector
vec.x vec.xyのようにベクトルの一部を切り出すことが出来ます
auto
opDispatch
[@property getter]
struct
Vector
(T, int Dimention)
@
property
const
auto
opDispatch
(
string
swizzle
)
(
)
if
(
swizzle.length
> 0 &&
swizzle.length
<
coordName.length
&&
coordName.length
> 0
)
if
(
__traits(
isArithmetic
,
T
) &&
Dimention
> 0
)
T
opDispatch
[@property setter]
V
opDispatch
[@property setter]
Meta
Source
See Implementation
armos
math
vector
Vector
aliases
elementType
constructors
this
functions
angle
array
dotProduct
elements
norm
normalize
normalized
opAdd
opAddAssign
opCast
opDiv
opDivAssign
opIndex
opMod
opModAssign
opMul
opMulAssign
opNeg
opSub
opSubAssign
toString
vectorProduct
manifest constants
PackSize
XMMRegisterSize
XMMsNum
XMMsSize
properties
opDispatch
unions
PackedElements
variables
coordName
coordNames
dimention
packedElements
zero
vec.x vec.xyのようにベクトルの一部を切り出すことが出来ます