dgame ~master (2017-03-31T06:11:13Z)
Home
Dub
Repo
Vector2.normalize
Dgame
Math
Vector2
Vector2
Normalize the vector in which the coordinates are divided by the length.
struct
Vector2
(T)
@
nogc
ref
Vector2
!(
T
)
normalize
pure nothrow
(
)
if
(
isNumeric
!(
T
)
)
Meta
Source
See Implementation
Dgame
Math
Vector2
Vector2
aliases
dot
constructors
this
functions
angle
diff
isEmpty
normalize
opBinary
opEquals
opNeg
opOpAssign
scalar
properties
length
variables
x
y
Normalize the vector in which the coordinates are divided by the length.