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

Math::Line2d Class Reference

#include <line2d.h>

List of all members.

Public Member Functions

 Line2d ()
 Line2d (const Vector2d &direction, const Vector2d &point)
Line2d getPerpendicular (const Vector2d &point=Vector2d()) const
Vector2d getDirection () const
float getDistanceTo (const Vector2d &point, Vector2d *intersection) const
bool intersectsLine (const Line2d &line, Vector2d *pos) const
bool containsPoint (const Vector2d &point) const
float getYatX (float x) const

Private Attributes

float _a
float _b
float _c

Friends

Common::Debugoperator<< (Common::Debug &dbg, const Line2d &line)

Detailed Description

Definition at line 30 of file line2d.h.


Constructor & Destructor Documentation

Math::Line2d::Line2d (  ) 

Definition at line 28 of file line2d.cpp.

Math::Line2d::Line2d ( const Vector2d direction,
const Vector2d point 
)

Definition at line 33 of file line2d.cpp.


Member Function Documentation

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

Definition at line 99 of file line2d.cpp.

Vector2d Math::Line2d::getDirection (  )  const

Definition at line 56 of file line2d.cpp.

float Math::Line2d::getDistanceTo ( const Vector2d point,
Vector2d intersection 
) const

Definition at line 60 of file line2d.cpp.

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

Definition at line 50 of file line2d.cpp.

float Math::Line2d::getYatX ( float  x  )  const

Definition at line 104 of file line2d.cpp.

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

Definition at line 69 of file line2d.cpp.


Friends And Related Function Documentation

Common::Debug& operator<< ( Common::Debug dbg,
const Line2d line 
) [friend]

Definition at line 108 of file line2d.cpp.


Member Data Documentation

float Math::Line2d::_a [private]

Definition at line 47 of file line2d.h.

float Math::Line2d::_b [private]

Definition at line 47 of file line2d.h.

float Math::Line2d::_c [private]

Definition at line 47 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