TiffSRational Class
Summary: The tiff rational type.
Module: aspose.imaging.fileformats.tiff
Full Name: aspose.imaging.fileformats.tiff.TiffSRational
Constructors
Name | Description |
---|---|
TiffSRational() | Initializes a new instance of the TiffSRational class. |
TiffSRational(nominator, denominator) | Initializes a new instance of the TiffSRational class. |
TiffSRational(value) | Initializes a new instance of the TiffSRational class. |
Properties
Name | Type | Access | Description |
---|---|---|---|
EPSILON [static] | double | r | The epsilon for fraction calculation |
denominator | int | r | Gets the denominator. |
nominator | int | r | Gets the nominator. |
value | float | r | Gets the float value. |
value_d | double | r | Gets the double value. |
Methods
Name | Description |
---|---|
approximate_double_fraction(value) | Approximates the provided value to a fraction. |
approximate_double_fraction_eps(value, epsilon) | Approximates the provided value to a fraction. |
approximate_float_fraction(value) | Approximates the provided value to a fraction. |
approximate_float_fraction_eps(value, epsilon) | Approximates the provided value to a fraction. |
approximate_fraction(value) | Approximates the provided value to a fraction. |
approximate_fraction(value) | Approximates the provided value to a fraction. |
approximate_fraction(value, epsilon) | Approximates the provided value to a fraction. |
approximate_fraction(value, epsilon) | Approximates the provided value to a fraction. |
Constructor: TiffSRational()
TiffSRational()
Initializes a new instance of the TiffSRational class.
Constructor: TiffSRational(nominator, denominator)
TiffSRational(nominator, denominator)
Initializes a new instance of the TiffSRational class.
Parameters:
Parameter | Type | Description |
---|---|---|
nominator | int | The nominator. |
denominator | int | The denominator. |
Constructor: TiffSRational(value)
TiffSRational(value)
Initializes a new instance of the TiffSRational class.
Parameters:
Parameter | Type | Description |
---|---|---|
value | int | The value. |
Method: approximate_double_fraction(value) [static]
approximate_double_fraction(value)
Approximates the provided value to a fraction.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | The value. |
Returns
Type | Description |
---|---|
TiffSRational | A rational number having error less than TiffSRational.EPSILON. |
Method: approximate_double_fraction_eps(value, epsilon) [static]
approximate_double_fraction_eps(value, epsilon)
Approximates the provided value to a fraction.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | The value. |
epsilon | double | The error allowed. |
Returns
Type | Description |
---|---|
TiffSRational | A rational number having error less than epsilon. |
Method: approximate_float_fraction(value) [static]
approximate_float_fraction(value)
Approximates the provided value to a fraction.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float | The value. |
Returns
Type | Description |
---|---|
TiffSRational | A rational number having error less than TiffSRational.EPSILON. |
Method: approximate_float_fraction_eps(value, epsilon) [static]
approximate_float_fraction_eps(value, epsilon)
Approximates the provided value to a fraction.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float | The value. |
epsilon | double | The error allowed. |
Returns
Type | Description |
---|---|
TiffSRational | A rational number having error less than epsilon. |
Method: approximate_fraction(value) [static]
approximate_fraction(value)
Approximates the provided value to a fraction.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | The value. |
Returns
Type | Description |
---|---|
TiffSRational | A rational number having error less than TiffSRational.EPSILON. |
Method: approximate_fraction(value) [static]
approximate_fraction(value)
Approximates the provided value to a fraction.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float | The value. |
Returns
Type | Description |
---|---|
TiffSRational | A rational number having error less than TiffSRational.EPSILON. |
Method: approximate_fraction(value, epsilon) [static]
approximate_fraction(value, epsilon)
Approximates the provided value to a fraction.
Parameters:
Parameter | Type | Description |
---|---|---|
value | double | The value. |
epsilon | double | The error allowed. |
Returns
Type | Description |
---|---|
TiffSRational | A rational number having error less than epsilon. |
Method: approximate_fraction(value, epsilon) [static]
approximate_fraction(value, epsilon)
Approximates the provided value to a fraction.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float | The value. |
epsilon | double | The error allowed. |
Returns
Type | Description |
---|---|
TiffSRational | A rational number having error less than epsilon. |