OpenStudio:utilities
Loading...
Searching...
No Matches
openstudio::Ray2d Class Reference

#include <RoofGeometry_Details.hpp>

Public Member Functions

boost::optional< Point3dcollide (const LineLinear2d &line, double epsilon) const
 
LineLinear2d getLinearForm () const
 
bool inCollinearRay (const Point3d &p) const
 
boost::optional< Point3dintersectRay2d (std::shared_ptr< Ray2d > other) const
 
bool isOnLeftSide (const Point3d &p, double epsilon) const
 
bool isOnRightSide (const Point3d &p, double epsilon) const
 
bool operator== (const Ray2d &other) const
 
 Ray2d ()
 
 Ray2d (const Point3d &t_point, const Vector3d &t_vector)
 

Static Public Member Functions

static double perpDot (const Vector3d &p1, const Vector3d &p2)
 perp dot product between two vectors
 

Public Attributes

Point3d point
 
Vector3d vector
 

Constructor & Destructor Documentation

◆ Ray2d() [1/2]

openstudio::Ray2d::Ray2d ( )
inline

◆ Ray2d() [2/2]

openstudio::Ray2d::Ray2d ( const Point3d & t_point,
const Vector3d & t_vector )
inline

Member Function Documentation

◆ collide()

boost::optional< Point3d > openstudio::Ray2d::collide ( const LineLinear2d & line,
double epsilon ) const
inline

◆ getLinearForm()

LineLinear2d openstudio::Ray2d::getLinearForm ( ) const
inline

◆ inCollinearRay()

bool openstudio::Ray2d::inCollinearRay ( const Point3d & p) const
inline

◆ intersectRay2d()

boost::optional< Point3d > openstudio::Ray2d::intersectRay2d ( std::shared_ptr< Ray2d > other) const
inline

◆ isOnLeftSide()

bool openstudio::Ray2d::isOnLeftSide ( const Point3d & p,
double epsilon ) const
inline

◆ isOnRightSide()

bool openstudio::Ray2d::isOnRightSide ( const Point3d & p,
double epsilon ) const
inline

◆ operator==()

bool openstudio::Ray2d::operator== ( const Ray2d & other) const
inline

◆ perpDot()

static double openstudio::Ray2d::perpDot ( const Vector3d & p1,
const Vector3d & p2 )
inlinestatic

perp dot product between two vectors

Member Data Documentation

◆ point

Point3d openstudio::Ray2d::point

◆ vector

Vector3d openstudio::Ray2d::vector