Box |
[SerializableAttribute] public struct Box2D
The Box2D type exposes the following members.
| Name | Description | |
|---|---|---|
| Box2D(Box2D) | Initializes a new instance of the Box2D class | |
| Box2D(Vec2, Vec2) | 构造一个包围盒对象 |
| Name | Description | |
|---|---|---|
| Add(Vec2) | ||
| Add(Double, Double) | ||
| AddBox | ||
| Contains(Vec2) | ||
| Contains(Double, Double) | ||
| EmptyBox | ||
| Equals | (Overrides ValueTypeEquals(Object)) | |
| GetHashCode | (Overrides ValueTypeGetHashCode) | |
| Inflate | ||
| IntersectWithBox | ||
| IntersectWithLine(Vec2, Vec2) | ||
| IntersectWithLine(Double, Double, Double, Double) | ||
| IsValid | ||
| Reset | ||
| ToString | (Overrides ValueTypeToString) | |
| Transform | ||
| Translate(Vec2) | 移动包围盒 | |
| Translate(Double, Double) | 移动包围盒 |