![]() |
Gorgon Game Engine
|
Property support for point class. More...
Public Member Functions | |
| basic_SizeProperty (basic_SizeProperty &&)=default | |
| basic_SizeProperty (C_ &object) | |
| basic_SizeProperty (C_ *object) | |
| Float | Angle () const |
| Calculates the angle of the line formed from the origin to this point. More... | |
| Float | Angle (const T_ &origin) const |
| Calculates the angle of the line formed from the given point to this point. More... | |
| bool | Compare (const T_ &point) const |
| Compares two points. More... | |
| T_ | CrossProduct (const T_ &value) const |
| Calculates cross product of two points. More... | |
| Float | Distance () const |
| Calculates Euclidean distance from this point to origin. More... | |
| Float | Distance (const T_ &target) const |
| Calculates Euclidean distance from this point to the given target. More... | |
| T_ | DotProduct (const T_ &value) const |
| Calculates dot product of two points. More... | |
| Float | EuclideanSquare () const |
| Calculates EuclideanSquare distance from this point to the given target. More... | |
| Float | EuclideanSquare (const T_ &target) const |
| Calculates EuclideanSquare distance from this point to the given target. More... | |
| T_::BaseType | GetHeight () const |
| Returns Height component. More... | |
| T_::BaseType | GetWidth () const |
| Returns Width component. More... | |
| Float | ManhattanDistance () const |
| Calculates Manhattan distance from this point to origin. More... | |
| Float | ManhattanDistance (const T_ &target) const |
| Calculates Manhattan distance from this point to the given target. More... | |
| T_ | Normalize () const |
| Normalizes the point as a unit vector. More... | |
| operator const T_ () const | |
| operator T_ () | |
| bool | operator!= (const T_ &point) const |
| Compares two points. More... | |
| T_ | operator* (const T_ &value) const |
| Multiplies two points. This is essentially a dot product. More... | |
| template<class O_ > | |
| T_ | operator* (O_ value) const |
| Multiply this point with a scalar value. More... | |
| template<class O_ > | |
| basic_SizeProperty & | operator*= (O_ value) |
| Scales this point. More... | |
| T_ | operator+ (const T_ &point) const |
| Adds another point to this one and returns the result. More... | |
| basic_SizeProperty & | operator+= (const T_ &point) |
| Adds another point from this point. More... | |
| T_ | operator- () const |
| Negates this point. More... | |
| T_ | operator- (const T_ &point) const |
| basic_SizeProperty & | operator-= (const T_ &point) |
| Subtracts another point from this point. More... | |
| template<class O_ > | |
| T_ | operator/ (O_ value) const |
| Divides this point to a scalar value. More... | |
| template<class O_ > | |
| basic_SizeProperty & | operator/= (O_ value) |
| Scales this point. More... | |
| basic_SizeProperty & | operator= (basic_SizeProperty &&)=default |
| basic_SizeProperty & | operator= (const T_ &value) |
| bool | operator== (const T_ &point) const |
| Compares two points. More... | |
| T_ | Perpendicular () const |
| Calculates perpendicular vector to this point. More... | |
| void | SetHeight (const typename T_::BaseType &value) |
| Sets Height component. More... | |
| void | SetWidth (const typename T_::BaseType &value) |
| Sets Width component. More... | |
| Float | Slope () const |
| Calculates the slope of the line formed from the origin to this point. More... | |
| Float | Slope (const T_ &point) const |
| Calculates the slope of the line formed from the given point to this point. More... | |
Public Member Functions inherited from Property< C_, T_, Getter_, Setter_ > | |
| Property (C_ &Object) | |
| Property (C_ *Object) | |
| Property (const Property &)=delete | |
| Property (Property &&)=default | |
| T_ | Get () const |
| operator const T_ () const | |
| operator T_ () | |
| bool | operator!= (const T_ &v) const |
| T_ | operator* () const |
| template<class O_ > | |
| Property & | operator= (const O_ &value) |
| Property & | operator= (const Property &)=delete |
| template<class AC_ , T_(AC_::*)() const G_, void(AC_::*)(const T_ &) S_> | |
| Property & | operator= (const Property< AC_, T_, G_, S_ > &prop) |
| Property & | operator= (const T_ &value) |
| Property & | operator= (Property &&)=default |
| bool | operator== (const T_ &v) const |
| void | Set (const T_ &value) |
Public Attributes | |
| NumericProperty< basic_SizeProperty, typename T_::BaseType, &basic_SizeProperty::GetHeight, &basic_SizeProperty::SetHeight > | Height |
| NumericProperty< basic_SizeProperty, typename T_::BaseType, &basic_SizeProperty::GetWidth, &basic_SizeProperty::SetWidth > | Width |
Additional Inherited Members | |
Public Types inherited from Property< C_, T_, Getter_, Setter_ > | |
| using | Type = T_ |
Protected Attributes inherited from Property< C_, T_, Getter_, Setter_ > | |
| C_ & | Object |
Property support for point class.
| basic_SizeProperty | ( | C_ * | object | ) |
| basic_SizeProperty | ( | C_ & | object | ) |
|
default |
| Float Angle | ( | ) | const |
Calculates the angle of the line formed from the origin to this point.
| Float Angle | ( | const T_ & | origin | ) | const |
Calculates the angle of the line formed from the given point to this point.
| origin | is the starting point of the line |
| bool Compare | ( | const T_ & | point | ) | const |
Compares two points.
| T_ CrossProduct | ( | const T_ & | value | ) | const |
Calculates cross product of two points.
| Float Distance | ( | ) | const |
Calculates Euclidean distance from this point to origin.
| Float Distance | ( | const T_ & | target | ) | const |
Calculates Euclidean distance from this point to the given target.
| T_ DotProduct | ( | const T_ & | value | ) | const |
Calculates dot product of two points.
| Float EuclideanSquare | ( | ) | const |
Calculates EuclideanSquare distance from this point to the given target.
| Float EuclideanSquare | ( | const T_ & | target | ) | const |
Calculates EuclideanSquare distance from this point to the given target.
| T_::BaseType GetHeight | ( | ) | const |
Returns Height component.
| T_::BaseType GetWidth | ( | ) | const |
Returns Width component.
| Float ManhattanDistance | ( | ) | const |
Calculates Manhattan distance from this point to origin.
| Float ManhattanDistance | ( | const T_ & | target | ) | const |
Calculates Manhattan distance from this point to the given target.
| T_ Normalize | ( | ) | const |
Normalizes the point as a unit vector.
| operator const T_ | ( | ) | const |
References Property< C_, T_, Getter_, Setter_ >::Object.
| operator T_ | ( | ) |
| bool operator!= | ( | const T_ & | point | ) | const |
Compares two points.
| T_ operator* | ( | const T_ & | value | ) | const |
Multiplies two points. This is essentially a dot product.
| T_ operator* | ( | O_ | value | ) | const |
Multiply this point with a scalar value.
This is effectively scales the point
| basic_SizeProperty& operator*= | ( | O_ | value | ) |
Scales this point.
| T_ operator+ | ( | const T_ & | point | ) | const |
Adds another point to this one and returns the result.
| basic_SizeProperty& operator+= | ( | const T_ & | point | ) |
Adds another point from this point.
Result is assigned to this point
| T_ operator- | ( | ) | const |
Negates this point.
| T_ operator- | ( | const T_ & | point | ) | const |
| basic_SizeProperty& operator-= | ( | const T_ & | point | ) |
Subtracts another point from this point.
Result is assigned to this point
| T_ operator/ | ( | O_ | value | ) | const |
Divides this point to a scalar value.
This is effectively scales the point
| basic_SizeProperty& operator/= | ( | O_ | value | ) |
Scales this point.
|
default |
| basic_SizeProperty& operator= | ( | const T_ & | value | ) |
| bool operator== | ( | const T_ & | point | ) | const |
Compares two points.
| T_ Perpendicular | ( | ) | const |
Calculates perpendicular vector to this point.
| void SetHeight | ( | const typename T_::BaseType & | value | ) |
Sets Height component.
| void SetWidth | ( | const typename T_::BaseType & | value | ) |
Sets Width component.
| Float Slope | ( | ) | const |
Calculates the slope of the line formed from the origin to this point.
| Float Slope | ( | const T_ & | point | ) | const |
Calculates the slope of the line formed from the given point to this point.
| point | is the starting point of the line |
| NumericProperty<basic_SizeProperty, typename T_::BaseType, &basic_SizeProperty::GetHeight, &basic_SizeProperty::SetHeight> Height |
| NumericProperty<basic_SizeProperty, typename T_::BaseType, &basic_SizeProperty::GetWidth, &basic_SizeProperty::SetWidth> Width |