Point

class ooc::Point

A generic point class for storing coordinate information.

Methods

ooc::Point::Point()

Constructs a point at the coordinate system origin

ooc::Point::Point(float in_x, float in_y, float in_z)

Constructs a point

Parameters

x: x-coordinate of point

y: y-coordinate of point

z: z-coordinate of point

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

const

Adds this point to parameter other

Parameters

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

const

Subtracts parameter point from this point

Parameters

other: The point to subtract from this point
Point ooc::Point::operator*(float scale) const

const

Multiplies scalar with this point

Parameters

scale: The scalar to multiply with this point
Point ooc::Point::operator/(float scale) const

const

Divides scalar with this point

Parameters

scale: The scalar to divide with this point

Variables

float ooc::Point::x
float

x component of point

float ooc::Point::y
float

y component of point

float ooc::Point::z
float

z component of point