PedestrainCounting
Public Member Functions | Public Attributes | List of all members
Point2D Class Reference

Public Member Functions

 Point2D (int r=0, int c=0)
 
Point2Doperator= (const Rect &r)
 
float SquaredDistance (const Point2D &other) const
 
float Distance (const Point2D &other) const
 
float SquaredLength () const
 
float Length () const
 
Point2D operator- (const Point2D &other) const
 
float operator* (const Point2D &other) const
 
Point2D operator* (float scale) const
 
float ProjectResidual (const Point2D &other) const
 

Public Attributes

int row
 
int col
 

Member Function Documentation

float Point2D::ProjectResidual ( const Point2D other) const
inline

Given two vector this and other, returns |other - dot(this, other) / (|this| ^ 2) * this|.


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