public static double [ ] shadowOffset ( double azimuth , double altitude , double height ) { double spread = 1 / Math . tan ( altitude ) ; return new double [ ] { - height * spread * Math . sin ( azimuth ) , - height * spread * Math . cos ( azimuth ) } ; }
Return the shadow offset in X and Y directions