Class TiffRational

TiffRational class

The tiff rational type.

public class TiffRational

Constructors

NameDescription
TiffRational()Initializes a new instance of the TiffRational class.
TiffRational(uint)Initializes a new instance of the TiffRational class.
TiffRational(uint, uint)Initializes a new instance of the TiffRational class.

Properties

NameDescription
Denominator { get; }Gets the denominator.
Nominator { get; }Gets the nominator.
Value { get; }Gets the float value.
ValueD { get; }Gets the double value.

Methods

NameDescription
static ApproximateFraction(double)Approximates the provided value to a fraction.
static ApproximateFraction(float)Approximates the provided value to a fraction.
static ApproximateFraction(double, double)Approximates the provided value to a fraction.
static ApproximateFraction(float, double)Approximates the provided value to a fraction.
override Equals(object)Determines whether the specified Object, is equal to this instance.
override GetHashCode()Returns a hash code for this instance.
override ToString()Converts to string.

Fields

NameDescription
const EpsilonThe epsilon for fraction calculation

See Also