git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@30
8a3a26a2-13c4-0310-b231-
cf6edde360e5
return AABB(vector3_mid(min, max), vector3_scaled(vector3_subtracted(max, min), 0.5));
}
+ AABB evaluateResize(const Vector3& translation, const Matrix4& rotation) const
+ {
+ AABB aabb(evaluateResize(translation_to_local(translation, rotation)));
+ aabb.origin = m_bounds.origin + translation_from_local(aabb.origin - m_bounds.origin, rotation);
+ return aabb;
+ }
Matrix4 evaluateTransform(const Vector3& translation) const
{
AABB aabb(evaluateResize(translation));
//globalOutputStream() << getTranslation() << "\n";
m_dragPlanes.m_bounds = m_contained.aabb();
- AABB aabb(m_dragPlanes.evaluateResize(translation_to_local(getTranslation(), rotation())));
- aabb.origin = m_contained.aabb().origin + translation_from_local(aabb.origin - m_contained.aabb().origin, rotation());
-
- m_contained.setLightRadius(aabb);
+ m_contained.setLightRadius(m_dragPlanes.evaluateResize(getTranslation(), rotation()));
}
}
void applyTransform()