Box

Fields

X
Y
width
height

Properties

topLeft
topRight
bottomRight
bottomLeft
Left
Right
Top
Bottom
position
Extents

Functions

Center()
GetRotatedBounds(float sin, float cos, Vector2 pivot, Vector2 scale)
GetAsVertices(Span array)
GetAsVerticesRotated(Span array, float sin, float cos, Vector2 pivot, Vector2 scale)
GetAsVerticesRotated(Span array, float rotation, Vector2 pivot, Vector2 scale)
GetTransformedBounds(Matrix4x4 matrix)
RentAsVertices()
RentAsVerticesRotated(float sin, float cos, Vector2 pivot)
RentAsVerticesRotated(float rotation, Vector2 pivot)
ToRectangle()
Contains(float x, float y)
Contains(Vector2 value)
Contains(Point value)
Contains(Box value)
Intersects(Rectangle r2)
Intersects(Box r2)
Inflate(float x, float y)
Perimeter()
SurfaceArea()
Union(Box value2)
FurthestPoint(Vector2 direction)

Static Functions

Union(Box value1, Box value2)