1 package org.djunits.unit;
2
3 import org.djunits.unit.quantity.Quantity;
4 import org.djunits.unit.scale.IdentityScale;
5 import org.djunits.unit.si.SIPrefixes;
6 import org.djunits.unit.unitsystem.UnitSystem;
7
8
9
10
11
12
13
14
15
16 public class SolidAngleUnit extends Unit<SolidAngleUnit>
17 {
18
19 private static final long serialVersionUID = 20140607L;
20
21
22 public static final Quantity<SolidAngleUnit> BASE = new Quantity<>("SolidAngle", "sr");
23
24
25 public static final SolidAngleUnit SI =
26 new SolidAngleUnit().build(new Unit.Builder<SolidAngleUnit>().setQuantity(BASE).setId("sr").setName("steradian")
27 .setUnitSystem(UnitSystem.SI_DERIVED).setSiPrefixes(SIPrefixes.NONE, 1.0).setScale(IdentityScale.SCALE));
28
29
30 public static final SolidAngleUnit STERADIAN = SI;
31
32
33 public static final SolidAngleUnit SQUARE_DEGREE =
34 STERADIAN.deriveLinear((Math.PI / 180.0) * (Math.PI / 180.0), "sq.deg", "square degree");
35
36 }