KJB
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
kjb::Right_Triangle_Pair Class Reference

#include <gr_right_triangle_pair.h>

Public Member Functions

 Right_Triangle_Pair (const Polymesh &p)
 Constructs a right_triangle_pair from a polymesh. More...
 
 Right_Triangle_Pair (const Polymesh &p, int triangle1, int triangle2, int hypotenuse1, int hypotenuse2, Vector edges1, Vector edges2)
 
 Right_Triangle_Pair (const Right_Triangle_Pair &rtp)
 Copy constructor. More...
 
 ~Right_Triangle_Pair ()
 Deletes this Right_Triangle_Pair. More...
 
Right_Triangle_Pairoperator= (const Right_Triangle_Pair &rtp)
 Copies a Right_Triangle_Pair into this one. More...
 
const Polymeshget_polymesh () const
 Returns the polymesh. More...
 
int get_triangle1 () const
 Returns the index of one of the right triangles. More...
 
int get_triangle2 () const
 Returns the index of the other right triangles. More...
 
int get_hypotenuse1 () const
 Returns the index of the hypotenuse of triangle1. More...
 
int get_hypotenuse2 () const
 Returns the index of the hypotenuse of triangle2. More...
 
const Vectorget_parallel_edges1 () const
 Returns the Vector containing the indices of the parallel edges in the rectangle formed by the two right triangles. One edge is from triangle1 and the other edge is from triangle2. More...
 
const Vectorget_parallel_edges2 () const
 Returns the Vector containing the indices of the parallel edges in the rectangle formed by the two right triangles. One edge is from triangle1 and the other edge is from triangle2. More...
 

Constructor & Destructor Documentation

Right_Triangle_Pair::Right_Triangle_Pair ( const Polymesh p)

Constructs a right_triangle_pair from a polymesh.

Parameters
pthe polymesh
Right_Triangle_Pair::Right_Triangle_Pair ( const Polymesh p,
int  triangle1,
int  triangle2,
int  hypotenuse1,
int  hypotenuse2,
Vector  edges1,
Vector  edges2 
)
Right_Triangle_Pair::Right_Triangle_Pair ( const Right_Triangle_Pair rtp)

Copy constructor.

Right_Triangle_Pair::~Right_Triangle_Pair ( )

Deletes this Right_Triangle_Pair.

Member Function Documentation

int kjb::Right_Triangle_Pair::get_hypotenuse1 ( ) const
inline

Returns the index of the hypotenuse of triangle1.

int kjb::Right_Triangle_Pair::get_hypotenuse2 ( ) const
inline

Returns the index of the hypotenuse of triangle2.

const Vector& kjb::Right_Triangle_Pair::get_parallel_edges1 ( ) const
inline

Returns the Vector containing the indices of the parallel edges in the rectangle formed by the two right triangles. One edge is from triangle1 and the other edge is from triangle2.

const Vector& kjb::Right_Triangle_Pair::get_parallel_edges2 ( ) const
inline

Returns the Vector containing the indices of the parallel edges in the rectangle formed by the two right triangles. One edge is from triangle1 and the other edge is from triangle2.

const Polymesh* kjb::Right_Triangle_Pair::get_polymesh ( ) const
inline

Returns the polymesh.

int kjb::Right_Triangle_Pair::get_triangle1 ( ) const
inline

Returns the index of one of the right triangles.

int kjb::Right_Triangle_Pair::get_triangle2 ( ) const
inline

Returns the index of the other right triangles.

Right_Triangle_Pair & Right_Triangle_Pair::operator= ( const Right_Triangle_Pair rtp)

Copies a Right_Triangle_Pair into this one.


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