izzi
SVG SUBSET C++ API
Loading...
Searching...
No Matches
Point Struct Reference

#include <izzi-points.h>

Public Member Functions

 Point (double x=0, double y=0, const std::string s="")
 
double distance (const Point &other) const
 
bool operator== (const Point &other) const
 
Point operator+ (const Point &other) const
 
Point operator/ (double scalar) const
 

Public Attributes

double x
 
double y
 
std::string name
 

Detailed Description

Definition at line 173 of file izzi-points.h.

Constructor & Destructor Documentation

◆ Point()

Point::Point ( double x = 0,
double y = 0,
const std::string s = "" )
inline

Definition at line 178 of file izzi-points.h.

Member Function Documentation

◆ distance()

double Point::distance ( const Point & other) const
inline

Definition at line 182 of file izzi-points.h.

+ Here is the call graph for this function:

◆ operator==()

bool Point::operator== ( const Point & other) const
inline

Definition at line 186 of file izzi-points.h.

+ Here is the call graph for this function:

◆ operator+()

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

Definition at line 190 of file izzi-points.h.

+ Here is the call graph for this function:

◆ operator/()

Point Point::operator/ ( double scalar) const
inline

Definition at line 194 of file izzi-points.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ x

double Point::x

Definition at line 175 of file izzi-points.h.

◆ y

double Point::y

Definition at line 175 of file izzi-points.h.

◆ name

std::string Point::name

Definition at line 176 of file izzi-points.h.


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