Created
July 26, 2015 14:31
-
-
Save zao/769918797459d1624f9d to your computer and use it in GitHub Desktop.
Vector math. Yay.
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
inline float3& operator *= (float3& lhs, float rhs) { | |
lhs.x += rhs; | |
lhs.y += rhs; | |
lhs.z += rhs; | |
return lhs; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment