# Ballistics Utility

## Public Methods

| Return Type | Name                  | Signature                              | Description                                                                                                       |
| ----------- | --------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| **Vector3** | `GetWindVector`       | (Vector3, float)                       | Calculates & returns wind vector in m/s.                                                                          |
| **Vector3** | `GetGravity`          | (float, float)                         | Calculates & returns a gravity vector.                                                                            |
| **float**   | `GetKineticEnergy`    | (Vector3, float)                       | Calculates & returns a kinetic energy based on velocity & mass.                                                   |
| **void**    | `UpdateKEAndVelocity` | (ref Vector3, ref float, float, float) | Updates the given kinetic energy to match the new kinetic energy, updates given the velocity accordingly as well. |
| **Vector3** | `GetDragVector`       | (Vector3, DragGModel, float, float)    | Calculates & returns a drag vector based on velocity, drag model & ballistic coefficient.                         |
| **Vector3** | `GetSpinDrift`        | (ref Vector3, double, float, float)    | Calculates & returns a spin drift vector based on previous drift & stability factor.                              |
| **double**  | `GetStability`        | (float...)                             | Calculates & returns stability factor of a bullet based on bullet properties.                                     |
| **double**  | `GetRetardation`      | (double, double,DragGModel)            | Calculates & returns retardation factor based on velocity, ballistic coefficient and drag model.                  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://rsb.inanevin.com/api/ballistics-utility.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
