Lord and Savior Johan
This commit is contained in:
@@ -80,6 +80,15 @@ bool Vec3f::operator!=(const Vec3f & other)
|
||||
return x != other.x & y != other.y & z != other.z;
|
||||
}
|
||||
|
||||
Vec3f Vec3f::cross(const Vec3f & other)
|
||||
{
|
||||
return Vec3f(
|
||||
y*other.z - other.y*z,
|
||||
z*other.x - other.z*x,
|
||||
x*other.y - other.x*y
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Vec2f::Vec2f(float x, float y)
|
||||
|
||||
Reference in New Issue
Block a user