クラス rcsc::DelaunayTriangulation::Triangle

triangle data [詳細]

#include <delaunay_triangulation.h>

すべてのメンバ一覧

Public メソッド

 Triangle (const int id, EdgePtr e0, EdgePtr e1, EdgePtr e2)
 create triangle with index and edges
 ~Triangle ()
 remove this triangle from all edges.
int id () const
 get the Id of this triangle
const Vertexvertex (std::size_t i) const
 get the raw pointer to the vertex that this triangle has
Edgeedge (std::size_t i) const
 get the raw pointer to the edge that this triangle has
const Vector2Dcircumcenter () const
 get the circumcenter point of this triangle
const double & circumradius () const
 get the radius of the circumcircle of this triangle
bool contains (const Vector2D &pos) const
 check if *circumcircle* contains the specified point
bool hasVertex (const Vertex *v) const
 check if this triangle has the specified vertex.
bool hasEdge (const EdgePtr e) const
 check if this triangle has the specified edge.
const VertexgetVertexExclude (const Vertex *v1, const Vertex *v2) const
 get the pointer to the vertex that is different from the specified vertices.
const VertexgetVertexExclude (const Edge *edge) const
 get the pointer to the vertex that does not belong to the specified edge.
EdgegetEdgeInclude (const Vertex *v1, const Vertex *v2) const
 get the pointer to the edge that has the specified vertices.
EdgegetEdgeExclude (const Vertex *v) const
 get the pointer to the edge that does not have the specified vertex.


説明

triangle data


コンストラクタとデストラクタ

rcsc::DelaunayTriangulation::Triangle::Triangle ( const int  id,
EdgePtr  e0,
EdgePtr  e1,
EdgePtr  e2 
)

create triangle with index and edges

引数:
id Id number of this triangle
e0 raw pointer to the first edge instance
e1 raw pointer to the second edge instance
e2 raw pointer to the third edge instance
pointers to the vertices are automatically set from edges.


関数

int rcsc::DelaunayTriangulation::Triangle::id (  )  const [inline]

get the Id of this triangle

戻り値:
Id number

const Vertex* rcsc::DelaunayTriangulation::Triangle::vertex ( std::size_t  i  )  const [inline]

get the raw pointer to the vertex that this triangle has

引数:
i specifies array index
戻り値:
const pointer to the vertex

Edge* rcsc::DelaunayTriangulation::Triangle::edge ( std::size_t  i  )  const [inline]

get the raw pointer to the edge that this triangle has

引数:
i specifies array index
戻り値:
raw pointer to the edge

const Vector2D& rcsc::DelaunayTriangulation::Triangle::circumcenter (  )  const [inline]

get the circumcenter point of this triangle

戻り値:
coordinates of the circumcenter

const double& rcsc::DelaunayTriangulation::Triangle::circumradius (  )  const [inline]

get the radius of the circumcircle of this triangle

戻り値:
radius value

bool rcsc::DelaunayTriangulation::Triangle::contains ( const Vector2D pos  )  const [inline]

check if *circumcircle* contains the specified point

引数:
pos target point
戻り値:
true if target point is contained

bool rcsc::DelaunayTriangulation::Triangle::hasVertex ( const Vertex v  )  const [inline]

check if this triangle has the specified vertex.

引数:
v raw pointer to the vertex.
戻り値:
true if vertex is contained.

bool rcsc::DelaunayTriangulation::Triangle::hasEdge ( const EdgePtr  e  )  const [inline]

check if this triangle has the specified edge.

引数:
e raw pointer to the edge.
戻り値:
true if edge is contained.

const Vertex* rcsc::DelaunayTriangulation::Triangle::getVertexExclude ( const Vertex v1,
const Vertex v2 
) const [inline]

get the pointer to the vertex that is different from the specified vertices.

引数:
v1 first vertex
v2 second vertex
戻り値:
if exist, const pointer to the vertex. else NULL is returned.

const Vertex* rcsc::DelaunayTriangulation::Triangle::getVertexExclude ( const Edge edge  )  const [inline]

get the pointer to the vertex that does not belong to the specified edge.

引数:
edge target edge
戻り値:
if exist, const pointer to the vertex, else NULL is returned.

Edge* rcsc::DelaunayTriangulation::Triangle::getEdgeInclude ( const Vertex v1,
const Vertex v2 
) const [inline]

get the pointer to the edge that has the specified vertices.

引数:
v1 first vertex
v2 second vertex
戻り値:
if exist, raw pointer to the edge, else NULL is returned.

Edge* rcsc::DelaunayTriangulation::Triangle::getEdgeExclude ( const Vertex v  )  const [inline]

get the pointer to the edge that does not have the specified vertex.

引数:
v target vertex
戻り値:
if exist, raw pointer to the edge, else NULL is returned.


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:26 2008に生成されました。  doxygen 1.5.0