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

#include <geometry.h>

Collaboration diagram for Geometry::Line:
[legend]

Public Member Functions

 Line (Point pt1, Point pt2)
 
PointPair getPoints () const noexcept
 
bool overlaps (const Line &other) const noexcept
 
bool contains (const Line &other) const noexcept
 
bool contains (const Point &point) const noexcept
 
bool intersects (const Line &other) const noexcept
 
Vector2D normal (int norm_sign=1) const noexcept
 
std::optional< PointgetIntersection (const Line &other) const noexcept
 
Point getRandPoint (double r1) const noexcept
 
bool operator== (const Line &rhs) const
 
bool operator> (const Line &rhs) const
 

Public Attributes

Point p1
 
Point p2
 
double slope
 
double intercept
 
PointPair boundingBox
 
double length
 

Constructor & Destructor Documentation

◆ Line()

Line::Line ( Point  pt1,
Point  pt2 
)

Member Function Documentation

◆ contains() [1/2]

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

◆ contains() [2/2]

bool Line::contains ( const Point point) const
noexcept

◆ getIntersection()

std::optional< Point > Line::getIntersection ( const Line other) const
noexcept
Here is the caller graph for this function:

◆ getPoints()

PointPair Geometry::Line::getPoints ( ) const
inlinenoexcept

◆ getRandPoint()

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

◆ intersects()

bool Line::intersects ( const Line other) const
noexcept

◆ normal()

Vector2D Line::normal ( int  norm_sign = 1) const
noexcept

◆ operator==()

bool Geometry::Line::operator== ( const Line rhs) const
inline

◆ operator>()

bool Geometry::Line::operator> ( const Line rhs) const
inline

◆ overlaps()

bool Line::overlaps ( const Line other) const
noexcept

Member Data Documentation

◆ boundingBox

PointPair Geometry::Line::boundingBox

◆ intercept

double Geometry::Line::intercept

◆ length

double Geometry::Line::length

◆ p1

Point Geometry::Line::p1

◆ p2

Point Geometry::Line::p2

◆ slope

double Geometry::Line::slope

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