示例#1
0
AABox Volume3DOverlay::getBounds() const {
    auto extents = Extents{_localBoundingBox};
    extents.rotate(getWorldOrientation());
    extents.shiftBy(getWorldPosition());

    return AABox(extents);
}
示例#2
0
CPW_Function:: CPW_Function(const CPW_Function &fn, const Unit deltaUnit) :
Object(fn),
foot(fn.foot),
coords(fn.coords)
{
    assert(this->is_same_that(fn));
    shiftBy(deltaUnit);
}
示例#3
0
void Extents::transform(const Transform& transform) {
    scale(transform.getScale());
    rotate(transform.getRotation());
    shiftBy(transform.getTranslation());
}