Class Unit
Unit class
Represent measurement unit.
public class Unit : IdentifiableObject
Constructors
| Name | Description |
|---|
| Unit(string, double, Identifier) | Create new instance. |
Properties
| Name | Description |
|---|
| static Degree { get; } | Get Unit that represents degrees. |
| static Meter { get; } | Get Unit that represents meters. |
| static Radian { get; } | Get Unit that represents radians. |
| EpsgCode { get; } | If this objects identifier is EPSG identifier - return its code. Otherwise - return -1. |
| Factor { get; } | Factor to meter, if this is length unit, factor to radian, if this is angle unit. |
| Identifier { get; } | Identifier of this identifiable object. |
| Name { get; } | Name of this object. |
Methods
| Name | Description |
|---|
| Apply(double) | Converts argument to unit, described by this instance. |
| Deapply(double) | Converts argument from unit, described by this instance, to radians or meters. |
| override ToString() | Returns a string that represents the current object. |
See Also