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
functions
add
divide
dot
equal
getX
getY
initFromFloat
initFromVec2
init_
interpolate
length
max
min
multiply
near
negate
normalize
scale
subtract
toFloat
static functions
alloc
one
xAxis
yAxis
zero
Computes the normalized vector for the given vector v.