DPoint

class ooc::DPoint

A generic point class for storing coordinate information.

Methods

ooc::DPoint::DPoint()

Constructs a point at the coordinate system origin

ooc::DPoint::DPoint(double in_x, double in_y, double in_z)

Constructs a point

Parameters

x: x-coordinate of point

y: y-coordinate of point

z: z-coordinate of point

DPoint ooc::DPoint::operator+(DPoint const &other) const

const

Adds this point to parameter other

Parameters

other: The point to add this point to
DPoint ooc::DPoint::operator-(DPoint const &other) const

const

Subtracts parameter point from this point

Parameters

other: The point to subtract from this point
DPoint ooc::DPoint::operator*(double scale) const

const

Multiplies scalar with this point

Parameters

scale: The scalar to multiply with this point
DPoint ooc::DPoint::operator/(double scale) const

const

Divides scalar with this point

Parameters

scale: The scalar to divide with this point

Variables

double ooc::DPoint::x
double

x component of point

double ooc::DPoint::y
double

y component of point

double ooc::DPoint::z
double

z component of point