Aardvark.Base


Range1l

Constructors

ConstructorDescription
new(min, max)
Signature: (min:int64 * max:int64) -> unit

Creates a range from minimum and maximum limits.

new(pnt)
Signature: pnt:int64 -> unit

Creates infinitesimal box from single point.

new(p0, p1, p2)
Signature: (p0:int64 * p1:int64 * p2:int64) -> unit

Creates a range from 3 points.

new(p0, p1, p2, p3)
Signature: (p0:int64 * p1:int64 * p2:int64 * p3:int64) -> unit

Creates a range from 4 points.

new(range)
Signature: range:Range1l -> unit

Creates copy of existing range.

new(b0, b1)
Signature: (b0:Range1l * b1:Range1l) -> unit

Create a box containing all supplied ranges.

new(b0, b1, b2)
Signature: (b0:Range1l * b1:Range1l * b2:Range1l) -> unit

Create a box containing all supplied ranges.

new(b0, b1, b2, b3)
Signature: (b0:Range1l * b1:Range1l * b2:Range1l * b3:Range1l) -> unit

Create a box containing all supplied ranges.

new(values)
Signature: (values:int64 []) -> unit

Creates range as the bounding range of given points.

new(values, start, count)
Signature: (values:int64 [] * 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<int64> -> unit

Creates range as the bounding range of given values.

Instance members

Instance memberDescription
Center
Signature: int64
Modifiers: abstract
Clamped(x)
Signature: x:int64 -> int64

Return the value in the Range that is closest to the supplied value.

Contains(value)
Signature: value:int64 -> bool
Modifiers: abstract

Returns true if the range contains the given value.

Contains(b)
Signature: b:Range1l -> bool
Modifiers: abstract

Returns true if the range completely contains the given range.

Elements
Signature: IEnumerable<int64>
EnlargeBy(delta)
Signature: delta:int64 -> unit
Modifiers: abstract

Enlarges range by the supplied value in all directions.

EnlargeBy(deltaMin, deltaMax)
Signature: (deltaMin:int64 * deltaMax:int64) -> unit
Modifiers: abstract

Enlarges range by the supplied values.

EnlargedBy(increment)
Signature: increment:int64 -> Range1l
Modifiers: abstract

Return range enlarged by the supplied value in all directions.

EnlargedBy(deltaMin, deltaMax)
Signature: (deltaMin:int64 * deltaMax:int64) -> Range1l
Modifiers: abstract

Return range enlarged by the supplied values.

Equals(obj)
Signature: obj:obj -> bool
Modifiers: abstract
ExtendBy(range)
Signature: range:Range1l -> unit
Modifiers: abstract

Extends the range to contain the supplied range.

ExtendBy(value)
Signature: value:int64 -> unit
Modifiers: abstract

Extends the range to contain the supplied value.

ExtendedBy(range)
Signature: range:Range1l -> Range1l
Modifiers: abstract

Returns the range extended to contain the supplied range.

ExtendedBy(value)
Signature: value:int64 -> Range1l
Modifiers: abstract

Returns the range extended to contain the supplied value.

GetHashCode()
Signature: unit -> int
Modifiers: abstract
Intersection(b)
Signature: b:Range1l -> Range1l
Intersects(range)
Signature: range:Range1l -> bool
Modifiers: abstract

Checks if 2 ranges intersect each other.

Intersects(range, eps)
Signature: (range:Range1l * eps:int64) -> 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 -> Range1l
Modifiers: abstract

Checks if the range is still valid and repairs if not.

ShrinkBy(delta)
Signature: delta:int64 -> unit
Modifiers: abstract

Shrinks range by the supplied value in all directions.

ShrinkBy(deltaMin, deltaMax)
Signature: (deltaMin:int64 * deltaMax:int64) -> unit
Modifiers: abstract

Shrinks range by the supplied values.

ShrunkBy(delta)
Signature: delta:int64 -> Range1l
Modifiers: abstract

Return range shrunk by the supplied value in all directions.

ShrunkBy(deltaMin, deltaMax)
Signature: (deltaMin:int64 * deltaMax:int64) -> Range1l
Modifiers: abstract

Return range shrunk by the supplied values.

Size()
Signature: unit -> unit
Modifiers: abstract

Calculates size of the range.

SplitLeft(splitValue)
Signature: splitValue:int64 -> Range1l
Modifiers: abstract
SplitRight(splitValue)
Signature: splitValue:int64 -> Range1l
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:Range1l -> Range1l

Static members

Static memberDescription
FromCenterAndSize(center, size)
Signature: (center:int64 * size:int64) -> Range1l

Returns new range [center - size / 2, center + size / 2].

FromMinAndSize(min, size)
Signature: (min:int64 * size:int64) -> Range1l

Returns new range [min, min + size].

Intersection(a, b)
Signature: (a:Range1l * b:Range1l) -> Range1l
op_Addition(box, v)
Signature: (box:Range1l * v:int64) -> Range1l

Returns a range shifted by the supplied value.

op_Equality(a, b)
Signature: (a:Range1l * b:Range1l) -> bool

Checks if 2 boxes are equal.

op_Inequality(a, b)
Signature: (a:Range1l * b:Range1l) -> bool

Checks if 2 boxes are not equal.

op_Subtraction(box, v)
Signature: (box:Range1l * v:int64) -> Range1l

Returns a range shifted by the negative supplied value.

Parse(s)
Signature: s:string -> Range1l
Parse(t)
Signature: t:Text -> Range1l
Union(a, b)
Signature: (a:Range1l * b:Range1l) -> Range1l
Fork me on GitHub