-
-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(units): add coherent(), update unit defs
- Loading branch information
1 parent
22031e6
commit d2f7608
Showing
8 changed files
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { sr } from "./angle.js"; | ||
import { m2 } from "./area.js"; | ||
import { defUnit, div, mul, unit } from "./unit.js"; | ||
import { coherent, defUnit, div, mul } from "./unit.js"; | ||
|
||
export const cd = defUnit("cd", "candela", unit(6, 1, 0, true)); | ||
export const cd = defUnit("cd", "candela", coherent(6)); | ||
|
||
export const lm = defUnit("lm", "lumen", mul(cd, sr)); | ||
export const lx = defUnit("lx", "lux", div(lm, m2)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { defUnit, unit } from "./unit.js"; | ||
import { coherent, defUnit } from "./unit.js"; | ||
|
||
export const mol = defUnit("mol", "mole", unit(5, 1, 0, true)); | ||
export const mol = defUnit("mol", "mole", coherent(5)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters