From af3d93bf34c3623a907df653e4f403451c0c58a3 Mon Sep 17 00:00:00 2001 From: Anicka Burova Date: Mon, 22 Jun 2020 09:55:03 +0200 Subject: [PATCH] Added foot-candle unit to luminance --- src/si/luminance.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/si/luminance.rs b/src/si/luminance.rs index fe06dfe1..37b21624 100644 --- a/src/si/luminance.rs +++ b/src/si/luminance.rs @@ -78,6 +78,8 @@ quantity! { @candela_per_square_inch: 1.550_003_100_006_200_2_E3; "cd/in²", "candela per square inch", "candelas per square inch"; + @candela_per_square_foot: 1.076_391_041_670_972_2_E1; "cd/ft²", "candela per square foot", + "candelas per square foot"; @footlambert: 3.426_259_099_635_390_5_E0; "fl", "footlambert", "footlamberts"; @lambert: 3.183_098_861_837_906_7_E3; "la", "lambert", "lamberts"; @stilb: 1.0_E4; "sb", "stilb", "stilbs"; @@ -135,6 +137,7 @@ mod test { test::(); test::(); + test::(); fn test, A: a::Conversion, L: l::Conversion>() { Test::assert_approx_eq(&Luminance::new::(V::one()),