Skip to main content
API Reference NianticSpatial.NSDK.AR.NavigationMesh

Bounds

Specifies an area in a top-down 2D grid using a square.

Declaration

public readonly struct Bounds : ValueType, IEquatable<Bounds>

Constructors

public Bounds(Vector2Int bottomLeft, int size)

Properties

NameTypeSummary
readonly BottomLeftVector2Int
Returns the bottom left corner point (this is also the anchor of this square).
readonly BottomRightVector2Int
Returns the bottom right corner point.
readonly CenterVector2Int
Returns the center of the square.
readonly TopLeftVector2Int
Returns the top left corner point.
readonly TopRightVector2Int
Returns the top right corner point.

Fields

NameTypeSummary
Sizeint
The size of each side.

Methods

NameTypeSummary
ContainsPointbool
Returns true if the specified point is within bounds.
DrawGizmosvoid
-
Equalsbool
-
GetHashCodeint
-
Intersectsbool
Returns true if the specified bounds overlap with this one.

Relationships

implements: System.IEquatable