ostk.physics.coordinate.Velocity¶
- class Velocity(self: ostk.physics.coordinate.Velocity, coordinates: numpy.ndarray[numpy.float64[3, 1]], unit: ostk::physics::coordinate::Velocity::Unit, frame: ostk::physics::coordinate::Frame)¶
Bases:
pybind11_object
Velocity.
Constructs a velocity.
- 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.
Convert to frame.
Convert to unit.
Check if the instance is defined.
Create a velocity in meters per second.
Create a string from unit.
Convert to string.
Get undefined velocity.
- class Unit(self: ostk.physics.coordinate.Velocity.Unit, value: int)¶
Bases:
pybind11_object
Velocity unit.
Members:
- Undefined :
Undefined.
- MeterPerSecond :
Meter per second.
- property name¶
- 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::coordinate::Velocity::Unit ¶
Get the unit.
- Returns:
Unit.
- Return type:
- in_frame(
- self: ostk.physics.coordinate.Velocity,
- position: ostk.physics.coordinate.Position,
- frame: ostk::physics::coordinate::Frame,
- instant: ostk.physics.time.Instant,
- position: ostk.physics.coordinate.Position,
Convert to frame.
- in_unit(
- self: ostk.physics.coordinate.Velocity,
- unit: ostk::physics::coordinate::Velocity::Unit,
Convert to unit.
- is_defined(self: ostk.physics.coordinate.Velocity) bool ¶
Check if the instance is defined.
- Returns:
True if the instance is defined.
- Return type:
- static meters_per_second(coordinates: numpy.ndarray[numpy.float64[3, 1]], frame: ostk::physics::coordinate::Frame) ostk.physics.coordinate.Velocity ¶
Create a velocity in meters per second.
- Parameters:
coordinates (numpy.ndarray) -- Coordinates.
frame (Frame) -- Frame of reference.
- Returns:
Velocity in meters per second.
- Return type:
- static string_from_unit(
- unit: ostk::physics::coordinate::Velocity::Unit,
Create a string from unit.
- Parameters:
unit (Unit) -- Unit.
- Returns:
String.
- Return type:
String
- to_string(
- self: ostk.physics.coordinate.Velocity,
- precision: ostk.core.type.Integer = Integer.Undefined(),
Convert to string.
- Parameters:
precision (int) -- Precision.
- Returns:
String.
- Return type:
String
- static undefined() ostk.physics.coordinate.Velocity ¶
Get undefined velocity.
- Returns:
Undefined velocity.
- Return type: