Table of Contents

Class ExplicitShape.ExplicitShape2

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

Concrete implementation of a 2D ExplicitShape.

[Serializable]
public sealed class ExplicitShape.ExplicitShape2 : IExplicitShape<GridPoint2>, IImplicitShape<GridPoint2>
Inheritance
ExplicitShape.ExplicitShape2
Implements
Inherited Members
Extension Methods

Constructors

ExplicitShape2(IImplicitShape<GridPoint2>, AbstractBounds<GridPoint2>)

Constructs a new explicit shape from the given implicit shape and bounds.

Fields

BigRect

A big rectangle centered at the origin.

Empty

Holds an empty shape.

Properties

Bounds

Returns a bounding shape that contains this explicit shape.

Points

Gets all the points this shape contains.

Methods

Contains(GridPoint2)

Determines whether this implicit shape contains the specified point.

Intersection(ExplicitShape2)

Creates a new explicit shape that is the intersection of this shape and another shape.

InverseInRect()

Creates a new explicit shape that is the inverse of this shape within its rectangular bounds.

Translate(GridPoint2)

Translates the shape by a specified offset.

Union(ExplicitShape2)

Creates a new explicit shape that is the union of this shape and another shape.