ostk.physics.data.Direction¶
- class Direction(
- self: ostk.physics.data.Direction,
- value: numpy.ndarray[numpy.float64[3, 1]],
- frame: ostk.physics.coordinate.Frame,
- value: numpy.ndarray[numpy.float64[3, 1]],
Bases:
Vector
Direction.
A unit vector, expressed in a given frame.
Construct a Direction.
- Parameters:
numpy.ndarray -- Value
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 direction.
- 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,
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.Direction ¶
Create an undefined direction.
- Returns:
Undefined direction.
- Return type: