46 |
Cube::Cube(const Vertex& a, const Vertex& b) |
Cube::Cube(const Vertex& a, const Vertex& b) |
47 |
: Shape(cube) |
: Shape(cube) |
48 |
{ |
{ |
49 |
const real_t& x0 = std::min (a.X(), b.X()); |
const real_t& x0 = std::min (a.x(), b.x()); |
50 |
const real_t& x1 = std::max (a.X(), b.X()); |
const real_t& x1 = std::max (a.x(), b.x()); |
51 |
const real_t& y0 = std::min (a.Y(), b.Y()); |
const real_t& y0 = std::min (a.y(), b.y()); |
52 |
const real_t& y1 = std::max (a.Y(), b.Y()); |
const real_t& y1 = std::max (a.y(), b.y()); |
53 |
const real_t& z0 = std::min (a.Z(), b.Z()); |
const real_t& z0 = std::min (a.z(), b.z()); |
54 |
const real_t& z1 = std::max (a.Z(), b.Z()); |
const real_t& z1 = std::max (a.z(), b.z()); |
55 |
__lower.X() = x0; |
__lower.x() = x0; |
56 |
__lower.Y() = y0; |
__lower.y() = y0; |
57 |
__lower.Z() = z0; |
__lower.z() = z0; |
58 |
__higher.X() = x1; |
__higher.x() = x1; |
59 |
__higher.Y() = y1; |
__higher.y() = y1; |
60 |
__higher.Z() = z1; |
__higher.z() = z1; |
61 |
} |
} |
62 |
|
|
63 |
//! Copy constructor. |
//! Copy constructor. |