barsuift.simLife.j3d.universe.environment
Interface Sun3D

All Superinterfaces:
IObservable

public interface Sun3D
extends IObservable


Method Summary
 javax.media.j3d.DirectionalLight getLight()
           
 Percent getWhiteFactor()
          Computes the white factor, based on the position (rise and zenith angles).
 
Methods inherited from interface barsuift.simLife.IObservable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 

Method Detail

getWhiteFactor

Percent getWhiteFactor()
Computes the white factor, based on the position (rise and zenith angles). The lower the sun is, the lower the white factor.

Concretely, here is the computation :
whiteFactor = sqrt(abs(sinus(riseAngle) * sinus(zenithAngle)))

Returns:
the white factor

getLight

javax.media.j3d.DirectionalLight getLight()


Copyright © 2010. All Rights Reserved.