Example #1
0
void Polygon3D::subtract(Transform3D& xform)
{
    // translate
    *this -= xform.getLocation();

    // rotate
    subtractRotation(xform);
}
Example #2
0
void Polygon3D::add(Transform3D& xform)
{
    // rotate
    addRotation(xform);

    // translate
    *this += xform.getLocation();
}