GreatArcInterpolatorFactory#
- class ansys.stk.core.graphics.GreatArcInterpolatorFactory#
The great arc interpolator computes interpolated positions along a great arc. A great arc is the shortest path between two positions on an ellipsoid.
Overview#
Initialize a default great arc interpolator. This is equivalent to constructing a great arc interpolator with a central body equal to an instance of earth central body and a granularity of 1 degree. |
|
Initialize a great arc interpolator with the specified centralBody and a granularity of 1 degree. |
|
Initialize a great arc interpolator with the specified centralBody and granularity. |
Examples#
Compute interpolated positions along a great arc
# Scenario scenario: Scenario object
# Create a array of LLA values and interoplate them over the specified
# central body
positionArray = [[35.017], [-118.540], [0], [44.570], [-96.474], [0], [31.101], [-82.619], [0]]
manager = scenario.scene_manager
# Interpolate points over great arc
interpolator = manager.initializers.great_arc_interpolator.initialize_with_central_body("Earth")
interpolator.granularity = 0.1
result = interpolator.interpolate(positionArray)
Import detail#
from ansys.stk.core.graphics import GreatArcInterpolatorFactory
Method detail#
- GreatArcInterpolatorFactory.initialize(self) GreatArcInterpolator #
Initialize a default great arc interpolator. This is equivalent to constructing a great arc interpolator with a central body equal to an instance of earth central body and a granularity of 1 degree.
- Returns:
GreatArcInterpolator
- GreatArcInterpolatorFactory.initialize_with_central_body(self, central_body: str) GreatArcInterpolator #
Initialize a great arc interpolator with the specified centralBody and a granularity of 1 degree.
- Parameters:
central_body :
str
- Returns:
GreatArcInterpolator
- GreatArcInterpolatorFactory.initialize_with_central_body_and_granularity(self, central_body: str, granularity: float) GreatArcInterpolator #
Initialize a great arc interpolator with the specified centralBody and granularity.