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