Class Point2D

Class Documentation

class Point2D

Class representing a point in 2D space.

Public Functions

Point2D(const Units::Length &x, const Units::Length &y)

Constructor

const Units::Length &getX() const

Getter for x

void setX(const Units::Length &x)

Setter for x

const Units::Length &getY() const

Getter for y

void setY(const Units::Length &y)

Setter for y

double findCurvature(Point2D a, Point2D b)

Calculates the curvature at this point given two other points

Parameters
  • a – point before

  • b – point after

Returns

curvature at this point

Units::Length distTo(Point2D a)

Returns the distance to another point