Last active
October 30, 2020 00:52
-
-
Save vlytsus/1fb5b78de4fb00efd474fbe0d0eebeac to your computer and use it in GitHub Desktop.
Apparent Wind Vector
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
Vector3 calculateApparentWindVector(Vector3 windSpeedVector, Vector3 boatSpeedVector) { | |
// Since Face wind vector is caused by yacht movement it | |
// has the yacht velocity magnitude but opposite direction. | |
// So we will just subtract one vector from another | |
return windSpeedVector - boatSpeedVector; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment