SAGA API v9.10
Loading...
Searching...
No Matches
CSG_Point Class Reference

#include <geo_tools.h>

Inheritance diagram for CSG_Point:
SSG_Point

Public Member Functions

 CSG_Point (void)
 CSG_Point (const CSG_Point &Point)
 CSG_Point (const TSG_Point &Point)
 CSG_Point (double x, double y)
virtual ~CSG_Point (void)
virtual TSG_Point_Type Get_Type (void) const
virtual bool operator== (const CSG_Point &Point) const
virtual bool operator!= (const CSG_Point &Point) const
virtual CSG_Point operator+ (const CSG_Point &Point) const
virtual CSG_Point operator- (const CSG_Point &Point) const
virtual CSG_Pointoperator= (const CSG_Point &Point)
virtual CSG_Pointoperator+= (const CSG_Point &Point)
virtual CSG_Pointoperator-= (const CSG_Point &Point)
virtual CSG_Pointoperator*= (const CSG_Point &Point)
CSG_Point operator* (double Value) const
CSG_Point operator/ (double Value) const
virtual CSG_Pointoperator*= (double Value)
virtual CSG_Pointoperator/= (double Value)
virtual void Assign (double x, double y)
virtual void Assign (const CSG_Point &Point)
virtual void Add (const CSG_Point &Point)
virtual void Subtract (const CSG_Point &Point)
virtual void Multiply (const CSG_Point &Point)
virtual void Multiply (double Value)
virtual void Divide (double Value)
virtual double Get_Length (void) const
virtual double Get_Distance (const CSG_Point &Point) const
virtual bool is_Equal (const CSG_Point &Point, double epsilon=0.) const
virtual bool is_Equal (double _x, double _y, double epsilon=0.) const

Additional Inherited Members

Public Attributes inherited from SSG_Point
double x
double y

Detailed Description

Definition at line 134 of file geo_tools.h.

Constructor & Destructor Documentation

◆ CSG_Point() [1/4]

◆ CSG_Point() [2/4]

CSG_Point::CSG_Point ( const CSG_Point & Point)

Definition at line 70 of file geo_classes.cpp.

References Assign(), CSG_Point(), SSG_Point::x, and SSG_Point::y.

◆ CSG_Point() [3/4]

CSG_Point::CSG_Point ( const TSG_Point & Point)

Definition at line 75 of file geo_classes.cpp.

References Assign(), SSG_Point::x, and SSG_Point::y.

◆ CSG_Point() [4/4]

CSG_Point::CSG_Point ( double x,
double y )

Definition at line 80 of file geo_classes.cpp.

References Assign().

◆ ~CSG_Point()

virtual CSG_Point::~CSG_Point ( void )
inlinevirtual

Definition at line 142 of file geo_tools.h.

Member Function Documentation

◆ Add()

void CSG_Point::Add ( const CSG_Point & Point)
virtual

Definition at line 99 of file geo_classes.cpp.

References CSG_Point(), SSG_Point::x, and SSG_Point::y.

Referenced by operator+=().

◆ Assign() [1/2]

void CSG_Point::Assign ( const CSG_Point & Point)
virtual

Definition at line 92 of file geo_classes.cpp.

References CSG_Point(), SSG_Point::x, and SSG_Point::y.

◆ Assign() [2/2]

void CSG_Point::Assign ( double x,
double y )
virtual

◆ Divide()

void CSG_Point::Divide ( double Value)
virtual

Definition at line 123 of file geo_classes.cpp.

References SSG_Point::x, and SSG_Point::y.

Referenced by operator/=().

◆ Get_Distance()

virtual double CSG_Point::Get_Distance ( const CSG_Point & Point) const
inlinevirtual

Definition at line 173 of file geo_tools.h.

References CSG_Point(), and Get_Length().

◆ Get_Length()

double CSG_Point::Get_Length ( void ) const
virtual

Definition at line 130 of file geo_classes.cpp.

References SSG_Point::x, and SSG_Point::y.

Referenced by Get_Distance().

◆ Get_Type()

