Mako 8.1.0 API
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 <edlgeom.h>

Public Member Functions

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.
 

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

Member Function Documentation

◆ 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.

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