Documentation
Dlang.org
Vec2.normalize
graphene
vec2
Vec2
Computes the normalized vector for the given vector
v
.
class
Vec2
void
normalize
(
out
graphene.vec2.Vec2
res
)
Parameters
res
graphene
.
vec2
.
Vec2
return location for the normalized vector
graphene
vec2
Vec2
constructors
this
functions
add
cPtr
divide
dot
equal
getX
getY
initFromFloat
initFromVec2
init_
interpolate
length
max
min
multiply
near
negate
normalize
scale
self
subtract
toFloat
properties
gType
static functions
alloc
getGType
one
xAxis
yAxis
zero
Computes the normalized vector for the given vector v.