Ejemplo n.º 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) {}
Ejemplo n.º 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) {}