tasi.io.BoundingBox.from_dimension#

classmethod BoundingBox.from_dimension(dimension, relative_to, orientation=0)[source]#

Create an instance based on a traffic participant’s dimension, a reference position and orientation.

Parameters:
  • dimension (tasi.io.Dimension) – The dimension of the boundingbox

  • relative_to (tasi.io.Position) – The reference position

  • orientation (tasi.io.Orientation) – The orientation in radians. Defaults to 0.

Returns:

A new instance

Return type:

Self