Point::SetPoint

Point::SetPoint
inline void SetPoint(T val);
inline void SetPoint(T x2, T y2);
inline void SetPoint(const Point<T> & pt);
inline void SetPoint(BoundsType bt);
Description

SetPoint initializes the x and y coordinate values of the current point. The following expression is used to determine the result:

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

A call to the SetPoint function is equivalent to calling the = operator.

Parameters
Parameters 
Description 
T val 
A fixed value that both the x and y coordinates of the current point are set to. 
T x2 
The argument that the x coordinate of the Point variable is set to. 
T y2 
The argument that the y coordinate of the Point variable is set to. 
const Point<T> & pt 
The x and y coordinate values of the Point variable are set to the x and y variables of pt respectively. 
BoundsType bt 
An enum value that initializes the point to either the Min or Max point value. If the value passed is Min, the point is set to (0,0).