ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Math::Segment2d Class Reference

#include <line2d.h>

Collaboration diagram for Math::Segment2d:

List of all members.

Public Member Functions

 Segment2d ()
 Segment2d (const Vector2d &begin, const Vector2d &end)
 Segment2d (const Segment2d &other)
Vector2d begin () const
Vector2d end () const
Vector2d middle () const
Line2d getLine () const
Line2d getPerpendicular (const Vector2d &point=Vector2d()) const
bool containsPoint (const Vector2d &point) const
bool intersectsLine (const Line2d &line, Vector2d *pos)
bool intersectsSegment (const Segment2d &line, Vector2d *pos)
Segment2doperator= (const Segment2d &other)

Private Attributes

Math::Vector2d _begin
Math::Vector2d _end

Detailed Description

Definition at line 51 of file line2d.h.


Constructor & Destructor Documentation

Math::Segment2d::Segment2d (  ) 

Definition at line 121 of file line2d.cpp.

Math::Segment2d::Segment2d ( const Vector2d begin,
const Vector2d end 
)

Definition at line 125 of file line2d.cpp.

Math::Segment2d::Segment2d ( const Segment2d other  ) 

Definition at line 130 of file line2d.cpp.


Member Function Documentation

Vector2d Math::Segment2d::begin (  )  const

Definition at line 134 of file line2d.cpp.

bool Math::Segment2d::containsPoint ( const Vector2d point  )  const

Definition at line 201 of file line2d.cpp.

Vector2d Math::Segment2d::end (  )  const

Definition at line 138 of file line2d.cpp.

Line2d Math::Segment2d::getLine (  )  const

Definition at line 146 of file line2d.cpp.

Line2d Math::Segment2d::getPerpendicular ( const Vector2d point = Vector2d()  )  const

Definition at line 154 of file line2d.cpp.

bool Math::Segment2d::intersectsLine ( const Line2d line,
Vector2d pos 
)

Definition at line 190 of file line2d.cpp.

bool Math::Segment2d::intersectsSegment ( const Segment2d line,
Vector2d pos 
)

Definition at line 158 of file line2d.cpp.

Vector2d Math::Segment2d::middle (  )  const

Definition at line 142 of file line2d.cpp.

Segment2d & Math::Segment2d::operator= ( const Segment2d other  ) 

Definition at line 209 of file line2d.cpp.


Member Data Documentation

Definition at line 71 of file line2d.h.

Definition at line 71 of file line2d.h.


The documentation for this class was generated from the following files:


Generated on Sat Jul 13 2019 05:04:33 for ResidualVM by doxygen 1.7.1
curved edge   curved edge