{"id":19361282,"url":"https://github.com/zmitchell/polarization","last_synced_at":"2025-04-23T12:32:30.880Z","repository":{"id":62442772,"uuid":"146910547","full_name":"zmitchell/polarization","owner":"zmitchell","description":"Simulate the polarization of a laser beam","archived":false,"fork":false,"pushed_at":"2019-08-21T17:56:31.000Z","size":85,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-29T12:43:07.265Z","etag":null,"topics":["jones-calculus","optics","physics","polarization","rust","simulations"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zmitchell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-31T15:32:03.000Z","updated_at":"2023-12-08T14:16:43.000Z","dependencies_parsed_at":"2022-11-01T22:02:48.680Z","dependency_job_id":null,"html_url":"https://github.com/zmitchell/polarization","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitchell%2Fpolarization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitchell%2Fpolarization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitchell%2Fpolarization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zmitchell%2Fpolarization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zmitchell","download_url":"https://codeload.github.com/zmitchell/polarization/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250435118,"owners_count":21430220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jones-calculus","optics","physics","polarization","rust","simulations"],"created_at":"2024-11-10T07:21:39.637Z","updated_at":"2025-04-23T12:32:30.393Z","avatar_url":"https://github.com/zmitchell.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polarization\n[![Documentation](https://docs.rs/polarization/badge.svg)](https://docs.rs/polarization)\n[![Crates.io](https://img.shields.io/crates/v/polarization.svg)](https://crates.io/crates/polarization)\n![Licenses](https://img.shields.io/crates/l/polarization.svg)\n\nHave you ever wondered what would happen if you passed a linearly polarized beam\nthrough a quarter-wave plate at 46 degrees rather than 45 degrees relative to the\nfast axis of a quarter-wave plate? Who am I kidding, of course you have! This\nlibrary lets you pass a beam through several optical elements and see what comes\nout the other side.\n\nThe canonical methods for simulating the polarization of a beam are\n[Jones calculus](https://en.wikipedia.org/wiki/Jones_calculus) and\n[Mueller calculus](https://en.wikipedia.org/wiki/Mueller_calculus), but only Jones calculus\nis implemented at this point.\n\nCurrently there are several standard optical elements implemented, with support for reflections\nfrom surfaces (dielectric and metallic) coming in the near future.\n* Linear polarizer\n* Polarization rotator\n* Quarter-wave plate\n* Half-wave plate\n* Retarder\n\nThere is support for linearly polarized, circularly polarized, and arbitrarily\n(elliptically) polarized beams.\n\nFor more details, check out the [documentation](https://docs.rs/polarization).\n\n## Example\n```rust\nlet beam = Beam::linear(Angle::Degrees(0.0));\nlet pol = OpticalElement::Polarizer(Polarizer::new(Angle::Degrees(45.0)));\nlet system = OpticalSystem::new()\n    .with_beam(beam)\n    .with_element(pol);\nlet final_beam: Result\u003cBeam\u003e = system.propagate();\nlet final_intensity: Result\u003cf64\u003e = final_beam.intensity();\n```\n\n## License\n\nLicensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmitchell%2Fpolarization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzmitchell%2Fpolarization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzmitchell%2Fpolarization/lists"}