![]() |
TrinityCore
|
#include <Position.h>
Inheritance diagram for Position:Classes | |
| struct | ConstStreamer |
| struct | Streamer |
Public Member Functions | |
| constexpr | Position () |
| constexpr | Position (float x, float y) |
| constexpr | Position (float x, float y, float z) |
| constexpr | Position (float x, float y, float z, float o) |
| bool | operator== (Position const &a) const |
| constexpr void | Relocate (float x, float y) |
| constexpr void | Relocate (float x, float y, float z) |
| constexpr void | Relocate (float x, float y, float z, float o) |
| constexpr void | Relocate (Position const &pos) |
| constexpr void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| constexpr void | SetOrientation (float orientation) |
| constexpr float | GetPositionX () const |
| constexpr float | GetPositionY () const |
| constexpr float | GetPositionZ () const |
| constexpr float | GetOrientation () const |
| constexpr void | GetPosition (float &x, float &y) const |
| constexpr void | GetPosition (float &x, float &y, float &z) const |
| constexpr void | GetPosition (float &x, float &y, float &z, float &o) const |
| constexpr Position | GetPosition () const |
| Streamer< XY > | PositionXYStream () |
| ConstStreamer< XY > | PositionXYStream () const |
| Streamer< XYZ > | PositionXYZStream () |
| ConstStreamer< XYZ > | PositionXYZStream () const |
| Streamer< XYZO > | PositionXYZOStream () |
| ConstStreamer< XYZO > | PositionXYZOStream () const |
| Streamer< PackedXYZ > | PositionPackedXYZStream () |
| ConstStreamer< PackedXYZ > | PositionPackedXYZStream () const |
| bool | IsPositionValid () const |
| constexpr float | GetExactDist2dSq (const float x, const float y) const |
| constexpr float | GetExactDist2dSq (Position const &pos) const |
| constexpr float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const &pos) const |
| float | GetExactDist2d (Position const *pos) const |
| constexpr float | GetExactDistSq (float x, float y, float z) const |
| constexpr float | GetExactDistSq (Position const &pos) const |
| constexpr float | GetExactDistSq (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const &pos) const |
| float | GetExactDist (Position const *pos) const |
| Position | GetPositionOffsetTo (Position const &endPos) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | ToAbsoluteAngle (float relAngle) const |
| float | ToRelativeAngle (float absAngle) const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const &pos) const |
| float | GetRelativeAngle (Position const *pos) const |
| constexpr bool | IsInDist2d (float x, float y, float dist) const |
| constexpr bool | IsInDist2d (Position const &pos, float dist) const |
| constexpr bool | IsInDist2d (Position const *pos, float dist) const |
| constexpr bool | IsInDist (float x, float y, float z, float dist) const |
| constexpr bool | IsInDist (Position const &pos, float dist) const |
| constexpr bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const &boxOrigin, float length, float width, float height) const |
| bool | IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const |
| bool | IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (Position const *pos, float objSize, float width) const |
| std::string | ToString () const |
Static Public Member Functions | |
| static float | NormalizeOrientation (float o) |
Public Attributes | |
| float | m_positionX |
| float | m_positionY |
| float | m_positionZ |
Static Private Member Functions | |
| static constexpr float | NormalizeOrientationConstexprWrapper (float o) |
Private Attributes | |
| float | m_orientation |
Definition at line 29 of file Position.h.
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 34 of file Position.h.
|
inlineconstexpr |
Definition at line 37 of file Position.h.
|
inlineconstexpr |
Definition at line 40 of file Position.h.
|
inline |
|
inline |
Definition at line 142 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 143 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 130 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 131 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 118 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 119 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 114 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
Definition at line 115 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 126 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
Definition at line 127 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
Definition at line 90 of file Position.h.
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 92 of file Position.h.
|
inlineconstexpr |
Definition at line 93 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
Definition at line 94 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 47 of file Position.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 61 of file Position.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
Definition at line 87 of file Position.h.
|
inlineconstexpr |
Definition at line 88 of file Position.h.
|
inlineconstexpr |
Definition at line 89 of file Position.h.
|
inline |
|
inline |
Definition at line 148 of file Position.h.
|
inline |
Definition at line 149 of file Position.h.
| bool Position::HasInArc | ( | float | arcangle, |
| Position const * | pos, | ||
| float | border = 2.0f |
||
| ) | const |
Definition at line 173 of file Position.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Position::HasInLine | ( | Position const * | pos, |
| float | objSize, | ||
| float | width | ||
| ) | const |
Definition at line 192 of file Position.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 156 of file Position.h.
|
inlineconstexpr |
Definition at line 157 of file Position.h.
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 152 of file Position.h.
|
inlineconstexpr |
Definition at line 153 of file Position.h.
| bool Position::IsInPolygon2D | ( | Position const & | polygonOrigin, |
| std::span< Position const > | vertices | ||
| ) | const |
Definition at line 104 of file Position.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Position::IsPositionValid | ( | ) | const |
Definition at line 42 of file Position.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Position::IsWithinBox | ( | Position const & | boxOrigin, |
| float | length, | ||
| float | width, | ||
| float | height | ||
| ) | const |
Definition at line 68 of file Position.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| bool Position::IsWithinVerticalCylinder | ( | Position const & | cylinderOrigin, |
| float | radius, | ||
| float | height, | ||
| bool | isDoubleVertical = false |
||
| ) | const |
Definition at line 96 of file Position.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
|
inlinestaticconstexprprivate |
Definition at line 173 of file Position.h.
| bool Position::operator== | ( | Position const & | a | ) | const |
Definition at line 26 of file Position.cpp.
|
inline |
Definition at line 103 of file Position.h.
|
inline |
Definition at line 104 of file Position.h.
|
inline |
Definition at line 97 of file Position.h.
|
inline |
Definition at line 98 of file Position.h.
|
inline |
|
inline |
Definition at line 102 of file Position.h.
|
inline |
Definition at line 99 of file Position.h.
|
inline |
Definition at line 100 of file Position.h.
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 75 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
Definition at line 76 of file Position.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
Definition at line 77 of file Position.h.
|
inlineconstexpr |
Definition at line 78 of file Position.h.
| void Position::RelocateOffset | ( | Position const & | offset | ) |
Definition at line 34 of file Position.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineconstexpr |
|
inline |
|
inline |
Definition at line 146 of file Position.h.
| std::string Position::ToString | ( | ) | const |
Definition at line 202 of file Position.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 69 of file Position.h.
| float Position::m_positionX |
Definition at line 64 of file Position.h.
| float Position::m_positionY |
Definition at line 65 of file Position.h.
| float Position::m_positionZ |
Definition at line 66 of file Position.h.