• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Struct NumberRange

A range of numbers [min, max] (spec §7.9.7). Used by mesh shadings and number trees.

Implements
IEquatable<NumberRange>
Inherited Members
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
Namespace: DRIT.Pdf
Assembly: DRIT.Pdf.dll
Syntax
public readonly struct NumberRange : IEquatable<NumberRange>

Constructors

NumberRange(double, double)

Initializes a number range.

Declaration
public NumberRange(double min, double max)
Parameters
Type Name Description
double min
double max

Properties

Max

Gets the maximum value of the range.

Declaration
public double Max { get; }
Property Value
Type Description
double

Min

Gets the minimum value of the range.

Declaration
public double Min { get; }
Property Value
Type Description
double

Methods

Equals(NumberRange)

Indicates whether the current object is equal to another object of the same type.

Declaration
public bool Equals(NumberRange other)
Parameters
Type Name Description
NumberRange other

An object to compare with this object.

Returns
Type Description
bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj

The object to compare with the current instance.

Returns
Type Description
bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Overrides
ValueType.Equals(object)

GetHashCode()

Returns the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A 32-bit signed integer that is the hash code for this instance.

Overrides
ValueType.GetHashCode()

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override string ToString()
Returns
Type Description
string

The fully qualified type name.

Overrides
ValueType.ToString()

Operators

operator ==(NumberRange, NumberRange)

Equality operator.

Declaration
public static bool operator ==(NumberRange a, NumberRange b)
Parameters
Type Name Description
NumberRange a
NumberRange b
Returns
Type Description
bool

operator !=(NumberRange, NumberRange)

Inequality operator.

Declaration
public static bool operator !=(NumberRange a, NumberRange b)
Parameters
Type Name Description
NumberRange a
NumberRange b
Returns
Type Description
bool

Implements

IEquatable<T>
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX