redeclipse.vector package

class redeclipse.vector.BaseVector(x, y, z)[source]

Bases: object

offset_rotate(deg, offset=None)[source]

Return a new vector, rotated by the specified number of degrees.

Parameters:

Note that rotation is counterclockwise around the z=+1 axis. I.e. use the right handle rule.

Returns:a new redeclipse.vector.BaseVector, rotated as needed.
Return type:redeclipse.vector.BaseVector
rotate(deg)[source]

Return a new vector, rotated by the specified number of degrees.

Parameters:deg (str or int) – degrees (0, 90, 180, …) or orientation (+x, -x, …)

Note that rotation is counterclockwise around the z=+1 axis. I.e. use the right handle rule.

Returns:a new redeclipse.vector.BaseVector, rotated as needed.
Return type:redeclipse.vector.BaseVector
vox()[source]

Return a voxel-appropriate version of self (i.e. apply floor to drag it to the right location.)

class redeclipse.vector.CoarseVector(x, y, z)[source]

Bases: redeclipse.vector.BaseVector

entity()[source]
fine()[source]
class redeclipse.vector.FineVector(x, y, z)[source]

Bases: redeclipse.vector.BaseVector

coarse()[source]
entity()[source]
fine()[source]