Diplo
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions | Public Attributes | List of all members
mental_maps.geometry.Smart.SmartLineSegment Class Reference

Public Member Functions

 SmartLineSegment (Point P1, Point P2)
 Vytvori objekt LINE SEGMENT V konstrukture sa vytvori aj rovnica usecky - resp. priamky More...
 
Point getPointOutOfLine (Graphics g, int pointIndex, int distance)
 Na vstupe je index jedneho z bodu usecky a vzdialenost. Vrati bod, ktori More...
 
Boolean isPointOnLine (Graphics g, Point P)
 Rozhodne ci bod lezi na usecke TODO : treba overit ci sedi aj rovnici priamke More...
 
void _drawLine (Graphics g)
 Vykresli kusok usecky More...
 

Public Attributes

Point p1
 
Point p2
 
double a
 
double b
 

Constructor & Destructor Documentation

mental_maps.geometry.Smart.SmartLineSegment.SmartLineSegment ( Point  P1,
Point  P2 
)

Vytvori objekt LINE SEGMENT V konstrukture sa vytvori aj rovnica usecky - resp. priamky

Parameters
P1
P2

Member Function Documentation

void mental_maps.geometry.Smart.SmartLineSegment._drawLine ( Graphics  g)

Vykresli kusok usecky

Parameters
g
Point mental_maps.geometry.Smart.SmartLineSegment.getPointOutOfLine ( Graphics  g,
int  pointIndex,
int  distance 
)

Na vstupe je index jedneho z bodu usecky a vzdialenost. Vrati bod, ktori

  • je od bodu (urceneho indexom) vzdialeny o urcenu vzdialenost
  • lezi na priamke, na ktorej aj usecka
  • vrateni bod na usecke nelezi
Parameters
g
pointIndex
distance
Returns
Boolean mental_maps.geometry.Smart.SmartLineSegment.isPointOnLine ( Graphics  g,
Point  P 
)

Rozhodne ci bod lezi na usecke TODO : treba overit ci sedi aj rovnici priamke

Parameters
g
P
Returns

Member Data Documentation

double mental_maps.geometry.Smart.SmartLineSegment.a
double mental_maps.geometry.Smart.SmartLineSegment.b
Point mental_maps.geometry.Smart.SmartLineSegment.p1
Point mental_maps.geometry.Smart.SmartLineSegment.p2

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