class Point3D

This class is designed to handle a point in 3D

Inheritance:


Public Fields

[more]double z
z coordinate

Public Methods

[more] Lots of Constructors
[more]virtual ~Point3D()
destructor
[more] reset functions
[more]virtual void saveXFile(XFile* file)
save the 3D point into a file
[more]virtual void loadXFile(XFile* file)
load a 3D point from a file
[more]virtual const char* sprint()
return the 3D point into a string
[more]virtual void draw(Image* image, Color color)
draw a 3D point onto an image
[more]int operator==(Point3D)
equality
[more]int operator!=(Point3D)
difference
[more] Point3D and Vector3D operations


Inherited from Point2D:

Public Fields

odouble x
odouble y

Public Methods

Point2D and Vector2D operations

collinearity conditions

odouble isLeft(Point2D, Point2D)
odouble Area(Point2D, Point2D)
osPoint2D get()
ovoid fixI()


Inherited from geomObject:

Public Fields

obool verbose

Public Methods

ovirtual void xdraw(Display* pDisplay_, Pixmap pixmap_, GC gc_, unsigned long color_, int line_width_ = 1, int line_style_ = LineSolid, bool fill_ = false, int fill_style_ = FillSolid)


Documentation

This class is designed to handle a point in 3D

odouble z
z coordinate

o Lots of Constructors

o Point3D()

o Point3D(int a)

o Point3D(double a)

o Point3D(int a, int b)

o Point3D(double a, double b)

o Point3D(int a, int b, int c)

o Point3D(double a, double b, double c)

ovirtual ~Point3D()
destructor

o reset functions

ovoid reset(int a, int b, int c)

ovoid reset(double a, double b, double c)

ovirtual void saveXFile(XFile* file)
save the 3D point into a file

ovirtual void loadXFile(XFile* file)
load a 3D point from a file

ovirtual const char* sprint()
return the 3D point into a string

ovirtual void draw(Image* image, Color color)
draw a 3D point onto an image

oint operator==(Point3D)
equality

oint operator!=(Point3D)
difference

o Point3D and Vector3D operations
These operations are not always valid.

oVector3D operator-(Point3D)
Vector difference

oPoint3D operator+(Vector3D)
Vector translate +

oPoint3D operator-(Vector3D)
Vector translate -

oPoint3D& operator+=(Vector3D)
Vector inc translate

oPoint3D& operator-=(Vector3D)
Vector dec translate


Direct child classes:
Vector3D
Author:
Sebastien Marcel (marcel@idiap.ch) Dan Sunday (http://www.softsurfer.com/)
Version:
2.1 Wed 28 Jun 2006 05:19:32 PM CEST
Since:
1.0

Alphabetic index HTML hierarchy of classes or Java



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