#include <OpenGUI_Types.h>
This object often represents a screen coordinate starting from the upper left corner of the screen. The value a FVector2 represents is very much an issue of context. In the rendering areas of OpenGUI, a FVector2 is quite often a representation of screen position between 0,0 (upper left) and 1,1 (lower right).
Public Member Functions | |
| FVector2 () | |
| constructor | |
| FVector2 (float x, float y) | |
| constructor | |
| FVector2 | operator+ (const FVector2 &right) const |
| operator + | |
| FVector2 | operator- (const FVector2 &right) const |
| operator - | |
| FVector2 | operator * (const FVector2 &right) const |
| operator * | |
| FVector2 | operator/ (const FVector2 &right) const |
| operator / | |
| FVector2 & | operator+= (const FVector2 &right) |
| operator += | |
| FVector2 & | operator-= (const FVector2 &right) |
| operator -= | |
| FVector2 & | operator *= (const FVector2 &right) |
| operator *= | |
| FVector2 & | operator/= (const FVector2 &right) |
| operator /= | |
| bool | operator== (const FVector2 &right) const |
| comparison operator | |
| bool | operator!= (const FVector2 &right) const |
| comparison operator | |
| FVector2 | operator- () const |
| returns inverse FVector2 -x,-y | |
| FVector2 | pixelAligned (const IVector2 &resolution) const |
| Returns a pixel aligned copy of this FVector2. | |
| float | length () |
| Returns the length of vector. | |
| FVector2 | operator- () |
| inverse operator | |
| String | toStr () const |
| Return a string representation of this value. | |
Public Attributes | |
| float | x |
| direct access to x | |
| float | y |
| direct access to y | |
|
|
constructor
|
|
||||||||||||
|
constructor
|
|
|
Returns the length of vector.
|
|
|
operator *
|
|
|
operator *=
|
|
|
comparison operator
|
|
|
operator +
|
|
|
operator +=
|
|
|
inverse operator
|
|
|
returns inverse FVector2 -x,-y
|
|
|
operator -
|
|
|
operator -=
|
|
|
operator /
|
|
|
operator /=
|
|
|
comparison operator
|
|
|
Returns a pixel aligned copy of this FVector2.
|
|
|
Return a string representation of this value.
|
|
|
direct access to x
|
|
|
direct access to y
|