Skip to content

Commit

Permalink
libdeng2|Vector: Added a method for swapped X and Z components
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jan 26, 2014
1 parent 9452f7a commit 6bdb9aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/libdeng2/include/de/core/vector.h
Expand Up @@ -636,6 +636,9 @@ class Vector4 : public Vector3<Type>
}
Vector2<Type> xy() const { return *this; }
Vector2<Type> zw() const { return Vector2<Type>(Vector3<Type>::z, w); }
Vector4<Type> zyxw() const {
return Vector4<Type>(Vector3<Type>::z, Vector3<Type>::y, Vector3<Type>::x, w);
}
public:
Type w;
};
Expand Down

0 comments on commit 6bdb9aa

Please sign in to comment.