Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

struct Geo::GeoPoint2D

Integer 2 dimensional point class.

Functions

NameDescription
GeoPoint2D()

Constructors.

GeoPoint2D(Geo::s32, Geo::s32)

Constructors.

operator-(GeoPoint2D const &)

Component-wise subtraction (translation).

operator*(s32)

Scalar multiplication.

operator*=(s32)

Scalar multiplication.

operator/(s32)

Scalar division.

operator/=(s32)

Scalar division.

operator+(GeoPoint2D const &)

Component-wise addition (translation).

operator+=(const GeoPoint2D &)

Component-wise addition (translation).

operator<(const GeoPoint2D &)

Comparison operator, required to use this class as a key in an STL-style container.

operator-=(const GeoPoint2D &)

Component-wise subtraction (translation).

operator==(const GeoPoint2D &)

Equality operator.

Variables

NameDescription
Geo::s32 X

X coordinate.

Geo::s32 Y

Y coordinate.


Anchor
a76b8788fcfffc9a97fc2fa889c1d074a
a76b8788fcfffc9a97fc2fa889c1d074a

Geo::GeoPoint2D::GeoPoint2D

...

public: GeoPoint2D()

...

Constructors.


Anchor
abd951038ddafb64dda0efd2594f2d3c0
abd951038ddafb64dda0efd2594f2d3c0

Geo::GeoPoint2D::GeoPoint2D

...

public: GeoPoint2D
(
    Geo::s32 x,
    Geo::s32 y
)

...

Constructors.


Anchor
a9de9bd4b9b3efd05ad0e69cd7b25fc0e
a9de9bd4b9b3efd05ad0e69cd7b25fc0e

GeoPoint2D Geo::GeoPoint2D::operator-

...

public: GeoPoint2D operator-
(
    GeoPoint2D const & rhs
) const

...

Component-wise subtraction (translation).


Anchor
a3e859b8dd94a3f1edc24b8b4af6fcb4b
a3e859b8dd94a3f1edc24b8b4af6fcb4b

GeoPoint2D Geo::GeoPoint2D::operator*

...

public: GeoPoint2D operator*
(
    s32 Scale
) const

...

Scalar multiplication.


Anchor
adad7cafcc8941f57e70642aeaa03efe0
adad7cafcc8941f57e70642aeaa03efe0

GeoPoint2D& Geo::GeoPoint2D::operator*=

...

public: GeoPoint2D & operator*=
(
    s32 Scale
)

...

Scalar multiplication.


Anchor
ad1949e56c7788d404d945eae87947824
ad1949e56c7788d404d945eae87947824

GeoPoint2D Geo::GeoPoint2D::operator/

...

public: GeoPoint2D operator/
(
    s32 Divisor
) const

...

Scalar division.


Anchor
a829a9de6b2226cf26d5c966e263b65e7
a829a9de6b2226cf26d5c966e263b65e7

GeoPoint2D& Geo::GeoPoint2D::operator/=

...

public: GeoPoint2D & operator/=
(
    s32 Divisor
)

...

Scalar division.


Anchor
abf621b6109319d70a84d282df43019d2
abf621b6109319d70a84d282df43019d2

GeoPoint2D Geo::GeoPoint2D::operator+

...

public: GeoPoint2D operator+
(
    GeoPoint2D const & rhs
) const

...

Component-wise addition (translation).


Anchor
a3fb7b2e40b1974bdbae10523b3c54e93
a3fb7b2e40b1974bdbae10523b3c54e93

GeoPoint2D& Geo::GeoPoint2D::operator+=

...

public: GeoPoint2D & operator+=
(
    const GeoPoint2D & Other
)

...

Component-wise addition (translation).


Anchor
a6ccd267666258a75385afbc30dd1a317
a6ccd267666258a75385afbc30dd1a317

bool Geo::GeoPoint2D::operator<

...

public: bool operator<
(
    const GeoPoint2D & rhs
) const

...

Comparison operator, required to use this class as a key in an STL-style container.


Anchor
a46175030ee705e1439553ea7213f4fb9
a46175030ee705e1439553ea7213f4fb9

GeoPoint2D& Geo::GeoPoint2D::operator-=

...

public: GeoPoint2D & operator-=
(
    const GeoPoint2D & Other
)

...

Component-wise subtraction (translation).


Anchor
a6020e1ef702391a0547123bd82b7bc1d
a6020e1ef702391a0547123bd82b7bc1d

bool Geo::GeoPoint2D::operator==

...

public: bool operator==
(
    const GeoPoint2D & rhs
) const

...

Equality operator.