OpenStudio:utilities
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
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 More...
 

Public Attributes

Point3d point
 
Vector3d vector
 

Friends

std::ostream & operator<< (std::ostream &os, const Ray2d &r)
 

Constructor & Destructor Documentation

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

Member Function Documentation

boost::optional<Point3d> openstudio::Ray2d::collide ( const LineLinear2d line,
double  epsilon 
) const
inline
LineLinear2d openstudio::Ray2d::getLinearForm ( ) const
inline
bool openstudio::Ray2d::inCollinearRay ( const Point3d p) const
inline
boost::optional<Point3d> openstudio::Ray2d::intersectRay2d ( std::shared_ptr< Ray2d other) const
inline
bool openstudio::Ray2d::isOnLeftSide ( const Point3d p,
double  epsilon 
) const
inline
bool openstudio::Ray2d::isOnRightSide ( const Point3d p,
double  epsilon 
) const
inline
bool openstudio::Ray2d::operator== ( const Ray2d other) const
inline
static double openstudio::Ray2d::perpDot ( const Vector3d p1,
const Vector3d p2 
)
inlinestatic

perp dot product between two vectors

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Ray2d r 
)
friend

Member Data Documentation

Point3d openstudio::Ray2d::point
Vector3d openstudio::Ray2d::vector