ostk.physics.coordinate.Position¶
- class Position(self: ostk.physics.coordinate.Position, coordinates: numpy.ndarray[numpy.float64[3, 1]], unit: ostk.physics.unit.Length.Unit, frame: ostk::physics::coordinate::Frame)¶
Bases:
pybind11_object
Position.
Constructs a position.
- Parameters:
coordinates (numpy.ndarray) -- Coordinates.
unit (Unit) -- Unit.
frame (Frame) -- Frame of reference.
Methods
Access the frame of reference.
Get the coordinates.
Get the unit.
Get the position in another frame of reference.
Get the position in meters.
Get the position in the unit.
Check if the Position is defined.
Check if the Position is near another Position.
Create a position in meters.
Create a string representation.
Get undefined position.
- access_frame( ) ostk::physics::coordinate::Frame ¶
Access the frame of reference.
- Returns:
Frame of reference.
- Return type:
- get_coordinates( ) numpy.ndarray[numpy.float64[3, 1]] ¶
Get the coordinates.
- Returns:
Coordinates.
- Return type:
- get_unit( ) ostk.physics.unit.Length.Unit ¶
Get the unit.
- Returns:
Unit.
- Return type:
- in_frame(
- self: ostk.physics.coordinate.Position,
- frame: ostk::physics::coordinate::Frame,
- instant: ostk.physics.time.Instant,
- frame: ostk::physics::coordinate::Frame,
Get the position in another frame of reference.
- in_meters( ) ostk.physics.coordinate.Position ¶
Get the position in meters.
- Returns:
Position in meters.
- Return type:
- in_unit( ) ostk.physics.coordinate.Position ¶
Get the position in the unit.
- Returns:
Position in the unit.
- Return type:
- is_defined(self: ostk.physics.coordinate.Position) bool ¶
Check if the Position is defined.
- Returns:
True if the Position is defined.
- Return type:
- is_near(
- self: ostk.physics.coordinate.Position,
- position: ostk.physics.coordinate.Position,
- tolerance: ostk.physics.unit.Length,
- position: ostk.physics.coordinate.Position,
Check if the Position is near another Position.
- static meters(coordinates: numpy.ndarray[numpy.float64[3, 1]], frame: ostk::physics::coordinate::Frame) ostk.physics.coordinate.Position ¶
Create a position in meters.
- Parameters:
coordinates (numpy.ndarray) -- Coordinates.
frame (Frame) -- Frame of reference.
- Returns:
Position in meters.
- Return type:
- to_string(
- self: ostk.physics.coordinate.Position,
- precision: ostk.core.type.Integer = Integer.Undefined(),
Create a string representation.
- Parameters:
precision (Integer) -- Precision.
- Returns:
String representation.
- Return type:
String
- static undefined() ostk.physics.coordinate.Position ¶
Get undefined position.
- Returns:
Undefined position.
- Return type: