Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

gfx::Quad3 Class Reference

four sided planar polygon (3D) More...

Collaboration diagram for gfx::Quad3:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Quad3 ()
 Quad3 (const Quad3 &q)
 Quad3 (const Point3 &c1, const Point3 &c2, const Point3 &c3, const Point3 &c4)
 ~Quad3 ()
const Point3operator[] (Int i) const
Point3operator[] (Int i)
Quad3operator *= (Real s)
Quad3operator/= (Real s)
void transform (const base::Transform &t)
Real distanceTo (const Point3 &p) const
 shortest distance between quad and p

Point3 pointClosestTo (const Point3 &p) const
 find point on quad that is closest to p

Segment3 shortestSegmentBetween (const Segment3 &s) const
 return the shortest segment between this quad and the segment s

Segment3 shortestSegmentBetween (const Triangle3 &t) const
 return the shortest segment between this quad and the triangle t

Segment3 shortestSegmentBetween (const Quad3 &q) const
 return the shortest segment between this quad and the quad q

Real distanceTo (const Segment3 &s) const
 shortest distance between this quad and the segment s

Real distanceTo (const Triangle3 &t) const
 shortest distance between this quad and the triangle t

Real distanceTo (const Quad3 &q) const
 shortest distance between this quad and the quad q


Public Attributes

Point3 c1
Point3 c2
Point3 c3
Point3 c4

Detailed Description

four sided planar polygon (3D)

Definition at line 40 of file Quad3.


Constructor & Destructor Documentation

gfx::Quad3::Quad3  )  [inline]
 

Definition at line 44 of file Quad3.

gfx::Quad3::Quad3 const Quad3 q  )  [inline]
 

Definition at line 45 of file Quad3.

References c1, c2, c3, and c4.

gfx::Quad3::Quad3 const Point3 c1,
const Point3 c2,
const Point3 c3,
const Point3 c4
 

gfx::Quad3::~Quad3  )  [inline]
 

Definition at line 48 of file Quad3.


Member Function Documentation

Real gfx::Quad3::distanceTo const Quad3 q  )  const
 

shortest distance between this quad and the quad q

Real gfx::Quad3::distanceTo const Triangle3 t  )  const
 

shortest distance between this quad and the triangle t

Real gfx::Quad3::distanceTo const Segment3 s  )  const
 

shortest distance between this quad and the segment s

Real gfx::Quad3::distanceTo const Point3 p  )  const
 

shortest distance between quad and p

Quad3& gfx::Quad3::operator *= Real  s  )  [inline]
 

Definition at line 54 of file Quad3.

References c1, c2, c3, and c4.

Quad3& gfx::Quad3::operator/= Real  s  )  [inline]
 

Definition at line 55 of file Quad3.

References c1, c2, c3, and c4.

Point3& gfx::Quad3::operator[] Int  i  )  [inline]
 

Definition at line 51 of file Quad3.

References c1, c2, c3, c4, and base::Point3.

const Point3& gfx::Quad3::operator[] Int  i  )  const [inline]
 

Definition at line 50 of file Quad3.

References c1, c2, c3, c4, and base::Point3.

Point3 gfx::Quad3::pointClosestTo const Point3 p  )  const
 

find point on quad that is closest to p

Segment3 gfx::Quad3::shortestSegmentBetween const Quad3 q  )  const
 

return the shortest segment between this quad and the quad q

Segment3 gfx::Quad3::shortestSegmentBetween const Triangle3 t  )  const
 

return the shortest segment between this quad and the triangle t

Segment3 gfx::Quad3::shortestSegmentBetween const Segment3 s  )  const
 

return the shortest segment between this quad and the segment s

void gfx::Quad3::transform const base::Transform t  )  [inline]
 

Definition at line 57 of file Quad3.

References c1, c2, c3, and c4.


Member Data Documentation

Point3 gfx::Quad3::c1
 

Definition at line 90 of file Quad3.

Referenced by operator *=(), operator/=(), gfx::operator<<(), operator[](), Quad3(), and transform().

Point3 gfx::Quad3::c2
 

Definition at line 90 of file Quad3.

Referenced by operator *=(), operator/=(), gfx::operator<<(), operator[](), Quad3(), and transform().

Point3 gfx::Quad3::c3
 

Definition at line 90 of file Quad3.

Referenced by operator *=(), operator/=(), gfx::operator<<(), operator[](), Quad3(), and transform().

Point3 gfx::Quad3::c4
 

Definition at line 90 of file Quad3.

Referenced by operator *=(), operator/=(), gfx::operator<<(), operator[](), Quad3(), and transform().


The documentation for this class was generated from the following file:
Generated on Thu Jul 29 16:39:53 2004 for OpenSim by doxygen 1.3.6