Maths.Constant

References
public sealed class Maths.Constant
A constant, named value registered with the centralised Maths.Constants repo.

Constructors

Constant

#
public Constant(Nomen nomen, IIcon icon, IPear value)
Create a new constant.
nomen (Nomen)Descriptor of constant.
icon (IIcon)Icon of constant.
value (IPear)Value, this should really be an immutable type as it will be shared with all manner of code.

Constant

#
public Constant(Nomen nomen, IIcon icon, object value, string symbol = null, string unit = null)
Create a new constant.
nomen (Nomen)Descriptor of constant.
icon (IIcon)Icon of constant.
value (object)Value, this should really be an immutable type as it will be shared with all manner of code.
symbol (string = null)Symbol associates with constant.
unit (string = null)Unit (if any) for constant.

Properties

Icon

#
public IIcon Icon { get; }
Gets the icon associated with this constant.

Nomen

#
public Nomen Nomen { get; }
Gets the classification and description of this constant.

Value

#
public IPear Value { get; }
Gets the value of the constant.