Google

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 bool valid() const
[more]bool intersect(const BoundingBox& bb) const
return true if segment intersects BoundingBox
[more]bool intersect(const BoundingBox& bb, float& r1, float& r2) const
return true if segment intersects BoundingBox and return the intersection ratio's
[more]bool intersect(const BoundingSphere& bs) const
return true if segment intersects BoundingSphere
[more]bool intersect(const BoundingSphere& bs, float& r1, float& r2) const
return true if segment intersects BoundingSphere and return the intersection ratio's
[more]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 bool intersectAndClip(Vec3& s, Vec3& e, const BoundingBox& bb)


Inherited from Referenced:

Public Methods

ostatic void setDeleteHandler(DeleteHandler* handler)
ostatic DeleteHandler* getDeleteHandler()
oinline void ref() const
oinline void unref_nodelete() const
oinline int referenceCount() const
oinline void unref() 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 bool valid() const

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

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

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

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

obool 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 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++.