Creepy-simulation
 
Loading...
Searching...
No Matches
Point Struct Reference

Represents a 2D point with x and y coordinates. More...

#include <utils.hpp>

Public Member Functions

bool operator== (const Point &p2) const
 Equality operator for Point.
 

Public Attributes

double x
 
double y
 

Detailed Description

Represents a 2D point with x and y coordinates.

Member Function Documentation

◆ operator==()

bool Point::operator== ( const Point p2) const
inline

Equality operator for Point.

Parameters
p2Another point to compare with.
Returns
True if the points are approximately equal, false otherwise.

Member Data Documentation

◆ x

double Point::x

◆ y

double Point::y

The documentation for this struct was generated from the following file: