SFCGAL  2.3.0
Public Member Functions | List of all members
SFCGAL::GetXVisitor Class Reference

Visitor to get X coordinate value. More...

Inheritance diagram for SFCGAL::GetXVisitor:

Public Member Functions

auto operator() (const Coordinate::Empty &) const -> Kernel::FT
 Handle empty coordinates. More...
 
auto operator() (const Kernel::Point_2 &storage) const -> Kernel::FT
 Get X coordinate from 2D point. More...
 
auto operator() (const Kernel::Point_3 &storage) const -> Kernel::FT
 Get X coordinate from 3D point. More...
 

Detailed Description

Visitor to get X coordinate value.

Member Function Documentation

auto SFCGAL::GetXVisitor::operator() ( const Coordinate::Empty &  ) const -> Kernel::FT
inline

Handle empty coordinates.

Exceptions
Exceptionwhen trying to get X from empty coordinate
Returns
Never returns (throws exception)
auto SFCGAL::GetXVisitor::operator() ( const Kernel::Point_2 &  storage) const -> Kernel::FT
inline

Get X coordinate from 2D point.

Parameters
storageThe 2D point
Returns
X coordinate value
auto SFCGAL::GetXVisitor::operator() ( const Kernel::Point_3 &  storage) const -> Kernel::FT
inline

Get X coordinate from 3D point.

Parameters
storageThe 3D point
Returns
X coordinate value