|
|
constexpr | BaseIntegerVector2 () noexcept=default |
| | Construct a zero vector.
|
| |
|
constexpr | BaseIntegerVector2 (T x, T y) noexcept |
| | Construct from coordinates.
|
| |
|
constexpr | BaseIntegerVector2 (const T data[]) noexcept |
| | Construct from an array.
|
| |
|
constexpr auto | Tie () const |
| | Convert to tuple.
|
| |
|
constexpr bool | operator== (const BaseIntegerVector2 &rhs) const |
| | Test for equality with another vector.
|
| |
|
constexpr bool | operator!= (const BaseIntegerVector2 &rhs) const |
| | Test for inequality with another vector.
|
| |
|
constexpr bool | operator< (const BaseIntegerVector2 &rhs) const |
| | Lexicographic comparison for sorting.
|
| |
|
constexpr BaseIntegerVector2 | operator+ (const BaseIntegerVector2 &rhs) const |
| | Add a vector.
|
| |
|
constexpr BaseIntegerVector2 | operator- () const |
| | Return negation.
|
| |
|
constexpr BaseIntegerVector2 | operator- (const BaseIntegerVector2 &rhs) const |
| | Subtract a vector.
|
| |
|
constexpr BaseIntegerVector2 | operator* (T rhs) const |
| | Multiply with a scalar.
|
| |
|
constexpr BaseIntegerVector2 | operator* (const BaseIntegerVector2 &rhs) const |
| | Multiply with a vector.
|
| |
|
constexpr BaseIntegerVector2 | operator/ (T rhs) const |
| | Divide by a scalar.
|
| |
|
constexpr BaseIntegerVector2 | operator/ (const BaseIntegerVector2 &rhs) const |
| | Divide by a vector.
|
| |
|
constexpr BaseIntegerVector2 & | operator+= (const BaseIntegerVector2 &rhs) |
| | Add-assign a vector.
|
| |
|
constexpr BaseIntegerVector2 & | operator-= (const BaseIntegerVector2 &rhs) |
| | Subtract-assign a vector.
|
| |
|
constexpr BaseIntegerVector2 & | operator*= (T rhs) |
| | Multiply-assign a scalar.
|
| |
|
constexpr BaseIntegerVector2 & | operator*= (const BaseIntegerVector2 &rhs) |
| | Multiply-assign a vector.
|
| |
|
constexpr BaseIntegerVector2 & | operator/= (T rhs) |
| | Divide-assign a scalar.
|
| |
|
constexpr BaseIntegerVector2 & | operator/= (const BaseIntegerVector2 &rhs) |
| | Divide-assign a vector.
|
| |
|
constexpr const T * | Data () const |
| | Return integer data.
|
| |
|
constexpr T * | MutableData () |
| | Return integer data.
|
| |
|
ea::string | ToString () const |
| | Return as string.
|
| |
|
unsigned | ToHash () const |
| | Return hash value for HashSet & HashMap.
|
| |
|
template<class OtherVectorType > |
| constexpr OtherVectorType | Cast (typename OtherVectorType::ScalarType z={}, typename OtherVectorType::ScalarType w={}) const |
| | Cast vector to different type.
|
| |
|
template<class OtherVectorType > |
| constexpr OtherVectorType | CastXZ (typename OtherVectorType::ScalarType z={}, typename OtherVectorType::ScalarType w={}) const |
| | Cast vector to different type. Y and Z components are shuffled.
|
| |
|
Vector2 | ToVector2 () const |
| | Return Vector2 vector.
|
| |
|
IntVector3 | ToIntVector3 (int z=0) const |
| | Return IntVector3 vector.
|
| |
|
Vector3 | ToVector3 (float z=0.0f) const |
| | Return Vector3 vector.
|
| |
|
Vector4 | ToVector4 (float z=0.0f, float w=0.0f) const |
| | Return Vector4 vector.
|
| |
|
T | Length () const |
| | Return length.
|
| |
template<class T>
class Urho3D::BaseIntegerVector2< T >
Two-dimensional vector with integer values.