ostk.physics.data.Vector¶
- class Vector(
- self: ostk.physics.data.Vector,
- value: numpy.ndarray[numpy.float64[3, 1]],
- unit: ostk.physics.Unit,
- frame: ostk.physics.coordinate.Frame,
- value: numpy.ndarray[numpy.float64[3, 1]],
Bases:
pybind11_object
Vector quantity
Construct a Vector.
- Parameters:
value (numpy.ndarray) -- Value.
unit (Unit) -- Unit.
frame (Frame) -- Frame.
Methods
Get frame.
Get unit.
Get value.
Convert to frame.
Convert to unit.
Check if the vector is defined.
Convert to (formatted) string.
Create an undefined vector.
- get_frame(self: ostk.physics.data.Vector) ostk.physics.coordinate.Frame ¶
Get frame.
- Returns:
Frame.
- Return type:
- get_unit(self: ostk.physics.data.Vector) ostk.physics.Unit ¶
Get unit.
- Returns:
Unit.
- Return type:
- get_value(self: ostk.physics.data.Vector) numpy.ndarray[numpy.float64[3, 1]] ¶
Get value.
- Returns:
Value.
- Return type:
- in_frame(
- self: ostk.physics.data.Vector,
- frame: ostk.physics.coordinate.Frame,
- instant: ostk.physics.time.Instant,
- frame: ostk.physics.coordinate.Frame,
Convert to frame.
- in_unit(
- self: ostk.physics.data.Vector,
- unit: ostk.physics.Unit,
Convert to unit.
- is_defined(self: ostk.physics.data.Vector) bool ¶
Check if the vector is defined.
- Returns:
True if defined.
- Return type:
- to_string(
- self: ostk.physics.data.Vector,
- precision: ostk.core.type.Integer = 6,
Convert to (formatted) string.
- Parameters:
precision (Integer) -- Precision.
- Returns:
String representation.
- Return type:
- static undefined() ostk.physics.data.Vector ¶
Create an undefined vector.
- Returns:
Undefined vector.
- Return type: