Box3f
Constructors
Constructor | Description |
new(box)
Signature: box:Box3d -> unit
|
|
new(min, max)
Signature: (min:V3f * max:V3f) -> unit
|
Creates a box from minimum and maximum limits. |
new(minX, minY, minZ, maxX, maxY, maxZ)
Signature: (minX:float32 * minY:float32 * minZ:float32 * maxX:float32 * maxY:float32 * maxZ:float32) -> unit
|
Creates a box from minimum and maximum limits. |
new(pnt)
Signature: pnt:V3f -> unit
|
Creates infinitesimal box from single point. |
new(p0, p1, p2)
Signature: (p0:V3f * p1:V3f * p2:V3f) -> unit
|
Creates a box from 3 points. |
new(p0, p1, p2, p3)
Signature: (p0:V3f * p1:V3f * p2:V3f * p3:V3f) -> unit
|
Creates a box from 4 points. |
new(range)
Signature: range:Box3f -> unit
|
Creates copy of existing range. |
new(b0, b1)
Signature: (b0:Box3f * b1:Box3f) -> unit
|
Create a box containing all supplied boxs. |
new(b0, b1, b2)
Signature: (b0:Box3f * b1:Box3f * b2:Box3f) -> unit
|
Create a box containing all supplied boxs. |
new(b0, b1, b2, b3)
Signature: (b0:Box3f * b1:Box3f * b2:Box3f * b3:Box3f) -> unit
|
Create a box containing all supplied boxs. |
new(points)
Signature: (points:V3f []) -> unit
|
Creates box as the bounding box of given points. |
new(points, start, count)
Signature: (points:V3f [] * start:int64 * count:int64) -> unit
|
Creates box as the bounding box of count of the given points starting at start. |
new(points)
Signature: points:IEnumerable<V3f> -> unit
|
Creates box as the bounding box of given points. |
new(boxes)
Signature: boxes:IEnumerable<Box3f> -> unit
|
Creates box as the bounding box of given boxes. |
new(rangeX, rangeY, rangeZ)
Signature: (rangeX:Range1f * rangeY:Range1f * rangeZ:Range1f) -> unit
|
Creates box from a Range1 in each direction. |
Instance members
Instance member | Description |
BoundingBox3d
Signature: Box3d
Modifiers: abstract |
|
Center
Signature: V3f
Modifiers: abstract |
|
Clamped(p)
Signature: p:V3f -> V3f
|
Return the point in the Box that is closest to the supplied point. |
ComputeCorners()
Signature: unit -> V3f []
|
Computes the corners of the box and returns them in an array. The order of the corners is determined by their index which is constructed as in the method . |
Contains(p)
Signature: p:V3f -> bool
Modifiers: abstract |
Returns true if the box contains the given point. |
Contains(b)
Signature: b:Box3f -> bool
Modifiers: abstract |
Returns true if the box completely contains the given box. |
Corner(index)
Signature: index:int -> V3f
|
Return the corner of the box with the given index. The corner index is constructed in such a way, that bit 0 enumerates the x coordinate (0 ... min, 1 ... max), bit 1 enumerates the y coordinate, and bit 2 enumerates the z coordinate. |
Distance(p)
Signature: p:V3f -> float
|
|
DistanceSquared(p)
Signature: p:V3f -> float
|
|
EnlargeBy(delta)
Signature: delta:V3f -> unit
Modifiers: abstract |
Enlarges box by the supplied value in all directions. |
EnlargeBy(deltaMin, deltaMax)
Signature: (deltaMin:V3f * deltaMax:V3f) -> unit
Modifiers: abstract |
Enlarges box by the supplied values. |
EnlargeBy(delta)
Signature: delta:float32 -> unit
|
Enlarges box by specified value in all directions. |
EnlargeBy(...)
Signature: (deltaMinX:float32 * deltaMaxX:float32 * deltaMinY:float32 * deltaMaxY:float32 * deltaMinZ:float32 * deltaMaxZ:float32) -> unit
|
Enlarges the box by the specified values (paddings). |
EnlargeByRelativeEps(eps)
Signature: eps:float32 -> unit
|
Enlarge the box in all directions by the supplied epsilon which is measured with respect to the box diagonal. |
EnlargedBy(increment)
Signature: increment:V3f -> Box3f
Modifiers: abstract |
Return box enlarged by the supplied value in all directions. |
EnlargedBy(deltaMin, deltaMax)
Signature: (deltaMin:V3f * deltaMax:V3f) -> Box3f
Modifiers: abstract |
Return box enlarged by the supplied values. |
EnlargedBy(delta)
Signature: delta:float32 -> Box3f
|
Returns a box enlarged by the specified value in all directions. |
EnlargedBy(...)
Signature: (deltaMinX:float32 * deltaMaxX:float32 * deltaMinY:float32 * deltaMaxY:float32 * deltaMinZ:float32 * deltaMaxZ:float32) -> Box3f
|
Returns the box enlarged by the specified values (paddings). |
EnlargedByRelativeEps(eps)
Signature: eps:float32 -> Box3f
|
Return a box enlarged in all directions by the supplied epsilon which is measured with respect to the box diagonal. |
Equals(obj)
Signature: obj:obj -> bool
Modifiers: abstract |
|
ExtendBy(box)
Signature: box:Box3f -> unit
Modifiers: abstract |
Extends the box to contain the supplied box. |
ExtendBy(point)
Signature: point:V3f -> unit
Modifiers: abstract |
Extends the box to contain the supplied value. |
ExtendDimBy(dim, x)
Signature: (dim:int * x:float32) -> Box3f
|
|
ExtendedBy(b)
Signature: b:Box3f -> Box3f
Modifiers: abstract |
Returns the box extended to contain the supplied box. |
ExtendedBy(v)
Signature: v:V3f -> Box3f
Modifiers: abstract |
Returns the box extended to contain the supplied value. |
ExtendXBy(x)
Signature: x:float32 -> Box3f
|
|
ExtendYBy(y)
Signature: y:float32 -> Box3f
|
|
ExtendZBy(z)
Signature: z:float32 -> Box3f
|
|
GetHashCode()
Signature: unit -> int
Modifiers: abstract |
|
GetMinMaxInDirection(v, vMin, vMax)
Signature: (v:V3f * vMin:byref<V3f> * vMax:byref<V3f>) -> unit
|
Gets the minimal and maximal points of the box when seen from the supplied direction vector v. |
III
Signature: V3f
|
|
IIO
Signature: V3f
|
|
Intersection(b)
Signature: b:Box3f -> Box3f
|
|
Intersects(box)
Signature: box:Box3f -> bool
Modifiers: abstract |
Returns true if 2 boxes intersect each other. |
Intersects(box, eps)
Signature: (box:Box3f * eps:V3f) -> bool
Modifiers: abstract |
Returns true if 2 boxes intersect each other with tolerance parameter. |
Intersects(box, eps)
Signature: (box:Box3f * eps:float32) -> bool
|
Returns true if 2 boxes intersect each other with tolerance parameter. |
Invalidate()
Signature: unit -> Box3f
|
|
InvLerp(p)
Signature: p:V3f -> V3f
|
Inverse of Lerp. |
InvLerp(x, y, z)
Signature: (x:float32 * y:float32 * z:float32) -> V3f
|
Inverse of Lerp. |
IOI
Signature: V3f
|
|
IOO
Signature: V3f
|
|
IsEmpty
Signature: bool
Modifiers: abstract |
True if the box is invalid or has a zero volume. |
IsInfinite
Signature: bool
|
True if the box is infinite. |
IsInvalid
Signature: bool
Modifiers: abstract |
True if the box is invalid. |
IsNonEmpty
Signature: bool
Modifiers: abstract |
True if the box has a non-zero volume. |
IsValid
Signature: bool
Modifiers: abstract |
True if the box is valid. |
Lerp(x)
Signature: x:float -> V3f
|
Linearly interpolates between min and max. |
Lerp(p)
Signature: p:V3f -> V3f
|
Interpolate linearly in each dimension. |
Lerp(x, y, z)
Signature: (x:float32 * y:float32 * z:float32) -> V3f
|
Interpolate linearly in each dimension. |
MajorDim
Signature: int
|
Index of the longest dimension of the box. |
MinorDim
Signature: int
|
Index of the shortest dimension of the box. |
OII
Signature: V3f
|
|
OIO
Signature: V3f
|
|
OOI
Signature: V3f
|
|
OOO
Signature: V3f
|
|
OutsideFlags(p0)
Signature: p0:V3f -> Flags
|
Returns where a points coordinates are outside a given box |
OutsideFlags(b)
Signature: b:Box3f -> Flags
|
Returns where the planes of the supplied box b are outside of the box. |
RangeX
Signature: Range1f
|
|
RangeY
Signature: Range1f
|
|
RangeZ
Signature: Range1f
|
|
Repair()
Signature: unit -> Box3f
Modifiers: abstract |
Checks if the box is still valid and repairs if not. |
Scaled(factor)
Signature: factor:V3f -> Box3f
|
Returns a scaled box. WARNING: scaling is performed around the origin! A negative scale factor will resut in an invalid box! |
ScaledFromCenterBy(factor)
Signature: factor:float32 -> Box3f
|
Return box scaled by the supplied factor around its center. |
ScaledFromCenterBy(vectorFactor)
Signature: vectorFactor:V3f -> Box3f
|
Return box scaled by the supplied factor around its center. |
ShrinkBy(delta)
Signature: delta:V3f -> unit
Modifiers: abstract |
Shrinks box by the supplied value in all directions. |
ShrinkBy(deltaMin, deltaMax)
Signature: (deltaMin:V3f * deltaMax:V3f) -> unit
Modifiers: abstract |
Shrinks box by the supplied values. |
ShrinkBy(delta)
Signature: delta:float32 -> unit
|
Shrinks box by specified value in all directions. |
ShrinkBy(...)
Signature: (deltaMinX:float32 * deltaMaxX:float32 * deltaMinY:float32 * deltaMaxY:float32 * deltaMinZ:float32 * deltaMaxZ:float32) -> unit
|
Shrinks the box by the specified values (paddings). |
ShrunkBy(delta)
Signature: delta:V3f -> Box3f
Modifiers: abstract |
Return box shrunk by the supplied value in all directions. |
ShrunkBy(deltaMin, deltaMax)
Signature: (deltaMin:V3f * deltaMax:V3f) -> Box3f
Modifiers: abstract |
Return box shrunk by the supplied values. |
ShrunkBy(delta)
Signature: delta:float32 -> Box3f
|
Returns a box shrunk by the specified value in all directions. |
ShrunkBy(...)
Signature: (deltaMinX:float32 * deltaMaxX:float32 * deltaMinY:float32 * deltaMaxY:float32 * deltaMinZ:float32 * deltaMaxZ:float32) -> Box3f
|
Returns the box shrunk by the specified values (paddings). |
Size()
Signature: unit -> unit
Modifiers: abstract |
Calculates size of the box. |
Size3d
Signature: V3d
Modifiers: abstract |
|
SizeX()
Signature: unit -> unit
|
|
SizeY()
Signature: unit -> unit
|
|
SizeZ()
Signature: unit -> unit
|
|
SplitLeft(splitValue)
Signature: splitValue:V3f -> Box3f
Modifiers: abstract |
|
SplitRight(splitValue)
Signature: splitValue:V3f -> Box3f
Modifiers: abstract |
|
SurfaceArea
Signature: float32
|
|
ToString()
Signature: unit -> string
Modifiers: abstract |
|
ToString(format)
Signature: format:string -> string
|
|
ToString(format, fp)
Signature: (format:string * fp:IFormatProvider) -> string
Modifiers: abstract |
|
ToString(...)
Signature: (format:string * fp:IFormatProvider * beginB:string * betweenB:string * endB:string * beginV:string * betweenV:string * endV:string) -> string
|
Outputs e.g. a Box2 in the form "(beginB)(beginV)min.x(betweenV)min.y(endV)(betweenB)(beginV)max.x(betweenV)max.y(endV)(endB)". |
Transformed(trafo)
Signature: trafo:M44d -> Box3d
|
|
Transformed(trafo)
Signature: trafo:Trafo3d -> Box3d
|
|
Translated(shift)
Signature: shift:V3f -> Box3f
|
|
Union(b)
Signature: b:Box3f -> Box3f
|
|
Volume
Signature: float32
|
Static members
Static member | Description |
FromCenterAndSize(center, size)
Signature: (center:V3f * size:V3f) -> Box3f
|
Returns new box [center - size / 2, center + size / 2]. |
FromCenterAndSize(center, iSize)
Signature: (center:V3f * iSize:ISize3d) -> Box3f
|
Returns new box [center - iSize / 2, center + iSize / 2]. |
FromMinAndSize(min, size)
Signature: (min:V3f * size:V3f) -> Box3f
|
Returns new box [min, min + size]. |
FromMinAndSize(min, iSize)
Signature: (min:V3f * iSize:ISize3d) -> Box3f
|
Returns new box [min, min + iSize]. |
FromPoints(p0, p1)
Signature: (p0:V3f * p1:V3f) -> Box3f
|
Creates box from 2 points which need not be Min and Max. |
FromSize(size)
Signature: size:V3f -> Box3f
|
Returns new box [0, size]. |
FromSize(iSize)
Signature: iSize:ISize3d -> Box3f
|
Returns new box [0, iSize]. |
Intersection(a, b)
Signature: (a:Box3f * b:Box3f) -> Box3f
|
|
op_Addition(box, v)
Signature: (box:Box3f * v:V3f) -> Box3f
|
Returns a box shifted by the supplied value. |
op_Equality(a, b)
Signature: (a:Box3f * b:Box3f) -> bool
|
Checks if 2 boxes are equal. |
op_Explicit(box)
Signature: box:Box3f -> Box3d
|
|
op_Inequality(a, b)
Signature: (a:Box3f * b:Box3f) -> bool
|
Checks if 2 boxes are not equal. |
op_Subtraction(box, v)
Signature: (box:Box3f * v:V3f) -> Box3f
|
Returns a box shifted by the negative supplied value. |
Parse(s)
Signature: s:string -> Box3f
|
|
Parse(t)
Signature: t:Text -> Box3f
|
|
Union(a, b)
Signature: (a:Box3f * b:Box3f) -> Box3f
|