File tree 2 files changed +4
-4
lines changed
images-lib/images/private 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 60
60
61
61
(: beckmann-distribution (Flonum Flonum -> Flonum))
62
62
(define (beckmann-distribution cos-θ m)
63
- (define x (/ (tan (acos cos-θ)) m))
63
+ (define x (/ (tan (flacos cos-θ)) m))
64
64
(define m*cos^2-θ (* m cos-θ cos-θ))
65
- (/ (exp (- (* x x))) (* pi m*cos^2-θ m*cos^2-θ)))
65
+ (/ (flexp (- (* x x))) (* pi m*cos^2-θ m*cos^2-θ)))
66
66
67
67
;; ===================================================================================================
68
68
;; Pass 1: tracing from a directional light source
Original file line number Diff line number Diff line change 294
294
(define ((orthographic-projection α) d)
295
295
(define f (/ d 2.0 (sin (* 0.5 (real->double-flonum α)))))
296
296
(projection-mapping (λ (ρ) (* (sin ρ) f))
297
- (λ (r) (asin (/ r f)))))
297
+ (λ (r) (flasin (/ r f)))))
298
298
299
299
(: equal-area-projection (Real -> Projection))
300
300
(define ((equal-area-projection α) d)
301
301
(define f (/ d 4.0 (sin (* 0.25 (real->double-flonum α)))))
302
302
(projection-mapping (λ (ρ) (* 2.0 (sin (* 0.5 ρ)) f))
303
- (λ (r) (* 2.0 (asin (/ r 2.0 f))))))
303
+ (λ (r) (* 2.0 (flasin (/ r 2.0 f))))))
304
304
305
305
(: stereographic-projection (Real -> Projection))
306
306
(define ((stereographic-projection α) d)
You can’t perform that action at this time.
0 commit comments