sum = physics.Vect:add(vec)
Parameter |
Type |
Description |
---|---|---|
self |
in physics.Vect |
The input vector |
vec |
in physics.Vect |
A vector to add to self |
sum |
out physics.Vect |
The vector sum of self and vec |
Returns the vector sum of self and vec.
The Vect class also implements the addition operator (+). Therefore vectors v1 and v2 can be added with the expression v1 + v2.
Introduced in platform.apiLevel = '2.0'