Kaim::NavVertex Class Reference

Kaim::NavVertex Class Reference

#include <navvertex.h>

Class Description

Represents a single vertex that forms the corner of at least one NavMesh triangle.

NavVertex coordinates are stored on 8 bits and are local to its NavCell.

Public Member Functions

CoordPos GetCoordPos () const
 
CoordPos64 GetCoordPos64 () const
 
KyInt32 GetX32 () const
 
KyInt64 GetX64 () const
 
KyInt32 GetY32 () const
 
KyInt64 GetY64 () const
 
KyUInt8 operator[] (KyInt32 idx) const
 

Public Attributes

KyUInt8 x
 
KyUInt8 y
 

Member Function Documentation

CoordPos Kaim::NavVertex::GetCoordPos ( ) const
inline

Returns the position of the vertex in an integer grid. For internal use.

CoordPos64 Kaim::NavVertex::GetCoordPos64 ( ) const
inline

Returns the position of the vertex in an integer grid. For internal use.

KyInt32 Kaim::NavVertex::GetX32 ( ) const
inline

Returns the X coordinate of the vertex.

KyInt64 Kaim::NavVertex::GetX64 ( ) const
inline

Returns the X coordinate of the vertex.

KyInt32 Kaim::NavVertex::GetY32 ( ) const
inline

Returns the Y coordinate of the vertex.

KyInt64 Kaim::NavVertex::GetY64 ( ) const
inline

Returns the Y coordinate of the vertex.

KyUInt8 Kaim::NavVertex::operator[] ( KyInt32  idx) const
inline

Retrieves the size of the vector around one of its axes.

Use [0] for the X axis, or [1] for the Y axis.

Member Data Documentation

KyUInt8 Kaim::NavVertex::x

Stores the X coordinate of the vertex. Do not modify.

KyUInt8 Kaim::NavVertex::y

Stores the Y coordinate of the vertex. Do not modify.


The documentation for this class was generated from the following file: