redeclipse.vector.orientations module¶
-
redeclipse.vector.orientations.ABOVE= CV(BV(0, 0, 1))¶ Above current location
-
redeclipse.vector.orientations.BELOW= CV(BV(0, 0, -1))¶ Below current location
-
redeclipse.vector.orientations.CARDINALS= [CV(BV(1.0, 0.0, 0)), CV(BV(0, 1, 0)), CV(BV(-1.0, 0.0, 0)), CV(BV(0.0, -1.0, 0))]¶ All the cardinal directions in something iterable
-
redeclipse.vector.orientations.EAST= CV(BV(1.0, 0.0, 0))¶ One (coarse) position east of the current location
-
redeclipse.vector.orientations.HALF_HEIGHT= FV(BV(0, 0, 4))¶ Vertical center of the current 8x8x8 cube. Combine with TILE_CENTER for the actual cube center.
-
redeclipse.vector.orientations.NORTH= CV(BV(0, 1, 0))¶ One (coarse) position north of the current location
-
redeclipse.vector.orientations.NORTHEAST= CV(BV(1.0, 1.0, 0))¶ Northeast of current location
-
redeclipse.vector.orientations.NORTHWEST= CV(BV(-1.0, 1.0, 0))¶ Northwest of current location
-
redeclipse.vector.orientations.SELF= CV(BV(0, 0, 0))¶ Reference to own position
-
redeclipse.vector.orientations.SOUTH= CV(BV(0.0, -1.0, 0))¶ One (coarse) position south of the current location
-
redeclipse.vector.orientations.SOUTHEAST= CV(BV(1.0, -1.0, 0))¶ Southeast of current location
-
redeclipse.vector.orientations.SOUTHWEST= CV(BV(-1.0, -1.0, 0))¶ Southwest of current location
-
redeclipse.vector.orientations.TILE_CENTER= FV(BV(4, 4, 0))¶ x-y Center of the current 8x8x8 cube
-
redeclipse.vector.orientations.VOXEL_OFFSET= FV(BV(0.5, 0.5, 0.5))¶ Voxel offset (to the center of the voxel from the bottom left corner of the voxel)
-
redeclipse.vector.orientations.WEST= CV(BV(-1.0, 0.0, 0))¶ One (coarse) position west of the current location
-
redeclipse.vector.orientations.get_vector_rotation(vec)[source]¶ Get the rotation from a cardinal direction vector.
Parameters: vec (redeclipse.vector.CoarseVector) – A directional vector (must be one of the named constants, N/S/E/W) Returns: A (degree) direction Return type: int