class SG_EXPORT osg::LineSegment

LineSegment class for representing a line segment

Inheritance:


Public Methods

[more] LineSegment()
[more] LineSegment(const LineSegment& seg)
[more] LineSegment(const Vec3& s, const Vec3& e)
[more]LineSegment& operator = (const LineSegment& seg)
[more]inline void set(const Vec3& s, const Vec3& e)
[more]inline Vec3& start()
[more]inline const Vec3& start() const
[more]inline Vec3& end()
[more]inline const Vec3& end() const
[more]inline const bool valid() const
[more]const bool intersect(const BoundingBox& bb) const
return true if segment intersects BoundingBox
[more]const bool intersect(const BoundingBox& bb, float& r1, float& r2) const
return true if segment intersects BoundingBox and return the intersection ratio's
[more]const bool intersect(const BoundingSphere& bs) const
return true if segment intersects BoundingSphere
[more]const bool intersect(const BoundingSphere& bs, float& r1, float& r2) const
return true if segment intersects BoundingSphere and return the intersection ratio's
[more]const bool intersect(const Vec3& v1, const Vec3& v2, const Vec3& v3, float& r)
return true if segment intersects triangle and set ratio long segment.
[more]inline void mult(const LineSegment& seg, const Matrix& m)
post multiply a segment by matrix
[more]inline void mult(const Matrix& m, const LineSegment& seg)
pre multiply a segment by matrix

Protected Fields

[more]Vec3 _s
[more]Vec3 _e

Protected Methods

[more]virtual ~LineSegment()
[more]static const bool intersectAndClip(Vec3& s, Vec3& e, const BoundingBox& bb)


Inherited from Referenced:

Public Methods

oinline void ref() const
oinline void unref() const
oinline const int referenceCount() const

Protected Fields

omutable int _refCount


Documentation

LineSegment class for representing a line segment
o LineSegment()

o LineSegment(const LineSegment& seg)

o LineSegment(const Vec3& s, const Vec3& e)

oLineSegment& operator = (const LineSegment& seg)

oinline void set(const Vec3& s, const Vec3& e)

oinline Vec3& start()

oinline const Vec3& start() const

oinline Vec3& end()

oinline const Vec3& end() const

oinline const bool valid() const

oconst bool intersect(const BoundingBox& bb) const
return true if segment intersects BoundingBox

oconst bool intersect(const BoundingBox& bb, float& r1, float& r2) const
return true if segment intersects BoundingBox and return the intersection ratio's

oconst bool intersect(const BoundingSphere& bs) const
return true if segment intersects BoundingSphere

oconst bool intersect(const BoundingSphere& bs, float& r1, float& r2) const
return true if segment intersects BoundingSphere and return the intersection ratio's

oconst bool intersect(const Vec3& v1, const Vec3& v2, const Vec3& v3, float& r)
return true if segment intersects triangle and set ratio long segment.

oinline void mult(const LineSegment& seg, const Matrix& m)
post multiply a segment by matrix

oinline void mult(const Matrix& m, const LineSegment& seg)
pre multiply a segment by matrix

ovirtual ~LineSegment()

ostatic const bool intersectAndClip(Vec3& s, Vec3& e, const BoundingBox& bb)

oVec3 _s

oVec3 _e


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.