Class TiffSRational

TiffSRational class

The tiff rational type.

public class TiffSRational

Constructors

NameDescription
TiffSRational()Initializes a new instance of the TiffSRational class.
TiffSRational(int)Initializes a new instance of the TiffSRational class.
TiffSRational(int, int)Initializes a new instance of the TiffSRational 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()Returns a String that represents this instance.

Fields

NameDescription
const EpsilonThe epsilon for fraction calculation

See Also