Mako 8.2.0 API
MakoCore SDK API Documentation
Loading...
Searching...
No Matches
PointTmpl< PointType > Class Template Reference

Geometry primitives including: point, rectangle and matrix types supporting both integer and floating point values within. More...

#include <edl/edlgeom.h>

Public Member Functions

 PointTmpl ()
 PointTmpl (PointType ax, PointType ay)
 PointTmpl (const PointTmpl< PointType > &p)=default
 PointTmpl (PointTmpl< PointType > &&p)=default
PointTmpl< PointType > & operator= (const PointTmpl< PointType > &other)=default
PointTmpl< PointType > & operator+= (const PointTmpl< PointType > &pt)
bool equal (const PointTmpl &point) const
bool operator== (const PointTmpl &point) const
bool operator!= (const PointTmpl &point) const
PointTmpl< PointType > getMidPoint (const PointTmpl< PointType > &pt) const
 Find the mid-point between this and another point.
double getDistance (const PointTmpl< PointType > &pt) const
 Find the distance to another point.

Public Attributes

PointType x
PointType y

Detailed Description

template<typename PointType>
class PointTmpl< PointType >

Geometry primitives including: point, rectangle and matrix types supporting both integer and floating point values within.

Template for a point specified with X and Y coordinates

Constructor & Destructor Documentation

◆ PointTmpl() [1/4]

template<typename PointType>
PointTmpl< PointType >::PointTmpl ( )
inline

◆ PointTmpl() [2/4]

template<typename PointType>
PointTmpl< PointType >::PointTmpl ( PointType ax,
PointType ay )
inline

◆ PointTmpl() [3/4]

template<typename PointType>
PointTmpl< PointType >::PointTmpl ( const PointTmpl< PointType > & p)
default

◆ PointTmpl() [4/4]

template<typename PointType>
PointTmpl< PointType >::PointTmpl ( PointTmpl< PointType > && p)
default

Member Function Documentation

◆ equal()

template<typename PointType>
bool PointTmpl< PointType >::equal ( const PointTmpl< PointType > & point) const
inline

◆ getDistance()

template<typename PointType>
double PointTmpl< PointType >::getDistance ( const PointTmpl< PointType > & pt) const
inline

Find the distance to another point.

Parameters
ptThe other point.
Returns
double The distance between the two points.

◆ getMidPoint()

template<typename PointType>
PointTmpl< PointType > PointTmpl< PointType >::getMidPoint ( const PointTmpl< PointType > & pt) const
inline

Find the mid-point between this and another point.

Parameters
ptThe other point.
Returns
PointTmpl<PointType> The mid-point between the two points.

◆ operator!=()

template<typename PointType>
bool PointTmpl< PointType >::operator!= ( const PointTmpl< PointType > & point) const
inline

◆ operator+=()

template<typename PointType>
PointTmpl< PointType > & PointTmpl< PointType >::operator+= ( const PointTmpl< PointType > & pt)
inline

◆ operator=()

template<typename PointType>
PointTmpl< PointType > & PointTmpl< PointType >::operator= ( const PointTmpl< PointType > & other)
default

◆ operator==()

template<typename PointType>
bool PointTmpl< PointType >::operator== ( const PointTmpl< PointType > & point) const
inline

Member Data Documentation

◆ x

template<typename PointType>
PointType PointTmpl< PointType >::x

◆ y

template<typename PointType>
PointType PointTmpl< PointType >::y

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