14#ifndef OSG_LINESEGMENT
15#define OSG_LINESEGMENT 1
45 inline bool valid()
const {
return _s.valid() && _e.valid() && _s!=_e; }
Definition BoundingBox:34
Definition BoundingSphere:35
Definition LineSegment:25
vec_type::value_type value_type
Definition LineSegment:29
bool intersect(const Vec3d &v1, const Vec3d &v2, const Vec3d &v3, double &ratioFromStartToEnd)
bool intersectAndComputeRatios(const BoundingBox &bb, float &ratioFromStartToEnd1, float &ratioFromStartToEnd2) const
const vec_type & start() const
Definition LineSegment:40
const vec_type & end() const
Definition LineSegment:43
LineSegment()
Definition LineSegment:31
vec_type _e
Definition LineSegment:99
void mult(const LineSegment &seg, const Matrix &m)
Definition LineSegment:87
void mult(const Matrix &m, const LineSegment &seg)
Definition LineSegment:90
bool intersect(const Vec3f &v1, const Vec3f &v2, const Vec3f &v3, float &ratioFromStartToEnd)
LineSegment(const LineSegment &seg)
Definition LineSegment:32
LineSegment(const vec_type &s, const vec_type &e)
Definition LineSegment:33
bool intersectAndComputeRatios(const BoundingBox &bb, double &ratioFromStartToEnd1, double &ratioFromStartToEnd2) const
vec_type & end()
Definition LineSegment:42
static bool intersectAndClip(vec_type &s, vec_type &e, const BoundingBox &bb)
bool valid() const
Definition LineSegment:45
bool intersect(const BoundingSphere &bs) const
bool intersect(const BoundingBox &bb) const
Vec3d vec_type
Definition LineSegment:28
vec_type _s
Definition LineSegment:98
vec_type & start()
Definition LineSegment:39
void set(const vec_type &s, const vec_type &e)
Definition LineSegment:37
bool intersectAndComputeRatios(const BoundingSphere &bs, double &ratioFromStartToEnd1, double &ratioFromStartToEnd2) const
bool intersectAndComputeRatios(const BoundingSphere &bs, float &ratioFromStartToEnd1, float &ratioFromStartToEnd2) const
double value_type
Definition Vec3d:34
author: Julien Valentin 2017 (mp3butcher@hotmail.com)
Definition AlphaFunc:19
#define OSG_EXPORT
Definition osg/Export:39