TiffRational Class
Summary: The tiff rational type.
Module: aspose.imaging.fileformats.tiff
Full Name: aspose.imaging.fileformats.tiff.TiffRational
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] | float | 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 | float | 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 | int | The nominator. |
| denominator | int | The denominator. |
Constructor: TiffRational(value)
TiffRational(value)
Initializes a new instance of the TiffRational class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | 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 | float | 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 | float | The value. |
| epsilon | float | 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 | float | 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 | float | 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 | float | The value. |
| epsilon | float | 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 | float | The error allowed. |
Returns
| Type | Description |
|---|---|
| TiffRational | A rational number having error less than epsilon. |