vec.vec2 Class Methods
-
class
vec.vec2
assert_close(vec2) → None.Assert that this vector is close to the given vector.
dot(value: v2) → float.Vector dot product.
fill(value: float) → None.Set all components of vector to value.
mag() → float.Return the vector L2 norm.
norm() → vec2.Returns the normalized vector (returns a new vector.).
x() → float.Return the x component.
y() → float.Return the y component.
| Was this helpful? ... | PFC 6.0 © 2019, Itasca | Updated: Nov 19, 2021 |