psim  1.0
Generalized 2D phonon transport using a Monte Carlo method
Geometry::Triangle Struct Reference

#include <geometry.h>

Collaboration diagram for Geometry::Triangle:
[legend]

Public Member Functions

 Triangle (Point pt1, Point pt2, Point pt3)
 
std::array< Line, 3 > lines () const noexcept
 
double area () const noexcept
 
bool intersects (const Triangle &other) const noexcept
 
bool contains (const Triangle &other) const noexcept
 
bool contains (const Point &p) const noexcept
 
bool isClockwise () const noexcept
 
Point getRandPoint (double r1, double r2) const noexcept
 
bool operator== (const Triangle &rhs) const
 

Public Attributes

Point p1
 
Point p2
 
Point p3
 

Constructor & Destructor Documentation

◆ Triangle()

Triangle::Triangle ( Point  pt1,
Point  pt2,
Point  pt3 
)

Member Function Documentation

◆ area()

double Triangle::area ( ) const
noexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ contains() [1/2]

bool Triangle::contains ( const Point p) const
noexcept

◆ contains() [2/2]

bool Triangle::contains ( const Triangle other) const
noexcept
Here is the caller graph for this function:

◆ getRandPoint()

Point Triangle::getRandPoint ( double  r1,
double  r2 
) const
noexcept
Here is the caller graph for this function:

◆ intersects()

bool Geometry::Triangle::intersects ( const Triangle other) const
noexcept
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isClockwise()

bool Geometry::Triangle::isClockwise ( ) const
noexcept
Here is the caller graph for this function:

◆ lines()

std::array< Line, 3 > Triangle::lines ( ) const
noexcept
Here is the caller graph for this function:

◆ operator==()

bool Triangle::operator== ( const Triangle rhs) const
Here is the call graph for this function:

Member Data Documentation

◆ p1

Point Geometry::Triangle::p1

◆ p2

Point Geometry::Triangle::p2

◆ p3

Point Geometry::Triangle::p3

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