Point

Fields

float

x

float

y

float

z

Functions

Point

Point

Point

operator+

Point

operator-

Point

operator*

Point

operator/

Detailed Description

class Point

A generic point class for storing coordinate information.

Public Functions

inline Point()

Constructs a point at the coordinate system origin

inline Point(float x, float y, float z)

Constructs a point

Parameters
  • x – x-coordinate of point

  • y – y-coordinate of point

  • z – z-coordinate of point

inline Point operator+(Point const &other) const

Adds this point to parameter other

Parameters

other – The point to add this point to

inline Point operator-(Point const &other) const

Subtracts parameter point from this point

Parameters

other – The point to subtract from this point

inline Point operator*(float scale) const

Multiplies scalar with this point

Parameters

scale – The scalar to multiply with this point

inline Point operator/(float scale) const

Divides scalar with this point

Parameters

scale – The scalar to divide with this point

Public Members

float x

x component of point

float y

y component of point

float z

z component of point