TiffRational Class
Summary: The tiff rational type.
Module: aspose.imaging.fileformats.tiff
Full Name: aspose.imaging.fileformats.tiff.TiffRational
Aspose.Imaging Version: 24.7.0
Constructors
Name | Description |
---|---|
TiffRational() | Initializes a new instance of the TiffRational class. |
TiffRational(nominator, denominator) | Initializes a new instance of the TiffRational class. |
TiffRational(value) | Initializes a new instance of the TiffRational class. |
Properties
Name | Type | Access | Description |
---|---|---|---|
EPSILON [static] | double | r | The epsilon for fraction calculation |
denominator | uint | r | Gets the denominator. |
nominator | uint | 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: TiffRational()
TiffRational()
Initializes a new instance of the TiffRational class.
Constructor: TiffRational(nominator, denominator)
TiffRational(nominator, denominator)
Initializes a new instance of the TiffRational class.
Parameters:
Parameter | Type | Description |
---|---|---|
nominator | uint | The nominator. |
denominator | uint | The denominator. |
Constructor: TiffRational(value)
TiffRational(value)
Initializes a new instance of the TiffRational class.
Parameters:
Parameter | Type | Description |
---|---|---|
value | uint | The nominator 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 |
---|---|
TiffRational | A rational number having error less than TiffRational.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 |
---|---|
TiffRational | 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 |
---|---|
TiffRational | A rational number having error less than TiffRational.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 |
---|---|
TiffRational | 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 |
---|---|
TiffRational | A rational number having error less than TiffRational.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 |
---|---|
TiffRational | A rational number having error less than TiffRational.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 |
---|---|
TiffRational | 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 |
---|---|
TiffRational | A rational number having error less than epsilon. |