vec3

class vec.vec3
assert_close(vec3) → None.

Assert that this vector is close to the given vector.

cross(value: v3) → float.

Vector cross product.

dot(value: v3) → float.

Vector dot product.

fill(value: float) → None.

Set all components of vector to value.

mag() → float.

Return the vector L2 norm.

norm() → vec3.

Returns the normalized vector (returns a new vector.).

x() → float.

Return the x component.

y() → float.

Return the y component.

z() → float.

Return the z component.