Vector Struct Reference

#include <geometry.h>

Collaboration diagram for Vector:

Collaboration graph
[legend]

List of all members.


Detailed Description

Class representing vector in space made from point on the begin and point on the end

Definition at line 154 of file geometry.h.


Public Member Functions

 Vector (const struct Point &s, const struct Point &e)
 Vector (const struct Point &s, double angle)
 Vector (const struct Position &p)
 Vector (const Vector &rhs)
Vectoroperator= (const Vector &rhs)
bool Intersect (const Vector &, struct Point &) const
bool IsVertical () const
bool IsHorizontal () const
double Y0 () const

Public Attributes

struct Point begin
double direction

Constructor & Destructor Documentation

Vector ( const struct Point s,
const struct Point e 
) [inline]

Definition at line 156 of file geometry.h.

References direction, Point::x, and Point::y.

Vector ( const struct Point s,
double  angle 
)

Vector ( const struct Position p  ) 

Vector ( const Vector rhs  )  [inline]

Definition at line 165 of file geometry.h.


Member Function Documentation

Vector& operator= ( const Vector rhs  )  [inline]

Definition at line 169 of file geometry.h.

References begin, and direction.

bool Intersect ( const Vector ,
struct Point  
) const

Computes intersect point

bool IsVertical (  )  const

bool IsHorizontal (  )  const

double Y0 (  )  const


Member Data Documentation

struct Point begin [read]

Definition at line 186 of file geometry.h.

Referenced by operator=().

double direction

Definition at line 187 of file geometry.h.

Referenced by operator=(), and Vector().


The documentation for this struct was generated from the following file:
Generated on Fri Jul 10 22:42:18 2009 for rob08 by  doxygen 1.5.4