NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
Point Struct Reference

This represents a point in 2D space. More...

#include <structures.hpp>

Collaboration diagram for Point:

Public Member Functions

 Point (double _x, double _y)
 
void rotate90 (int n, const Point &origin=Point(0, 0))
 
void rotate (double dAlpha, const Point &origin=Point(0, 0))
 
Point operator+ (const Point &a) const
 
Point operator- (const Point &a) const
 
Point operator* (double a) const
 
Point operator/ (double a) const
 

Public Attributes

double x
 
double y
 

Detailed Description

This represents a point in 2D space.

Definition at line 2380 of file structures.hpp.

Constructor & Destructor Documentation

◆ Point()

Point::Point ( double  _x,
double  _y 
)
inline

Definition at line 2385 of file structures.hpp.

Referenced by operator*(), operator+(), operator-(), and operator/().

Member Function Documentation

◆ operator*()

Point Point::operator* ( double  a) const
inline

Definition at line 2450 of file structures.hpp.

References Point(), x, and y.

Here is the call graph for this function:

◆ operator+()

Point Point::operator+ ( const Point a) const
inline

Definition at line 2440 of file structures.hpp.

References Point(), x, and y.

Here is the call graph for this function:

◆ operator-()

Point Point::operator- ( const Point a) const
inline

Definition at line 2445 of file structures.hpp.

References Point(), x, and y.

Here is the call graph for this function:

◆ operator/()

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

Definition at line 2455 of file structures.hpp.

References Point(), x, and y.

Here is the call graph for this function:

◆ rotate()

void Point::rotate ( double  dAlpha,
const Point origin = Point(0, 0) 
)
inline

Definition at line 2424 of file structures.hpp.

References date::abs(), mu::rint(), rotate90(), x, and y.

Referenced by rotateTable().

Here is the call graph for this function:

◆ rotate90()

void Point::rotate90 ( int  n,
const Point origin = Point(0, 0) 
)
inline

Definition at line 2387 of file structures.hpp.

References x, and y.

Referenced by rotate().

Member Data Documentation

◆ x

double Point::x

Definition at line 2382 of file structures.hpp.

Referenced by operator*(), operator+(), operator-(), operator/(), rotate(), rotate90(), and rotateTable().

◆ y

double Point::y

Definition at line 2383 of file structures.hpp.

Referenced by operator*(), operator+(), operator-(), operator/(), rotate(), rotate90(), and rotateTable().


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