Point3D scalar multiplication and divisions


o operator*
Point3D operator*(int, Point3D)
o operator*
Point3D operator*(double, Point3D)
o operator*
Point3D operator*(Point3D, int)
o operator*
Point3D operator*(Point3D, double)
o operator/
Point3D operator/(Point3D, int)
o operator/
Point3D operator/(Point3D, double)
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).

Author:
Dan Sunday (http://www.softsurfer.com/)
Version:
2.1 Wed 28 Jun 2006 05:19:32 PM CEST
Since:
1.0

Alphabetic index Hierarchy of classes



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