public class TJScalingFactor
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
private int | 
denom
Denominator 
 | 
private int | 
num
Numerator 
 | 
| Constructor and Description | 
|---|
TJScalingFactor(int num,
               int denom)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(TJScalingFactor other)
Returns true or false, depending on whether this instance and
  
other have the same numerator and denominator. | 
int | 
getDenom()
Returns denominator 
 | 
int | 
getNum()
Returns numerator 
 | 
int | 
getScaled(int dimension)
Returns the scaled value of  
dimension. | 
boolean | 
isOne()
Returns true or false, depending on whether this instance is equal to
 1/1. 
 | 
public TJScalingFactor(int num,
                       int denom)
                throws java.lang.Exception
java.lang.Exceptionpublic int getNum()
public int getDenom()
public int getScaled(int dimension)
dimension.  This function
 performs the integer equivalent of
 ceil(dimension * scalingFactor).dimensionpublic boolean equals(TJScalingFactor other)
other have the same numerator and denominator.other have the same numerator and denominatorpublic boolean isOne()
Copyright © 2018 Open Microscopy Environment