Skip to content

Instantly share code, notes, and snippets.

@vlytsus
Last active October 30, 2020 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vlytsus/1fb5b78de4fb00efd474fbe0d0eebeac to your computer and use it in GitHub Desktop.
Save vlytsus/1fb5b78de4fb00efd474fbe0d0eebeac to your computer and use it in GitHub Desktop.
Apparent Wind Vector
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