derive(Clone,Default,Debug) for Photon
This commit is contained in:
parent
bc69ca04a8
commit
93e76fc5ea
|
|
@ -1,4 +1,5 @@
|
||||||
/// A quantum of light with a given wavelength and intensity
|
/// A quantum of light with a given wavelength and intensity
|
||||||
|
#[derive(Clone, Default, Debug)]
|
||||||
pub struct Photon {
|
pub struct Photon {
|
||||||
/// The wavelength in nanometres
|
/// The wavelength in nanometres
|
||||||
pub wavelength: f64,
|
pub wavelength: f64,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue