pub struct PointLight {
pub position: EntityId,
pub radius: f64,
pub attenuation: Attenuation,
}Expand description
Where a light sits and how it falls off.
Position, radius and attenuation are not independent knobs: they
together describe one point emitter, and every entity carrying one
carries all three. Grouping them keeps the spot-light signature
honest rather than a seven-argument list where two adjacent f64
parameters invite transposition.
Fields§
§position: EntityIdPosition: an IfcCartesianPoint.
radius: f64Radius: a positive length.
attenuation: AttenuationThe three attenuation coefficients.
Trait Implementations§
Source§impl Clone for PointLight
impl Clone for PointLight
impl Copy for PointLight
Auto Trait Implementations§
impl Freeze for PointLight
impl RefUnwindSafe for PointLight
impl Send for PointLight
impl Sync for PointLight
impl Unpin for PointLight
impl UnsafeUnpin for PointLight
impl UnwindSafe for PointLight
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