Click or drag to resize

Cuboid Methods

The Cuboid type exposes the following members.

Methods
 NameDescription
Public methodContains(Cuboid) Returns true if the supplied cuboid is inside this cuboid.
Public methodContains(dvec3) Returns true if the point is inside the cuboid.
Public methodCopyFrom Copies all properties from the source.
Public methodGet000InPercent 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)
Public methodHasAnyDimension 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.
Public methodHasVolumeOrArea Checks if at least two sizes are greater than 0.
Public methodIntersectWith 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.
Public methodIsAnyCornerInCuboid Returns true if any of the corners of the supplied cuboid is inside this cuboid.
Public methodIsAnyCornerNotInCuboid Returns true if any of the corners of the supplied cuboid is not inside this cuboid.
Public methodIsNoCornerInCuboid Returns true if no corner of the supplied cuboid is inside this cuboid.
Public methodIsPartlyInCuboid 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.
Public methodIsSeparatedCuboid Returns true if there's no intersection between the two cuboids.
Public methodIsSizeEqual Checks if all sizes of this and the given Cuboid are the same.
Public methodScale(dvec2) Scales the bounding box.
Public methodScale(dvec3) Scales the bounding box.
Public methodToStringReturns a string that represents the current object.
(Overrides ObjectToString)
Public methodTransform Updates the size and origin of the cuboid by transforming all corner.
Public methodTransformCorners Returns an array containing all transformed corners.
Public methodUnionWith Returns the smallest cuboid containing both cuboids.
Top
See Also