net.sourceforge.jiu.color.dithering
Class RoundSpotFunction
java.lang.Object
net.sourceforge.jiu.color.dithering.RoundSpotFunction
- All Implemented Interfaces:
- SpotFunction
public class RoundSpotFunction
- extends Object
- implements SpotFunction
A round spot function.
- Since:
- 0.9.0
- Author:
- Marco Schmidt
- See Also:
ClusteredDotDither
Method Summary |
double |
compute(double x,
double y)
Compute the spot intensity at the given position. |
boolean |
isBalanced()
Returns if this spot function is balanced. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RoundSpotFunction
public RoundSpotFunction()
compute
public double compute(double x,
double y)
- Description copied from interface:
SpotFunction
- Compute the spot intensity at the given position.
- Specified by:
compute
in interface SpotFunction
- Parameters:
x
- horizontal position, must be between -1.0 and 1.0 (including both)y
- vertical position, must be between -1.0 and 1.0 (including both)
- Returns:
- the function value, must be between 0.0 and 1.0 (including both)
isBalanced
public boolean isBalanced()
- Description copied from interface:
SpotFunction
- Returns if this spot function is balanced.
- Specified by:
isBalanced
in interface SpotFunction
Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Marco Schmidt