pub struct PointLightSource {
pub x: f32,
pub y: f32,
pub z: f32,
}Expand description
Point light source at a specific 3D position.
Light radiates uniformly in all directions from a single point. Intensity decreases with distance. Like a light bulb.
Fields§
§x: f32§y: f32§z: f32Trait Implementations§
Source§impl Clone for PointLightSource
impl Clone for PointLightSource
Source§fn clone(&self) -> PointLightSource
fn clone(&self) -> PointLightSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PointLightSource
impl Debug for PointLightSource
Source§impl PartialEq for PointLightSource
impl PartialEq for PointLightSource
impl StructuralPartialEq for PointLightSource
Auto Trait Implementations§
impl Freeze for PointLightSource
impl RefUnwindSafe for PointLightSource
impl Send for PointLightSource
impl Sync for PointLightSource
impl Unpin for PointLightSource
impl UnsafeUnpin for PointLightSource
impl UnwindSafe for PointLightSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more