/[ff3d]/ff3d/geometry/Cube.cpp
ViewVC logotype

Diff of /ff3d/geometry/Cube.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.1.1 by delpinux, Mon Feb 17 16:32:50 2003 UTC revision 1.2 by delpinux, Fri Aug 8 08:39:56 2003 UTC
# Line 46  Cube::Cube() Line 46  Cube::Cube()
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.

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26