Indexing Enums

Points

class py123d.geometry.Point2DIndex[source]

Indexing enum for array-like representations of 2D points (x,y).

X = 0
Y = 1
XY = slice(<Point2DIndex.X: 0>, 2, None)
class py123d.geometry.Point3DIndex[source]

Indexing enum for array-like representations of 3D points (x,y,z).

X = 0
Y = 1
Z = 2
XY = slice(<Point3DIndex.X: 0>, 2, None)
XYZ = slice(<Point3DIndex.X: 0>, 3, None)

Vectors

class py123d.geometry.Vector2DIndex[source]

Indexing enum for array-like representations of 2D vectors (x,y).

X = 0
Y = 1
XY = slice(<Vector2DIndex.X: 0>, 2, None)
class py123d.geometry.Vector3DIndex[source]

Indexing enum for array-like representations of 3D vectors (x,y,z).

X = 0
Y = 1
Z = 2
XYZ = slice(<Vector3DIndex.X: 0>, 3, None)

Rotations

class py123d.geometry.QuaternionIndex[source]

Indexing enum for array-like representations of quaternions (qw,qx,qy,qz), scalar-first.

QW = 0
QX = 1
QY = 2
QZ = 3
SCALAR = 0[source]
VECTOR = slice(<QuaternionIndex.QX: 1>, 4, None)
class py123d.geometry.EulerAnglesIndex[source]

Indexing enum for array-like representations of Euler angles (roll,pitch,yaw).

ROLL = 0
PITCH = 1
YAW = 2

Poses

class py123d.geometry.PoseSE2Index[source]

Indexing enum for array-like representations of SE2 poses (x,y,yaw).

X = 0
Y = 1
YAW = 2
XY = slice(<PoseSE2Index.X: 0>, 2, None)
SE2 = slice(<PoseSE2Index.X: 0>, 3, None)
class py123d.geometry.PoseSE3Index[source]

Indexing enum for array-like representations of SE3 poses (x,y,z,qw,qx,qy,qz).

X = 0
Y = 1
Z = 2
QW = 3
QX = 4
QY = 5
QZ = 6
XY = slice(<PoseSE3Index.X: 0>, 2, None)
XYZ = slice(<PoseSE3Index.X: 0>, 3, None)
QUATERNION = slice(<PoseSE3Index.QW: 3>, 7, None)
SCALAR = slice(<PoseSE3Index.QW: 3>, 4, None)
VECTOR = slice(<PoseSE3Index.QX: 4>, 7, None)

Bounding Boxes

class py123d.geometry.BoundingBoxSE2Index[source]

Indexing enum for array-like representations of bounding boxes in SE2 - center point (x,y). - yaw rotation. - extent (length,width).

X = 0
Y = 1
YAW = 2
LENGTH = 3
WIDTH = 4
XY = slice(<BoundingBoxSE2Index.X: 0>, 2, None)
SE2 = slice(<BoundingBoxSE2Index.X: 0>, 3, None)
EXTENT = slice(<BoundingBoxSE2Index.LENGTH: 3>, 5, None)
class py123d.geometry.Corners2DIndex[source]

Indexes the corners of a bounding boxes in SE2 in the order: front-left, front-right, back-right, back-left.

FRONT_LEFT = 0
FRONT_RIGHT = 1
BACK_RIGHT = 2
BACK_LEFT = 3
class py123d.geometry.BoundingBoxSE3Index[source]

Indexes array-like representations of rotated 3D bounding boxes - center point (x,y,z). - quaternion rotation (qw,qx,qy,qz). - extent (length,width,height).

X = 0
Y = 1
Z = 2
QW = 3
QX = 4
QY = 5
QZ = 6
LENGTH = 7
WIDTH = 8
HEIGHT = 9
XYZ = slice(<BoundingBoxSE3Index.X: 0>, 3, None)
SE3 = slice(<BoundingBoxSE3Index.X: 0>, 7, None)
QUATERNION = slice(<BoundingBoxSE3Index.QW: 3>, 7, None)
EXTENT = slice(<BoundingBoxSE3Index.LENGTH: 7>, 10, None)
SCALAR = slice(<BoundingBoxSE3Index.QW: 3>, 4, None)
VECTOR = slice(<BoundingBoxSE3Index.QX: 4>, 7, None)
class py123d.geometry.Corners3DIndex[source]

Indexes the corners of a BoundingBoxSE3 in the order: front-left-bottom, front-right-bottom, back-right-bottom, back-left-bottom, front-left-top, front-right-top, back-right-top, back-left-top.

FRONT_LEFT_BOTTOM = 0
FRONT_RIGHT_BOTTOM = 1
BACK_RIGHT_BOTTOM = 2
BACK_LEFT_BOTTOM = 3
FRONT_LEFT_TOP = 4
FRONT_RIGHT_TOP = 5
BACK_RIGHT_TOP = 6
BACK_LEFT_TOP = 7
BOTTOM = slice(<Corners3DIndex.FRONT_LEFT_BOTTOM: 0>, 4, None)
TOP = slice(<Corners3DIndex.FRONT_LEFT_TOP: 4>, 8, None)