euler::point_t Class Reference

#include <point.h>

List of all members.

Public Member Functions

float & operator[] (int i)
float const & operator[] (int i) const
 point_t (float x=.0f, float y=.0f, float z=.0f, float w=1.0f)
point_t operator+ (point_t const &r) const
point_toperator+= (point_t const &r)

Private Attributes

float p [4]


Detailed Description

Examples:

test-block.cc, test-cube-with-hole-2.cc, test-cube-with-hole.cc, test-cube.cc, test-cylinder-2.cc, test-cylinder.cc, test-sphere.cc, and test-torus.cc.

Definition at line 27 of file point.h.


Constructor & Destructor Documentation

euler::point_t::point_t float  x = .0f,
float  y = .0f,
float  z = .0f,
float  w = 1.0f
[inline]
 

Definition at line 33 of file point.h.

References p.

00033 { p[0] = x, p[1] = y, p[2] = z, p[3] = w; }


Member Function Documentation

point_t euler::point_t::operator+ point_t const &  r  )  const [inline]
 

Definition at line 35 of file point.h.

References p.

00035 { assert(p[3] == r[3]); point_t ret(*this);  return ret += r; }

point_t& euler::point_t::operator+= point_t const &  r  )  [inline]
 

Definition at line 36 of file point.h.

References p.

00036 { assert(p[3] == r[3]); for(int i=0; i<3; i++) p[i] += r[i]; return *this; }

float const& euler::point_t::operator[] int  i  )  const [inline]
 

Definition at line 32 of file point.h.

References p.

00032 { return p[i]; }

float& euler::point_t::operator[] int  i  )  [inline]
 

Definition at line 31 of file point.h.

References p.

00031 { return p[i]; }


Member Data Documentation

float euler::point_t::p[4] [private]
 

Definition at line 29 of file point.h.

Referenced by operator+(), operator+=(), operator[](), and point_t().


The documentation for this class was generated from the following file:
Generated on Wed Aug 30 16:27:59 2006 for euler by  doxygen 1.4.6