Foxit PDF SDK
|
Inherits CFX_Object.
Public Member Functions | |
CFX_PSVTemplate () | |
Constructor. | |
CFX_PSVTemplate (BaseType new_x, BaseType new_y) | |
Constructor, with parameters. More... | |
CFX_PSVTemplate (const CFX_PSVTemplate &other) | |
Copy constructor. More... | |
void | Add (BaseType x, BaseType y) |
Add a point. More... | |
FXT_PSV & | operator *= (BaseType lamda) |
Overload operator *=. More... | |
FXT_PSV & | operator -= (const FXT_PSV &obj) |
Overload operator -=. More... | |
FXT_PSV & | operator+= (const FXT_PSV &obj) |
Overload operator +=. More... | |
FXT_PSV & | operator/= (BaseType lamda) |
Overload operator /=. More... | |
void | Reset () |
Reset to the base point. More... | |
void | Set (BaseType x, BaseType y) |
Set values. More... | |
void | Set (const FXT_PSV &psv) |
Set values. More... | |
void | Subtract (BaseType x, BaseType y) |
Subtract a point. More... | |
Public Attributes | |
BaseType | x |
x coordinate of the point. | |
BaseType | y |
y coordinate of the point. | |
Friends | |
FX_BOOL | operator != (const FXT_PSV &obj1, const FXT_PSV &obj2) |
Overload operator !=. More... | |
FXT_PSV | operator * (const FXT_PSV &obj, BaseType lamda) |
Overload operator *. More... | |
FXT_PSV | operator * (BaseType lamda, const FXT_PSV &obj) |
Overload operator *. More... | |
FXT_PSV | operator - (const FXT_PSV &obj1, const FXT_PSV &obj2) |
Overload operator -. More... | |
FXT_PSV | operator+ (const FXT_PSV &obj1, const FXT_PSV &obj2) |
Overload operator +. More... | |
FXT_PSV | operator/ (const FXT_PSV &obj, BaseType lamda) |
Overload operator /. More... | |
FX_BOOL | operator== (const FXT_PSV &obj1, const FXT_PSV &obj2) |
Overload operator ==. More... | |
The class represents a template for a point on the plane.
|
inline |
Constructor, with parameters.
[in] | new_x | x coordinate of the point. |
[in] | new_y | y coordinate of the point. |
|
inline |
Copy constructor.
[in] | other | Another object. |
|
inline |
Add a point.
[in] | x | x coordinate of the subtrahend point. |
[in] | y | x coordinate of the subtrahend point. |
|
inline |
Overload operator *=.
[in] | lamda | A value to be multiplied. |
|
inline |
Overload operator -=.
[in] | obj | Another value object. |
|
inline |
Overload operator +=.
[in] | obj | Another value object. |
|
inline |
Overload operator /=.
[in] | lamda | A value to be divided. |
|
inline |
Reset to the base point.
|
inline |
Set values.
[in] | x | x coordinate of the point. |
[in] | y | x coordinate of the point. |
|
inline |
Set values.
[in] | psv | Another value object. |
|
inline |
Subtract a point.
[in] | x | x coordinate of the addend point. |
[in] | y | x coordinate of the addend point. |
Overload operator !=.
[in] | obj1 | First value object. |
[in] | obj2 | Second value object. |
Overload operator *.
[in] | obj | A value object. |
[in] | lamda | A value to multiply. |
Overload operator *.
[in] | lamda | A value to multiply. |
[in] | obj | A value object to multiply. |
Overload operator -.
[in] | obj1 | First value object. |
[in] | obj2 | Second value object. |
Overload operator +.
[in] | obj1 | First value object. |
[in] | obj2 | Second value object. |
Overload operator /.
[in] | obj | A value object. |
[in] | lamda | A value to be divided. |