Table of Contents

Struct GeoRect

Namespace
Pinwheel.Vista.RealWorldData
Assembly
Pinwheel.Vista.RealWorldData.Runtime.dll
[Serializable]
public struct GeoRect : IEquatable<GeoRect>
Implements
Inherited Members
Extension Methods

Constructors

GeoRect(double, double, double, double)

Creates a rectangle from explicit min and max bounds.

Properties

aspect

Width-to-height aspect ratio.

aspectF

Width-to-height aspect ratio as a float.

center

Center point of the rectangle.

centerX

Horizontal center coordinate.

centerY

Vertical center coordinate.

height

Vertical size of the rectangle.

width

Horizontal size of the rectangle.

Methods

CalculateNormalizedQuadNonAlloc(GeoRect, GeoRect, Vector2[])

Converts a tile rectangle into normalized quad vertices relative to a larger canvas rectangle.

Equals(GeoRect)

Compares this rectangle with another rectangle using the current operator implementation.

Equals(object)
GetHashCode()
Intersect(GeoRect, GeoRect)

Tests whether two rectangles overlap.

ToString()

Operators

operator ==(GeoRect, GeoRect)
operator !=(GeoRect, GeoRect)