Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement needed functionality for DOF simulation rust-side, switches…
… to f64 to increase precision. Adds focusing in/out to Telescope Genserver
- Loading branch information
1 parent
0f60d47
commit 766eee9
Showing
6 changed files
with
265 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
defmodule Optics.RxopticsNif do | ||
use Rustler, otp_app: :scope, crate: :rxopticsnif | ||
|
||
def non_parallel_rayfan_coords(_focal_length, _radius, _source_distance, _rays), do: error() | ||
def non_parallel_rayfan_coords(_focal_length, _radius, _source_distance, _source_height, _rays), do: error() | ||
|
||
def reflection_angle(_focal_length, _radius, _source_distance, _source_height), do: error() | ||
|
||
defp error, do: :erlang.nif_error(:nif_not_loaded) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.