Point::Div

Point::Div
inline Point<T>& Div(const Point<T> & pt);
inline Point<T>& Div(T val);
inline Point<T>& Div(T x2, T y2);
Description

Div divides the x and y coordinate values of the current point with a fixed value (number or another Point). The following expression is used to determine the result:

   (pt1.x, pt1.y) = (pt1.x / [val, pt2.x, x2], pt1.y / [val, pt2.y, y2])

A call to the Div function is equivalent to calling the /= operator.

Parameters
Parameters 
Description 
const Point<T> & pt 
A point whose x and y coordinates divides the x and y coordinates of the current point respectively. 
T val 
A fixed value that divides the x and y coordinate values of the current point. 
T x2 
Variable with which the x coordinate of the point is divided. 
T y2 
Variable with which the y coordinate of the point is divided. 
Return Value

A Point reference to the current string whose coordinates were divided by a fixed value (number or another Point).