struct
TArea2
template<typename PositionType, typename SizeType = PositionType>Represents a 2D area.
Area is represented with an origin in top left and width/height.
Public
Constructors
TArea2<PositionType, SizeType>
TArea2<PositionType, SizeType>
TArea2<PositionType, SizeType>
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
TArea2
Methods
IsEmpty
Returns true if the area covered is 0.
Contains
Returns true if the area contains the provided point.
Contains
Returns true if the area fully contains the provided rectangle.
Overlaps
Returns true if the area overlaps the provided area.
Also returns true if the areas are contained within each other completely (no intersecting edges).
Encapsulate
Extends this area so that the provided area is completely contained within it.
SetPosition
Sets the X/Y coordinates of the area.
Clip
Clips current area so that it does not overlap the provided area.
Cut
Cuts the current area with the provided area and outputs the pieces.
The pieces will contain all area of the current area without including the cut area area.
Cut
Cuts the current area with the provided areas and outputs the pieces.
The pieces will contain all area of the current area without including the cut area.
IsEmpty
Returns true if the area covered is 0.
Contains
Returns true if the area contains the provided point.
Contains
Returns true if the area fully contains the provided rectangle.
Overlaps
Returns true if the area overlaps the provided area.
Also returns true if the areas are contained within each other completely (no intersecting edges).
Encapsulate
Extends this area so that the provided area is completely contained within it.
Clip
Clips current area so that it does not overlap the provided area.
Cut
Cuts the current area with the provided area and outputs the pieces.
The pieces will contain all area of the current area without including the cut area area.
Cut
Cuts the current area with the provided areas and outputs the pieces.
The pieces will contain all area of the current area without including the cut area.
IsEmpty
Returns true if the area covered is 0.
Contains
Returns true if the area contains the provided point.
Contains
Returns true if the area fully contains the provided rectangle.
Overlaps
Returns true if the area overlaps the provided area.
Also returns true if the areas are contained within each other completely (no intersecting edges).
Encapsulate
Extends this area so that the provided area is completely contained within it.
Clip
Clips current area so that it does not overlap the provided area.
Cut
Cuts the current area with the provided area and outputs the pieces.
The pieces will contain all area of the current area without including the cut area area.
Cut
Cuts the current area with the provided areas and outputs the pieces.
The pieces will contain all area of the current area without including the cut area.
IsEmpty
Returns true if the area covered is 0.
Contains
Returns true if the area contains the provided point.
Contains
Returns true if the area fully contains the provided rectangle.
Overlaps
Returns true if the area overlaps the provided area.
Also returns true if the areas are contained within each other completely (no intersecting edges).
Encapsulate
Extends this area so that the provided area is completely contained within it.
Clip
Clips current area so that it does not overlap the provided area.
Cut
Cuts the current area with the provided area and outputs the pieces.
The pieces will contain all area of the current area without including the cut area area.
Cut
Cuts the current area with the provided areas and outputs the pieces.
The pieces will contain all area of the current area without including the cut area.
IsEmpty
Returns true if the area covered is 0.
GetPosition
Returns the top left corner of the area.
Contains
Returns true if the area contains the provided point.
Contains
Returns true if the area fully contains the provided rectangle.
Overlaps
Returns true if the area overlaps the provided area.
Also returns true if the areas are contained within each other completely (no intersecting edges).
Encapsulate
Extends this area so that the provided area is completely contained within it.
SetPosition
Sets the X/Y coordinates of the area.
SetSize
Sets the width/height of the area.
Clip
Clips current area so that it does not overlap the provided area.
Cut
Cuts the current area with the provided area and outputs the pieces.
The pieces will contain all area of the current area without including the cut area area.
Cut
Cuts the current area with the provided areas and outputs the pieces.
The pieces will contain all area of the current area without including the cut area.
IsEmpty
Returns true if the area covered is 0.
GetPosition
Returns the top left corner of the area.
Contains
Returns true if the area contains the provided point.
Contains
Returns true if the area fully contains the provided rectangle.
Overlaps
Returns true if the area overlaps the provided area.
Also returns true if the areas are contained within each other completely (no intersecting edges).
Encapsulate
Extends this area so that the provided area is completely contained within it.
SetPosition
Sets the X/Y coordinates of the area.
SetSize
Sets the width/height of the area.
Clip
Clips current area so that it does not overlap the provided area.
Cut
Cuts the current area with the provided area and outputs the pieces.
The pieces will contain all area of the current area without including the cut area area.
Cut
Cuts the current area with the provided areas and outputs the pieces.
The pieces will contain all area of the current area without including the cut area.
IsEmpty
Returns true if the area covered is 0.
GetPosition
Returns the top left corner of the area.
Contains
Returns true if the area contains the provided point.
Contains
Returns true if the area fully contains the provided rectangle.
Overlaps
Returns true if the area overlaps the provided area.
Also returns true if the areas are contained within each other completely (no intersecting edges).
Encapsulate
Extends this area so that the provided area is completely contained within it.
SetPosition
Sets the X/Y coordinates of the area.
SetSize
Sets the width/height of the area.
Clip
Clips current area so that it does not overlap the provided area.
Cut
Cuts the current area with the provided area and outputs the pieces.
The pieces will contain all area of the current area without including the cut area area.
Cut
Cuts the current area with the provided areas and outputs the pieces.
The pieces will contain all area of the current area without including the cut area.
IsEmpty
Returns true if the area covered is 0.
GetPosition
Returns the top left corner of the area.
Contains
Returns true if the area contains the provided point.
Contains
Returns true if the area fully contains the provided rectangle.
Overlaps
Returns true if the area overlaps the provided area.
Also returns true if the areas are contained within each other completely (no intersecting edges).
Encapsulate
Extends this area so that the provided area is completely contained within it.
SetPosition
Sets the X/Y coordinates of the area.
SetSize
Sets the width/height of the area.
Clip
Clips current area so that it does not overlap the provided area.
Cut
Cuts the current area with the provided area and outputs the pieces.
The pieces will contain all area of the current area without including the cut area area.
Cut
Cuts the current area with the provided areas and outputs the pieces.
The pieces will contain all area of the current area without including the cut area.