alias_api.Vec3

class alias_api.Vec3

Bases: pybind11_object

Class object to represent a 3D vector.

cross(*args, **kwargs)

Overloaded function.

  1. cross(self: alias_api.Vec3, v: alias_api.Vec3) -> alias_api.Vec3

Compute the cross product of this vector and ‘v’. Return the resulting cross product vector.

  1. cross(self: alias_api.Vec3, v: alias_api.Vec3, result: alias_api.Vec3) -> None

Compute the cross product of this vector and ‘v’. Assign the resulting cross product vector to ‘result’.

magnitude(self: alias_api.Vec3) float

Return the magnitude value of the vector.

normalize(self: alias_api.Vec3) bool

Normalize the vector. Return True if the vector was successfully normalized, else False.

to_list(self: alias_api.Vec3) list

Return the vector coordinates as a list of values.

property x

Get or set the x coordinate of the vector.

property y

Get or set the y coordinate of the vector.

property z

Get or set the z coordinate of the vector.