vec2
- 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? ... | Itasca Software © 2024, Itasca | Updated: Sep 26, 2024 |