Skip to content

Commit

Permalink
libdeng2|Matrix: Added 2D variant of scaleThenTranslate()
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 11, 2013
1 parent 38202b1 commit ff61400
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/libdeng2/include/de/core/matrix.h
Expand Up @@ -387,6 +387,9 @@ class Matrix4
static Matrix4 scaleThenTranslate(Type scalar, Vec3 const &translation) {
return scaleThenTranslate(Vec3(scalar, scalar, scalar), translation);
}
static Matrix4 scaleThenTranslate(Vec2 const &scalar, Vec2 const &translation) {
return scaleThenTranslate(scalar, Vec3(translation, 0));
}
static Matrix4 scaleThenTranslate(Vec2 const &scalar, Vec3 const &translation) {
return scaleThenTranslate(Vec3(scalar, Type(1)), translation);
}
Expand Down

0 comments on commit ff61400

Please sign in to comment.