IPosition#
- class ansys.stk.core.stkutil.IPosition#
IPosition provides access to the position of the object.
Overview#
Change the position coordinates to type specified. |
|
Assign the coordinates into the system. |
|
Assign the position using the Geocentric representation. |
|
Assign the position using the Geodetic representation. |
|
Assign the position using the Spherical representation. |
|
Assign the position using the Cylindrical representation. |
|
Assign the position using the Cartesian representation. |
|
Assign the position using the Planetocentric representation. |
|
Assign the position using the Planetodetic representation. |
|
Get the position using the Planetocentric representation. |
|
Get the position using the Planetodetic representation. |
|
Get the position using the Spherical representation. |
|
Get the position using the Cylindrical representation. |
|
Get the position using the Cartesian representation. |
|
Return the Planetocentric elements as an array. |
|
Return the Planetodetic elements as an array. |
|
Return the Spherical elements as an array. |
|
Return the Cylindrical elements as an array. |
|
Return the Cartesian elements as an array. |
Get the type of position currently being used. |
|
Get the central body. |
Import detail#
from ansys.stk.core.stkutil import IPosition
Property detail#
- property IPosition.position_type: PositionType#
Get the type of position currently being used.
Method detail#
- IPosition.convert_to(self, type: PositionType) IPosition #
Change the position coordinates to type specified.
- Parameters:
type :
PositionType
- Returns:
IPosition
- IPosition.assign(self, position: IPosition) None #
Assign the coordinates into the system.
- Parameters:
position :
IPosition
- Returns:
- IPosition.assign_geocentric(self, lat: Any, lon: Any, alt: float) None #
Assign the position using the Geocentric representation.
- IPosition.assign_geodetic(self, lat: Any, lon: Any, alt: float) None #
Assign the position using the Geodetic representation.
- IPosition.assign_spherical(self, lat: Any, lon: Any, radius: float) None #
Assign the position using the Spherical representation.
- IPosition.assign_cylindrical(self, radius: float, z: float, lon: Any) None #
Assign the position using the Cylindrical representation.
- IPosition.assign_cartesian(self, x: float, y: float, z: float) None #
Assign the position using the Cartesian representation.
- IPosition.assign_planetocentric(self, lat: Any, lon: Any, alt: float) None #
Assign the position using the Planetocentric representation.
- IPosition.assign_planetodetic(self, lat: Any, lon: Any, alt: float) None #
Assign the position using the Planetodetic representation.
- IPosition.query_planetocentric(self) Tuple[Any, Any, float] #
Get the position using the Planetocentric representation.
- Returns:
Any, float]
- IPosition.query_planetodetic(self) Tuple[Any, Any, float] #
Get the position using the Planetodetic representation.
- Returns:
Any, float]
- IPosition.query_spherical(self) Tuple[Any, Any, float] #
Get the position using the Spherical representation.
- Returns:
Any, float]
- IPosition.query_cylindrical(self) Tuple[float, Any, float] #
Get the position using the Cylindrical representation.
- Returns:
Any, float]
- IPosition.query_cartesian(self) Tuple[float, float, float] #
Get the position using the Cartesian representation.
- Returns:
Tuple[float, float, float]
- IPosition.query_planetocentric_array(self) list #
Return the Planetocentric elements as an array.
- Returns:
- IPosition.query_planetodetic_array(self) list #
Return the Planetodetic elements as an array.
- Returns: