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.
- 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.
- Intersect(GeoRect, GeoRect)
Tests whether two rectangles overlap.