Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GetInteriorHeading.md #936

Merged
merged 2 commits into from
Nov 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions INTERIOR/GetInteriorHeading.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
---
ns: INTERIOR
---
## _GET_INTERIOR_HEADING
## GET_INTERIOR_HEADING
freedy69 marked this conversation as resolved.
Show resolved Hide resolved

```c
// 0xF49B58631D9E22D9
float _GET_INTERIOR_HEADING(int interior);
```

```
GET_INTERIOR_*

NativeDB Introduced: v1493
freedy69 marked this conversation as resolved.
Show resolved Hide resolved
float GET_INTERIOR_HEADING(int interior);
```

## Parameters
* **interior**:
* **interior**: ID of the interior

## Return value
Returns interior heading in radians. Multiply the returned value with 57.29578 to get it in degrees.
Copy link
Contributor

@4mmonium 4mmonium Nov 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a quick note, that 57.29578 is the result of 180/Pi or 360/τ for people that prefer such.

Formulas

Name Mathematical Symbol Mathematical Formula Numerical Representation Conversion Formula to Degrees
Pi π π 3.14159... Radians * (180/3.14159)
Tau τ 6.28318... Radians * (360/6.28318)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the return value text, how is it now?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed the return value text, how is it now?

LGTM now, thank you 👍

Loading