Sha256: 0f7c4d8a2c4fc08e69c596f0aad68427fe60b6cae0ab27cfd1d982853aad4ed6
Contents?: true
Size: 588 Bytes
Versions: 6
Compression:
Stored size: 588 Bytes
Contents
package org.sunflow.image; /** * Very simple class equivalent to a constant spectral curve. Note that this is * most likely physically impossible for amplitudes > 0, however this class can * be handy since in practice spectral curves end up being integrated against * the finite width color matching functions. */ public class ConstantSpectralCurve extends SpectralCurve { private final float amp; public ConstantSpectralCurve(float amp) { this.amp = amp; } @Override public float sample(float lambda) { return amp; } }
Version data entries
6 entries across 6 versions & 1 rubygems