#include <climits>
#include "point2.H"
#include "vec2.H"
Include dependency graph for point2.C:
Go to the source code of this file.
Namespaces | |
namespace | mlib |
Functions | |
template<class P, class V> | |
MLIB_INLINE double | mlib::ray_pt_dist2 (const P &p, const V &v, const P &q) |
template<class P, class V> | |
P | mlib::intersect2d (const Point2< P, V > &p1, const Vec2< V > &v1, const Point2< P, V > &p2, const Vec2< V > &v2, bool &succeeded) |
Intersection of two infinite 2d lines (p1,v1) and (p2,v2). | |
template<class P, class V> | |
MLIB_INLINE bool | mlib::ray_seg_intersect (const Point2< P, V > &rayp, const Vec2< V > &rayv, const Point2< P, V > &startpt, const Point2< P, V > &endpt, Point2< P, V > &inter) |
intersect ray starting at rayp w/ vector rayv with line segment between startpt and endpt . inter is set to the intersection point. |
Definition in file point2.C.