Click or drag to resize

ThirdBodyGravityIndexOf Method (String)

Search the ThirdBodies to see if the given body name is in the list and return its index. Otherwise, return -1.

Namespace:  AGI.Foundation.Celestial
Assembly:  AGI.Foundation.OrbitPropagation (in AGI.Foundation.OrbitPropagation.dll) Version: 19.1.398.0 (19.1.398.0)
public int IndexOf(
	string name


Type: SystemString
The body name for which to search.

Return Value

Type: Int32
If the name exists in the list of ThirdBodies, this returns the index into the list. Otherwise, it returns -1.
See Also