#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 | |
| std::string | toStr () const |
| Return a string representation of this value. | |
Public Attributes | |
| float | x |
| direct access to x | |
| float | y |
| direct access to y | |
| OpenGUI::FVector2::FVector2 | ( | ) | [inline] |
constructor
| OpenGUI::FVector2::FVector2 | ( | float | x, | |
| float | y | |||
| ) | [inline] |
constructor
| float OpenGUI::FVector2::length | ( | ) | [inline] |
Returns the length of vector.
| bool OpenGUI::FVector2::operator!= | ( | const FVector2 & | right | ) | const [inline] |
comparison operator
| FVector2 OpenGUI::FVector2::operator- | ( | ) | [inline] |
inverse operator
| bool OpenGUI::FVector2::operator== | ( | const FVector2 & | right | ) | const [inline] |
comparison operator
Returns a pixel aligned copy of this FVector2.
| std::string OpenGUI::FVector2::toStr | ( | ) | const |
Return a string representation of this value.
| float OpenGUI::FVector2::x |
direct access to x
| float OpenGUI::FVector2::y |
direct access to y