class Triangle2D

This class is designed to handle a triangle in 2D

Inheritance:


Public Fields

[more] 2D points defining the rectangle

Public Methods

[more] constructors
[more]virtual ~Triangle2D()
destructor
[more]virtual void saveXFile(XFile* file)
save the triangle
[more]virtual void loadXFile(XFile* file)
load a triangle
[more]virtual const char* sprint()
return the triangle into a string
[more]virtual void draw(Image* image_, Color color_)
draw the triangle in an image
[more]double angle()
compute the angle (in radian) of 2 lines (P0,P1) and (P0,P2)
[more]int ccw()
test the orientation of a triangle (angle direction of vectors (P0,P1) and (P0,P2))


Inherited from geomObject:

Public Fields

obool verbose

Public Methods

ovirtual void xdraw(Display* pDisplay_, Pixmap pixmap_, GC gc_, unsigned long color_)


Documentation

This class is designed to handle a triangle in 2D

o 2D points defining the rectangle

oPoint2D P0

oPoint2D P1

oPoint2D P2

o constructors

o Triangle2D()

o Triangle2D(Point2D P0_, Point2D P1_, Point2D P2_)

ovirtual ~Triangle2D()
destructor

ovirtual void saveXFile(XFile* file)
save the triangle

ovirtual void loadXFile(XFile* file)
load a triangle

ovirtual const char* sprint()
return the triangle into a string

ovirtual void draw(Image* image_, Color color_)
draw the triangle in an image

odouble angle()
compute the angle (in radian) of 2 lines (P0,P1) and (P0,P2)

oint ccw()
test the orientation of a triangle (angle direction of vectors (P0,P1) and (P0,P2))


This class has no child classes.
Author:
Sebastien Marcel (marcel@idiap.ch)
Version:
2.0 Fri 15 Jul 2005 11:35:20 AM CEST
Since:
1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.