File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -187,6 +187,6 @@ space to 2D `screen_points` giving their projected locations on a virtual camera
187187image, you might use the following code:
188188
189189``` julia
190- cam_transform = PerspectiveMap () ∘ AffineMap (cam_rotation, - cam_position)
190+ cam_transform = PerspectiveMap () ∘ inv ( AffineMap (cam_rotation, cam_position) )
191191screen_points = map (cam_transform, points)
192192```
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ This transformation is designed to be used in composition with other coordinate
1010transformations, defining e.g. the position and orientation of the camera. For
1111example:
1212
13- cam_transform = PerspectiveMap() ∘ AffineMap(cam_rotation, - cam_position)
13+ cam_transform = PerspectiveMap() ∘ inv( AffineMap(cam_rotation, cam_position) )
1414 screen_points = map(cam_transform, points)
1515"""
1616immutable PerspectiveMap <: Transformation
You can’t perform that action at this time.
0 commit comments