-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go: added some vector and angle functions.
Added functions: DegreesFromRadians RadiansFromDegrees AngleBetween StateVector.Position StateVector.Velocity Changed existing functions to pass structs by value, just like we do in the C code. This is a safety feature to signal value semantics and a contract not to mutate the argument state. Run Go tests with the -v option to log more info about what's happening.
- Loading branch information
1 parent
4941fbb
commit d9cb9d6
Showing
5 changed files
with
187 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.