Range1ul
Constructors
Constructor | Description |
new(min, max)
Signature: (min:uint64 * max:uint64) -> unit
|
Creates a range from minimum and maximum limits. |
new(pnt)
Signature: pnt:uint64 -> unit
|
Creates infinitesimal box from single point. |
new(p0, p1, p2)
Signature: (p0:uint64 * p1:uint64 * p2:uint64) -> unit
|
Creates a range from 3 points. |
new(p0, p1, p2, p3)
Signature: (p0:uint64 * p1:uint64 * p2:uint64 * p3:uint64) -> unit
|
Creates a range from 4 points. |
new(range)
Signature: range:Range1ul -> unit
|
Creates copy of existing range. |
new(b0, b1)
Signature: (b0:Range1ul * b1:Range1ul) -> unit
|
Create a box containing all supplied ranges. |
new(b0, b1, b2)
Signature: (b0:Range1ul * b1:Range1ul * b2:Range1ul) -> unit
|
Create a box containing all supplied ranges. |
new(b0, b1, b2, b3)
Signature: (b0:Range1ul * b1:Range1ul * b2:Range1ul * b3:Range1ul) -> unit
|
Create a box containing all supplied ranges. |
new(values)
Signature: (values:uint64 []) -> unit
|
Creates range as the bounding range of given points. |
new(values, start, count)
Signature: (values:uint64 [] * start:int64 * count:int64) -> unit
|
Creates range as the bounding range of count of the given points starting at start. |
new(values)
Signature: values:IEnumerable<uint64> -> unit
|
Creates range as the bounding range of given values. |
Instance members
Instance member | Description |
Center
Signature: uint64
Modifiers: abstract |
|
Clamped(x)
Signature: x:uint64 -> uint64
|
Return the value in the Range that is closest to the supplied value. |
Contains(value)
Signature: value:uint64 -> bool
Modifiers: abstract |
Returns true if the range contains the given value. |
Contains(b)
Signature: b:Range1ul -> bool
Modifiers: abstract |
Returns true if the range completely contains the given range. |
Elements
Signature: IEnumerable<uint64>
|
|
EnlargeBy(delta)
Signature: delta:uint64 -> unit
Modifiers: abstract |
Enlarges range by the supplied value in all directions. |
EnlargeBy(deltaMin, deltaMax)
Signature: (deltaMin:uint64 * deltaMax:uint64) -> unit
Modifiers: abstract |
Enlarges range by the supplied values. |
EnlargedBy(increment)
Signature: increment:uint64 -> Range1ul
Modifiers: abstract |
Return range enlarged by the supplied value in all directions. |
EnlargedBy(deltaMin, deltaMax)
Signature: (deltaMin:uint64 * deltaMax:uint64) -> Range1ul
Modifiers: abstract |
Return range enlarged by the supplied values. |
Equals(obj)
Signature: obj:obj -> bool
Modifiers: abstract |
|
ExtendBy(range)
Signature: range:Range1ul -> unit
Modifiers: abstract |
Extends the range to contain the supplied range. |
ExtendBy(value)
Signature: value:uint64 -> unit
Modifiers: abstract |
Extends the range to contain the supplied value. |
ExtendedBy(range)
Signature: range:Range1ul -> Range1ul
Modifiers: abstract |
Returns the range extended to contain the supplied range. |
ExtendedBy(value)
Signature: value:uint64 -> Range1ul
Modifiers: abstract |
Returns the range extended to contain the supplied value. |
GetHashCode()
Signature: unit -> int
Modifiers: abstract |
|
Intersection(b)
Signature: b:Range1ul -> Range1ul
|
|
Intersects(range)
Signature: range:Range1ul -> bool
Modifiers: abstract |
Checks if 2 ranges intersect each other. |
Intersects(range, eps)
Signature: (range:Range1ul * eps:uint64) -> bool
Modifiers: abstract |
Checks if 2 ranges intersect each other with tolerance parameter. |
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. |
Repair()
Signature: unit -> Range1ul
Modifiers: abstract |
Checks if the range is still valid and repairs if not. |
ShrinkBy(delta)
Signature: delta:uint64 -> unit
Modifiers: abstract |
Shrinks range by the supplied value in all directions. |
ShrinkBy(deltaMin, deltaMax)
Signature: (deltaMin:uint64 * deltaMax:uint64) -> unit
Modifiers: abstract |
Shrinks range by the supplied values. |
ShrunkBy(delta)
Signature: delta:uint64 -> Range1ul
Modifiers: abstract |
Return range shrunk by the supplied value in all directions. |
ShrunkBy(deltaMin, deltaMax)
Signature: (deltaMin:uint64 * deltaMax:uint64) -> Range1ul
Modifiers: abstract |
Return range shrunk by the supplied values. |
Size()
Signature: unit -> unit
Modifiers: abstract |
Calculates size of the range. |
SplitLeft(splitValue)
Signature: splitValue:uint64 -> Range1ul
Modifiers: abstract |
|
SplitRight(splitValue)
Signature: splitValue:uint64 -> Range1ul
Modifiers: abstract |
|
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)". |
Union(b)
Signature: b:Range1ul -> Range1ul
|
Static members
Static member | Description |
FromCenterAndSize(center, size)
Signature: (center:uint64 * size:uint64) -> Range1ul
|
Returns new range [center - size / 2, center + size / 2]. |
FromMinAndSize(min, size)
Signature: (min:uint64 * size:uint64) -> Range1ul
|
Returns new range [min, min + size]. |
Intersection(a, b)
Signature: (a:Range1ul * b:Range1ul) -> Range1ul
|
|
op_Addition(box, v)
Signature: (box:Range1ul * v:uint64) -> Range1ul
|
Returns a range shifted by the supplied value. |
op_Equality(a, b)
Signature: (a:Range1ul * b:Range1ul) -> bool
|
Checks if 2 boxes are equal. |
op_Inequality(a, b)
Signature: (a:Range1ul * b:Range1ul) -> bool
|
Checks if 2 boxes are not equal. |
op_Subtraction(box, v)
Signature: (box:Range1ul * v:uint64) -> Range1ul
|
Returns a range shifted by the negative supplied value. |
Parse(s)
Signature: s:string -> Range1ul
|
|
Parse(t)
Signature: t:Text -> Range1ul
|
|
Union(a, b)
Signature: (a:Range1ul * b:Range1ul) -> Range1ul
|