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: - deg (redeclipse.vector.CoarseVector) – angle (EAST, NORTH, WEST, SOUTH)
- offset (redeclipse.vector.BaseVector (or child thereof)) – point around which to rotate
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
-
-
class
redeclipse.vector.
CoarseVector
(x, y, z)[source]¶ Bases:
redeclipse.vector.BaseVector