etomica.units
Class Pixel
java.lang.Object
etomica.units.SimpleUnit
etomica.units.Pixel
- All Implemented Interfaces:
- Unit, Serializable
public class Pixel
- extends SimpleUnit
Unit converting between simulation unit of length and pixels rendered in an
image. Conversion factor is set at construction.
- See Also:
- Serialized Form
|
Constructor Summary |
Pixel()
Constructs with default of 10 pixels per Angstrom. |
Pixel(double toPixels)
Constructor for Pixel. |
Pixel
public Pixel()
- Constructs with default of 10 pixels per Angstrom.
Pixel
public Pixel(double toPixels)
- Constructor for Pixel. Argument is factor to convert from simulation
units to pixels. Default is 10.
toPixels
public double toPixels()