ostk.physics.Environment¶
- class Environment(*args, **kwargs)¶
Bases:
pybind11_object
Environment modelling
Overloaded function.
__init__(self: ostk.physics.Environment, instant: ostk.physics.time.Instant, objects: list[ostk::physics::environment::Object], set_global_instance: bool = False) -> None
Constructor
- Args:
instant (Instant): An Instant. objects (list[Object]): List of objects. set_global_instance (bool, optional): True if the global environment instance should be set. Defaults to False.
__init__(self: ostk.physics.Environment, central_celestial_object: ostk::physics::environment::Object, objects: list[ostk::physics::environment::Object], instant: ostk.physics.time.Instant = 2000-01-01 11:58:55.816 [UTC], set_global_instance: bool = False) -> None
Constructor
- Args:
central_celestial_object (Object): A central celestial object. objects (list[Object]): List of objects. instant (Instant, optional): An Instant. Default is J2000 epoch. set_global_instance (bool, optional): True if the global environment instance should be set. Defaults to False.
Methods
Access celestial object with a given name.
Access the central celestial object.
Access the global environment instance.
Access an object with a given name.
Access the objects in the environment.
Get the default Environment object.
Get instant.
Get names of objects.
Returns true if the environment has a central celestial object.
Check if the global environment instance is set.
Returns true if environment contains objects with a given name.
Returns true if a given geometry intersects any of the environment objects.
Check if the environment is defined,
Is position in eclipse.
Reset the global environment instance.
Set the instant of the environment.
Get an undefined Environment object.
- access_celestial_object_with_name(
- self: ostk.physics.Environment,
- name: ostk.core.type.String,
Access celestial object with a given name.
- access_central_celestial_object(
- self: ostk.physics.Environment,
Access the central celestial object.
- Returns:
The central celestial object.
- Return type:
- static access_global_instance() ostk.physics.Environment ¶
Access the global environment instance.
- Returns:
The global environment instance.
- Return type:
- access_object_with_name(
- self: ostk.physics.Environment,
- name: ostk.core.type.String,
Access an object with a given name.
- access_objects(
- self: ostk.physics.Environment,
Access the objects in the environment.
- static default(set_global_instance: bool = False) ostk.physics.Environment ¶
Get the default Environment object.
- Parameters:
(set_global_instance) -- True if the global environment instance should be set.
- Returns:
The default Environment object.
- Return type:
- get_instant(self: ostk.physics.Environment) ostk.physics.time.Instant ¶
Get instant.
- Returns:
The instant.
- Return type:
- get_object_names(
- self: ostk.physics.Environment,
Get names of objects.
- has_central_celestial_object(self: ostk.physics.Environment) bool ¶
Returns true if the environment has a central celestial object.
- Returns:
True if the environment has a central celestial object, False otherwise.
- Return type:
- static has_global_instance() bool ¶
Check if the global environment instance is set.
- Returns:
True if the global environment instance is set, False otherwise.
- Return type:
- has_object_with_name(
- self: ostk.physics.Environment,
- name: ostk.core.type.String,
Returns true if environment contains objects with a given name.
- intersects(
- self: ostk.physics.Environment,
- geometry: ostk::physics::environment::object::Geometry,
- objects_to_ignore: list[ostk::physics::environment::Object] = [],
- geometry: ostk::physics::environment::object::Geometry,
Returns true if a given geometry intersects any of the environment objects.
- is_defined(self: ostk.physics.Environment) bool ¶
Check if the environment is defined,
- Returns:
True if the environment is defined, False otherwise,
- Return type:
- is_position_in_eclipse(
- self: ostk.physics.Environment,
- position: ostk.physics.coordinate.Position,
Is position in eclipse.
- set_instant(
- self: ostk.physics.Environment,
- instant: ostk.physics.time.Instant,
Set the instant of the environment.
- Parameters:
instant (Instant) -- The new instant of the environment.
- static undefined() ostk.physics.Environment ¶
Get an undefined Environment object.
- Returns:
An undefined Environment object.
- Return type: