dlr::geometry::Triangle3D Class Reference

The Triangle3D class represents a triangle in 3D space. More...

#include <triangle3D.h>

List of all members.

Public Member Functions

 Triangle3D ()
 The default constructor initializes to a triangle in the X-Y plane.
 Triangle3D (const Vector3D &vertex0, const Vector3D &vertex1, const Vector3D &vertex2)
 This constructor initializes the triangle using three points.
 Triangle3D (const Triangle3D &source)
 The copy constructor deep copies its argument.
 ~Triangle3D ()
 Destructor.
Triangle3Doperator= (const Triangle3D &source)
 The assignment operator deep copies its argument.
const Vector3D & getVertex0 () const
 This member function returns the one of the three vertices that define the triangle.
const Vector3D & getVertex1 () const
 This member function returns the one of the three vertices that define the triangle.
const Vector3D & getVertex2 () const
 This member function returns the one of the three vertices that define the triangle.
Triangle3DsetValue (Vector3D const &vertex0, Vector3D const &vertex1, Vector3D const &vertex2)


Detailed Description

The Triangle3D class represents a triangle in 3D space.

Definition at line 28 of file triangle3D.h.


Constructor & Destructor Documentation

dlr::geometry::Triangle3D::Triangle3D (  )  [inline]

The default constructor initializes to a triangle in the X-Y plane.

Definition at line 35 of file triangle3D.h.

dlr::geometry::Triangle3D::Triangle3D ( const Vector3D &  vertex0,
const Vector3D &  vertex1,
const Vector3D &  vertex2 
)

This constructor initializes the triangle using three points.

Parameters:
vertex0 This argument is one of the three points that define the triangle.
vertex1 This argument is one of the three points that define the triangle.
vertex2 This argument is one of the three points that define the triangle.

Definition at line 26 of file triangle3D.cpp.

dlr::geometry::Triangle3D::Triangle3D ( const Triangle3D source  ) 

The copy constructor deep copies its argument.

Parameters:
source This argument is the class instance to be copied.

Definition at line 39 of file triangle3D.cpp.

dlr::geometry::Triangle3D::~Triangle3D (  )  [inline]

Destructor.

Definition at line 68 of file triangle3D.h.


Member Function Documentation

const Vector3D& dlr::geometry::Triangle3D::getVertex0 (  )  const [inline]

This member function returns the one of the three vertices that define the triangle.

Returns:
The return value is a Vector3D representing the first vertex of the triangle.

Definition at line 90 of file triangle3D.h.

const Vector3D& dlr::geometry::Triangle3D::getVertex1 (  )  const [inline]

This member function returns the one of the three vertices that define the triangle.

Returns:
The return value is a Vector3D representing the second vertex of the triangle.

Definition at line 101 of file triangle3D.h.

const Vector3D& dlr::geometry::Triangle3D::getVertex2 (  )  const [inline]

This member function returns the one of the three vertices that define the triangle.

Returns:
The return value is a Vector3D representing the first vertex of the triangle.

Definition at line 112 of file triangle3D.h.

Triangle3D & dlr::geometry::Triangle3D::operator= ( const Triangle3D source  ) 

The assignment operator deep copies its argument.

Parameters:
source This argument is the class instance to be copied.
Returns:
The return value is a reference to *this.

Definition at line 51 of file triangle3D.cpp.

References m_vertex0, m_vertex1, and m_vertex2.


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

Generated on Wed Nov 25 11:45:26 2009 for dlrGeometry Utility Library by  doxygen 1.5.8