de.grogra.math
public class ChannelMapInput extends java.lang.Object
ChannelMap-based computations. Its only purpose is to provide an
instance of ChannelData which may be reused for several
invokations of methods of ChannelMap, thus reducing
the number of heap operations.| Constructor and Description |
|---|
ChannelMapInput() |
| Modifier and Type | Method and Description |
|---|---|
ChannelData |
getUserData(ChannelMap sink,
ChannelMap def)
Returns an empty instance of
ChannelData for the use in
method implementations that perform computations based
on ChannelMaps. |
public ChannelData getUserData(ChannelMap sink, ChannelMap def)
ChannelData for the use in
method implementations that perform computations based
on ChannelMaps.
It is recommended to use
this instance rather than a new instance of ChannelData
in order to avoid unnecessary and time consuming heap operations.sink - the invoker's sink map for the channel datadef - the invoker's default map for the channel dataChannelData