ostk.physics.unit.Angle¶
- class Angle(*args, **kwargs)¶
Bases:
pybind11_object
Angle.
- Reference:
Overloaded function.
__init__(self: ostk.physics.unit.Angle, value: ostk.core.type.Real, unit: ostk::physics::unit::Angle::Unit) -> None
Constructor.
- Args:
value (Real): A value. unit (Unit): An angle unit.
__init__(self: ostk.physics.unit.Angle, angle: ostk.mathematics.geometry.Angle) -> None
Constructor.
- Args:
angle (Angle): An angle.
Methods
Create an angle in arcminutes.
Create an angle in arcseconds.
Overloaded function.
Create an angle in degrees.
Get the unit of the angle.
Create a half pi angle.
Overloaded function.
Overloaded function.
Overloaded function.
Overloaded function.
Get the angle in revolutions.
Get the angle in the specified unit.
Check if the angle is defined.
Check if the angle is zero.
Parse an angle from a string.
Create a pi angle.
Create an angle in radians.
Create an angle in revolutions.
Get the string representation of an angle unit.
Get the symbol representation of an angle unit.
Get the string representation of the angle.
Create a two pi angle.
Create an undefined angle.
Create a zero angle.
- class Unit(self: ostk.physics.unit.Angle.Unit, value: int)¶
Bases:
pybind11_object
Members:
- Undefined :
Undefined unit.
- Radian :
Radian unit.
- Degree :
Degree unit.
- Arcminute :
Arcminute unit.
- Arcsecond :
Arcsecond unit.
- Revolution :
Revolution unit.
- property name¶
- __add__(
- self: ostk.physics.unit.Angle,
- arg0: ostk.physics.unit.Angle,
- __mul__(
- self: ostk.physics.unit.Angle,
- arg0: ostk.core.type.Real,
- static arcminutes(value: ostk.core.type.Real) ostk.physics.unit.Angle ¶
Create an angle in arcminutes.
- Parameters:
value (Real) -- A value.
- Returns:
An angle in arcminutes.
- Return type:
- static arcseconds(value: ostk.core.type.Real) ostk.physics.unit.Angle ¶
Create an angle in arcseconds.
- Parameters:
value (Real) -- A value.
- Returns:
An angle in arcseconds.
- Return type:
- static between(*args, **kwargs)¶
Overloaded function.
between(first_vector: numpy.ndarray[numpy.float64[2, 1]], second_vector: numpy.ndarray[numpy.float64[2, 1]]) -> ostk.physics.unit.Angle
Create an angle between two vectors.
- Args:
first_vector (Vector2d): A first vector. second_vector (Vector2d): A second vector.
- Returns:
Angle: An angle between two vectors.
between(first_vector: numpy.ndarray[numpy.float64[3, 1]], second_vector: numpy.ndarray[numpy.float64[3, 1]]) -> ostk.physics.unit.Angle
Create an angle between two vectors.
- Args:
first_vector (numpy.ndarray): A first vector. second_vector (numpy.ndarray): A second vector.
- Returns:
Angle: An angle between two vectors.
- static degrees(value: ostk.core.type.Real) ostk.physics.unit.Angle ¶
Create an angle in degrees.
- Parameters:
value (Real) -- A value.
- Returns:
An angle in degrees.
- Return type:
- get_unit(self: ostk.physics.unit.Angle) ostk::physics::unit::Angle::Unit ¶
Get the unit of the angle.
- Returns:
The unit of the angle.
- Return type:
- static half_pi() ostk.physics.unit.Angle ¶
Create a half pi angle.
- Returns:
A half pi angle.
- Return type:
- in_arcminutes(*args, **kwargs)¶
Overloaded function.
in_arcminutes(self: ostk.physics.unit.Angle) -> ostk.core.type.Real
Get the angle in arcminutes.
- Returns:
float: The angle in arcminutes.
in_arcminutes(self: ostk.physics.unit.Angle, lower_bound: ostk.core.type.Real, upper_bound: ostk.core.type.Real) -> ostk.core.type.Real
Get the angle in arcminutes.
- Args:
lower_bound (Real): A lower bound. upper_bound (Real): An upper bound.
- Returns:
float: The angle in arcminutes.
- in_arcseconds(*args, **kwargs)¶
Overloaded function.
in_arcseconds(self: ostk.physics.unit.Angle) -> ostk.core.type.Real
Get the angle in arcseconds.
- Returns:
float: The angle in arcseconds.
in_arcseconds(self: ostk.physics.unit.Angle, lower_bound: ostk.core.type.Real, upper_bound: ostk.core.type.Real) -> ostk.core.type.Real
Get the angle in arcseconds.
- Args:
lower_bound (Real): A lower bound. upper_bound (Real): An upper bound.
- Returns:
float: The angle in arcseconds.
- in_degrees(*args, **kwargs)¶
Overloaded function.
in_degrees(self: ostk.physics.unit.Angle) -> ostk.core.type.Real
Get the angle in degrees.
- Returns:
float: The angle in degrees.
in_degrees(self: ostk.physics.unit.Angle, lower_bound: ostk.core.type.Real, upper_bound: ostk.core.type.Real) -> ostk.core.type.Real
Get the angle in degrees.
- Args:
lower_bound (Real): A lower bound. upper_bound (Real): An upper bound.
- Returns:
float: The angle in degrees.
- in_radians(*args, **kwargs)¶
Overloaded function.
in_radians(self: ostk.physics.unit.Angle) -> ostk.core.type.Real
Get the angle in radians.
- Returns:
float: The angle in radians.
in_radians(self: ostk.physics.unit.Angle, lower_bound: ostk.core.type.Real, upper_bound: ostk.core.type.Real) -> ostk.core.type.Real
Get the angle in radians.
- Args:
lower_bound (Real): A lower bound. upper_bound (Real): An upper bound.
- Returns:
float: The angle in radians.
- in_revolutions(self: ostk.physics.unit.Angle) ostk.core.type.Real ¶
Get the angle in revolutions.
- Returns:
The angle in revolutions.
- Return type:
- in_unit(
- self: ostk.physics.unit.Angle,
- unit: ostk::physics::unit::Angle::Unit,
Get the angle in the specified unit.
- is_defined(self: ostk.physics.unit.Angle) bool ¶
Check if the angle is defined.
- Returns:
True if defined.
- Return type:
- is_zero(self: ostk.physics.unit.Angle) bool ¶
Check if the angle is zero.
- Returns:
True if zero.
- Return type:
- static parse(string: ostk.core.type.String) ostk.physics.unit.Angle ¶
Parse an angle from a string.
- static pi() ostk.physics.unit.Angle ¶
Create a pi angle.
- Returns:
A pi angle.
- Return type:
- static radians(value: ostk.core.type.Real) ostk.physics.unit.Angle ¶
Create an angle in radians.
- Parameters:
value (Real) -- A value.
- Returns:
An angle in radians.
- Return type:
- static revolutions(value: ostk.core.type.Real) ostk.physics.unit.Angle ¶
Create an angle in revolutions.
- Parameters:
value (Real) -- A value.
- Returns:
An angle in revolutions.
- Return type:
- static string_from_unit(unit: ostk::physics::unit::Angle::Unit) ostk.core.type.String ¶
Get the string representation of an angle unit.
- static symbol_from_unit(unit: ostk::physics::unit::Angle::Unit) ostk.core.type.String ¶
Get the symbol representation of an angle unit.
- to_string(
- self: ostk.physics.unit.Angle,
- precision: ostk.core.type.Integer = Integer.undefined(),
Get the string representation of the angle.
- static two_pi() ostk.physics.unit.Angle ¶
Create a two pi angle.
- Returns:
A two pi angle.
- Return type:
- static undefined() ostk.physics.unit.Angle ¶
Create an undefined angle.
- Returns:
An undefined angle.
- Return type:
- static zero() ostk.physics.unit.Angle ¶
Create a zero angle.
- Returns:
A zero angle.
- Return type: