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_)


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

o Point3D scalar multiplication and divisions
These Point3D scalar operations (convenient but often illegal) using any type of scalar (int, float, or double) are not valid for points in general, unless they are 'affine' as coeffs of a sum in which all the coeffs add to 1, such as: the sum (a*P + b*Q) with (a+b == 1).

The programmer must enforce this (if they want to).

Friends:
Point3D operator*(int, Point3D)
Point3D operator*(double, Point3D)
Point3D operator*(Point3D, int)
Point3D operator*(Point3D, double)
Point3D operator/(Point3D, int)
Point3D operator/(Point3D, double)

o Point3D addition
Point3D addition (also convenient but often illegal) is not valid unless part of an affine sum.

The programmer must enforce this (if they want to).

Friends:
Point3D operator+(Point3D, Point3D)


Direct child classes:
Vector3D
Friends:
class Vector3D
Author:
Sebastien Marcel (marcel@idiap.ch) Dan Sunday (http://www.softsurfer.com/)
Version:
2.0 Fri 15 Jul 2005 11:35:19 AM CEST
Since:
1.0

Alphabetic index HTML hierarchy of classes or Java



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