UV Class Reference

UV coordinate wrapper for texture coordinates. More...

#include <UV.h>

List of all members.

Public Member Functions

 UV (real_t u_, real_t v_)
 UV (const Point2 &p)
 UV ()
real_t operator[] (unsigned index) const
real_toperator[] (unsigned index)

Public Attributes

union {
   struct {
      real_t   u
      real_t   v
   } 
   real_t   data [2]
}; 


Detailed Description

UV coordinate wrapper for texture coordinates.

Author:
Travis Fischer (fisch0920@gmail.com)
Date:
Spring 2008
Note:
u and v should lie in [0, 1]

Definition at line 17 of file UV.h.


Constructor & Destructor Documentation

UV::UV ( real_t  u_,
real_t  v_ 
) [inline]

Definition at line 27 of file UV.h.

UV::UV ( const Point2 p  )  [inline]

Definition at line 31 of file UV.h.

UV::UV (  )  [inline]

Definition at line 35 of file UV.h.


Member Function Documentation

real_t UV::operator[] ( unsigned  index  )  const [inline]

Definition at line 39 of file UV.h.

real_t& UV::operator[] ( unsigned  index  )  [inline]

Definition at line 45 of file UV.h.


Member Data Documentation

Definition at line 20 of file UV.h.

Definition at line 21 of file UV.h.

Definition at line 24 of file UV.h.

union { ... }


The documentation for this class was generated from the following file:

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6