virtual TSG_Point_Type CSG_Point::Get_Type ( void ) const
inlinevirtual

Definition at line 144 of file geo_tools.h.

References SG_POINT_TYPE_2D.

◆ is_Equal() [1/2]

virtual bool CSG_Point::is_Equal ( const CSG_Point & Point,
double epsilon = 0. ) const
inlinevirtual

◆ is_Equal() [2/2]

virtual bool CSG_Point::is_Equal ( double _x,
double _y,
double epsilon = 0. ) const
inlinevirtual

Definition at line 176 of file geo_tools.h.

References SSG_Point::x, and SSG_Point::y.

◆ Multiply() [1/2]

void CSG_Point::Multiply ( const CSG_Point & Point)
virtual

Definition at line 111 of file geo_classes.cpp.

References CSG_Point(), SSG_Point::x, and SSG_Point::y.

Referenced by operator*=(), and operator*=().

◆ Multiply() [2/2]

void CSG_Point::Multiply ( double Value)
virtual

Definition at line 117 of file geo_classes.cpp.

References SSG_Point::x, and SSG_Point::y.

◆ operator!=()

virtual bool CSG_Point::operator!= ( const CSG_Point & Point) const
inlinevirtual

Definition at line 147 of file geo_tools.h.

References CSG_Point(), and is_Equal().

◆ operator*()

CSG_Point CSG_Point::operator* ( double Value) const
inline

Definition at line 157 of file geo_tools.h.

References CSG_Point(), SSG_Point::x, and SSG_Point::y.

◆ operator*=() [1/2]

virtual CSG_Point & CSG_Point::operator*= ( const CSG_Point & Point)
inlinevirtual

Definition at line 155 of file geo_tools.h.

References CSG_Point(), and Multiply().

◆ operator*=() [2/2]

virtual CSG_Point & CSG_Point::operator*= ( double Value)
inlinevirtual

Definition at line 159 of file geo_tools.h.

References CSG_Point(), and Multiply().

◆ operator+()

virtual CSG_Point CSG_Point::operator+ ( const CSG_Point & Point) const
inlinevirtual

Definition at line 149 of file geo_tools.h.

References CSG_Point(), SSG_Point::x, and SSG_Point::y.

◆ operator+=()

virtual CSG_Point & CSG_Point::operator+= ( const CSG_Point & Point)
inlinevirtual

Definition at line 153 of file geo_tools.h.

References Add(), and CSG_Point().

◆ operator-()

virtual CSG_Point CSG_Point::operator- ( const CSG_Point & Point) const
inlinevirtual

Definition at line 150 of file geo_tools.h.

References CSG_Point(), SSG_Point::x, and SSG_Point::y.

◆ operator-=()

virtual CSG_Point & CSG_Point::operator-= ( const CSG_Point & Point)
inlinevirtual

Definition at line 154 of file geo_tools.h.

References CSG_Point(), and Subtract().

◆ operator/()

CSG_Point CSG_Point::operator/ ( double Value) const
inline

Definition at line 158 of file geo_tools.h.

References CSG_Point(), SSG_Point::x, and SSG_Point::y.

◆ operator/=()

virtual CSG_Point & CSG_Point::operator/= ( double Value)
inlinevirtual

Definition at line 160 of file geo_tools.h.

References CSG_Point(), and Divide().

◆ operator=()

virtual CSG_Point & CSG_Point::operator= ( const CSG_Point & Point)
inlinevirtual

Definition at line 152 of file geo_tools.h.

References Assign(), and CSG_Point().

◆ operator==()

virtual bool CSG_Point::operator== ( const CSG_Point & Point) const
inlinevirtual

Definition at line 146 of file geo_tools.h.

References CSG_Point(), and is_Equal().

◆ Subtract()

void CSG_Point::Subtract ( const CSG_Point & Point)
virtual

Definition at line 105 of file geo_classes.cpp.

References CSG_Point(), SSG_Point::x, and SSG_Point::y.

Referenced by operator-=().


The documentation for this class was generated from the following files: