Example #1
0
Transform::Transform(const Vector3& translation, const Quat4& rotation)
  : isIdentity(false), isPureTranslationRotation(true),
    hasTranslation(translation!=Vector3(0,0,0)), hasRotation(!rotation.equals(Quat4())),
    orient(rotation), trans(translation) {}
Example #2
0
// constructors
Transform::Transform(const Vector3& translation)
  : isIdentity(translation==Vector3(0,0,0)), isPureTranslationRotation(true),
    hasTranslation(translation!=Vector3(0,0,0)), hasRotation(false),
    trans(translation) {}