ESyS-Particle  2.3.4
Triangle2D Class Reference

#include <Triangle2d.h>

Collaboration diagram for Triangle2D:

Public Member Functions

 Triangle2D (const Vec3 &, const Vec3 &, const Vec3 &, int)
 
int Id () const
 
bool isIn (const Vec3 &) const
 

Private Attributes

Vec3 m_p0
 
Vec3 m_p1
 
Vec3 m_p2
 
int m_id
 

Constructor & Destructor Documentation

◆ Triangle2D()

Triangle2D::Triangle2D ( const Vec3 p0,
const Vec3 p1,
const Vec3 p2,
int  id 
)

Member Function Documentation

◆ Id()

int Triangle2D::Id ( ) const
inline

References m_id.

◆ isIn()

bool Triangle2D::isIn ( const Vec3 P) const

References m_p0, m_p1, m_p2, Vec3::X(), and Vec3::Y().

Referenced by main(), and Graph::printCrossSection().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_id

int Triangle2D::m_id
private

Referenced by Id().

◆ m_p0

Vec3 Triangle2D::m_p0
private

Referenced by isIn().

◆ m_p1

Vec3 Triangle2D::m_p1
private

Referenced by isIn().

◆ m_p2

Vec3 Triangle2D::m_p2
private

Referenced by isIn().


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