This class defines a cuboid by its bottom, left, front
corner and its sizes in x, y and z direction.
The directions are defined in this way, i. e. the origin
is the bottom, left, front corner:
^
z |
| / y
| /
|/
+---------->
O x
Inheritance HierarchySystemObject
RAYLASE.Marker.VectorGraphicElementCuboid
Namespace: RAYLASE.Marker.VectorGraphicElementAssembly: RAYLASE.Marker.VectorGraphicElement (in RAYLASE.Marker.VectorGraphicElement.dll) Version: 2.19.0
SyntaxThe Cuboid type exposes the following members.
Constructors
Properties | Name | Description |
---|
 | Center |
Gets the center of the bounding box.
|
 | CenterX |
Gets the x-center of the bounding box.
|
 | CenterY |
Gets the y-center of the bounding box.
|
 | CenterZ |
Gets the y-center of the bounding box.
|
 | Item | |
 | MaxMaxMax |
Returns the cuboid's top, right, back corner.
|
 | MaxMaxMin |
Returns the cuboid's bottom, right, back corner.
|
 | MaxMinMax |
Returns the cuboid's top, right, front corner.
|
 | MaxMinMin |
Returns the cuboid's bottom, right, front corner.
|
 | MinMaxMax |
Returns the cuboid's top, left, back corner.
|
 | MinMaxMin |
Returns the cuboid's bottom, left, back corner.
|
 | MinMinMax |
Returns the cuboid's top, left, front corner.
|
 | MinMinMin |
Returns the cuboid's bottom, left, front corner.
|
 | Origin |
Gets or sets the bottom, left, front corner of the cuboid.
|
 | Size |
Gets or sets the cuboid's sizes.
|
 | SizeX |
Sets and gets the cuboid's size in x direction.
|
 | SizeY |
Sets and gets the cuboid's size in y direction.
|
 | SizeZ |
Sets and gets the cuboid's size in z direction.
|
 | Volume |
Gets the cuboid's volume.
|
 | X |
Sets and gets the x coordinate of the cuboid's bottom, left, front corner.
|
 | XYArea |
Gets the area of the x and y dimension.
|
 | Y |
Sets and gets the y coordinate of the cuboid's bottom, left, front corner.
|
 | Z |
Sets and gets the z coordinate of the cuboid's bottom, left, front corner.
|
Top
Methods | 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.
|
Top
See Also