コード例 #1
0
bool blink::FloatBoxTest::ApproximatelyEqual(const FloatBox& a, const FloatBox& b)
{
    if (!ApproximatelyEqual(a.x(), b.x())
            || !ApproximatelyEqual(a.y(), b.y())
            || !ApproximatelyEqual(a.z(), b.z())
            || !ApproximatelyEqual(a.width(), b.width())
            || !ApproximatelyEqual(a.height(), b.height())
            || !ApproximatelyEqual(a.depth(), b.depth())) {
        return false;
    }
    return true;
}
コード例 #2
0
void blink::PrintTo(const FloatBox& box, ::std::ostream* os)
{
    *os << "FloatBox("
        << box.x() << ", "
        << box.y() << ", "
        << box.z() << ", "
        << box.width() << ", "
        << box.height() << ", "
        << box.depth() << ")";
}
コード例 #3
0
void PrintTo(const FloatBox& box, std::ostream* os)
{
    ScopedFloatFlags scope(*os);
    *os << "FloatBox("
        << box.x() << ", "
        << box.y() << ", "
        << box.z() << ", "
        << box.width() << ", "
        << box.height() << ", "
        << box.depth() << ")";
}