PolyFEM
Loading...
Searching...
No Matches
polyfem::mesh::PolygonMesh::Point Struct Reference

3D point. More...

#include <PolygonMesh.hpp>

Public Member Functions

 Point ()=default
 
 Point (const double x, const double y, const double z)
 
double & operator[] (const int i)
 
double operator[] (const int i) const
 
Point & operator+= (const Point &v)
 
Point operator+ (const Point &v) const
 
Point operator- (const Point &v) const
 
Point operator/ (const double s) const
 

Public Attributes

std::array< double, 3 > coords = {{0, 0, 0}}
 

Friends

Point operator* (const double s, const Point &v)
 

Detailed Description

3D point.

Each operator computes every coordinate with a single floating-point operation, like geogram's vec3.

Definition at line 24 of file PolygonMesh.hpp.

Constructor & Destructor Documentation

◆ Point() [1/2]

polyfem::mesh::PolygonMesh::Point::Point ( )
default

◆ Point() [2/2]

polyfem::mesh::PolygonMesh::Point::Point ( const double  x,
const double  y,
const double  z 
)
inline

Definition at line 29 of file PolygonMesh.hpp.

References x, y, and z.

Member Function Documentation

◆ operator+()

Point polyfem::mesh::PolygonMesh::Point::operator+ ( const Point &  v) const
inline

Definition at line 41 of file PolygonMesh.hpp.

◆ operator+=()

Point & polyfem::mesh::PolygonMesh::Point::operator+= ( const Point &  v)
inline

Definition at line 34 of file PolygonMesh.hpp.

◆ operator-()

Point polyfem::mesh::PolygonMesh::Point::operator- ( const Point &  v) const
inline

Definition at line 42 of file PolygonMesh.hpp.

◆ operator/()

Point polyfem::mesh::PolygonMesh::Point::operator/ ( const double  s) const
inline

Definition at line 43 of file PolygonMesh.hpp.

◆ operator[]() [1/2]

double & polyfem::mesh::PolygonMesh::Point::operator[] ( const int  i)
inline

Definition at line 31 of file PolygonMesh.hpp.

◆ operator[]() [2/2]

double polyfem::mesh::PolygonMesh::Point::operator[] ( const int  i) const
inline

Definition at line 32 of file PolygonMesh.hpp.

Friends And Related Symbol Documentation

◆ operator*

Point operator* ( const double  s,
const Point &  v 
)
friend

Definition at line 44 of file PolygonMesh.hpp.

Member Data Documentation

◆ coords

std::array<double, 3> polyfem::mesh::PolygonMesh::Point::coords = {{0, 0, 0}}

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