pub enum PhotometricType {
TypeA = 3,
TypeB = 2,
TypeC = 1,
}Expand description
Photometric measurement type.
§Coordinate System Differences
- Type C: Vertical polar axis (0° = nadir, 180° = zenith). Standard for downlights, streetlights.
- Type B: Horizontal polar axis (0H 0V = beam center). Used for floodlights, sports lighting.
- ⚠️ TODO: Implement 90° coordinate rotation for Type B → Type C conversion
- Required transformation matrix: R_x(90°) to align horizontal axis to vertical
- Type A: Automotive coordinates. Rare in architectural lighting.
- Currently parsed but may render incorrectly without coordinate mapping
Variants§
TypeA = 3
Type A - Automotive photometry (rare)
TypeB = 2
Type B - Adjustable luminaires (floodlights, theatrical)
TypeC = 1
Type C - Architectural (most common)
Implementations§
Trait Implementations§
Source§impl Clone for PhotometricType
impl Clone for PhotometricType
Source§fn clone(&self) -> PhotometricType
fn clone(&self) -> PhotometricType
Returns a duplicate of the value. Read more
1.0.0 · 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 PhotometricType
impl Debug for PhotometricType
Source§impl Default for PhotometricType
impl Default for PhotometricType
Source§fn default() -> PhotometricType
fn default() -> PhotometricType
Returns the “default value” for a type. Read more
Source§impl PartialEq for PhotometricType
impl PartialEq for PhotometricType
impl Copy for PhotometricType
impl Eq for PhotometricType
impl StructuralPartialEq for PhotometricType
Auto Trait Implementations§
impl Freeze for PhotometricType
impl RefUnwindSafe for PhotometricType
impl Send for PhotometricType
impl Sync for PhotometricType
impl Unpin for PhotometricType
impl UnsafeUnpin for PhotometricType
impl UnwindSafe for PhotometricType
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