Cuboid Methods |
The Cuboid type exposes the following members.
| Name | Description | |
|---|---|---|
| Contains(Cuboid) | Returns true if the supplied cuboid is inside this cuboid. | |
| Contains(dvec3) | Returns true if the point is inside the cuboid. | |
| CopyFrom | Copies all properties from the source. | |
| Get000InPercent | Returns the position of the coordinate (0,0,0) in percent of the cuboids edges' lenghts. Example: X = -2, SizeX = 10, Y = -3, SizeY = 6, Z = -4, SizeZ = 16 returns (20, 50, 25) | |
| HasAnyDimension | Checks if the cube has any x, y or z dimension. But in case any of the sizes is negative, the cuboid is considered to have no dimension. | |
| HasVolumeOrArea | Checks if at least two sizes are greater than 0. | |
| IntersectWith | Returns the intersection of this and the given cuboid. Attention: No intersection leads to zero or negative sizes! This needs to be checked by the caller. | |
| IsAnyCornerInCuboid | Returns true if any of the corners of the supplied cuboid is inside this cuboid. | |
| IsAnyCornerNotInCuboid | Returns true if any of the corners of the supplied cuboid is not inside this cuboid. | |
| IsNoCornerInCuboid | Returns true if no corner of the supplied cuboid is inside this cuboid. | |
| IsPartlyInCuboid | Returns true if any edge of the supplied cuboid is inside this cuboid and any other edge of the supplied cuboid is outside this cuboid. | |
| IsSeparatedCuboid | Returns true if there's no intersection between the two cuboids. | |
| IsSizeEqual | Checks if all sizes of this and the given Cuboid are the same. | |
| Scale(dvec2) | Scales the bounding box. | |
| Scale(dvec3) | Scales the bounding box. | |
| ToString | Returns a string that represents the current object. (Overrides ObjectToString) | |
| Transform | Updates the size and origin of the cuboid by transforming all corner. | |
| TransformCorners | Returns an array containing all transformed corners. | |
| UnionWith | Returns the smallest cuboid containing both cuboids. |