C# Class YAMP.Physics.ConversionUnit

Used for conversions from one unit to another.
Inheritance: PhysicalUnit
ファイルを表示 Open project: FlorianRappl/YAMP

Public Methods

Method Description
ConversionUnit ( String name, PhysicalUnit from ) : System
GetConversion ( String unit ) : Double>.Func
GetInverseConversion ( String unit ) : Double>.Func
HasConversion ( String target ) : System.Boolean

Protected Methods

Method Description
Create ( ) : PhysicalUnit

Method Details

ConversionUnit() public method

public ConversionUnit ( String name, PhysicalUnit from ) : System
name String
from PhysicalUnit
return System

Create() protected method

protected Create ( ) : PhysicalUnit
return PhysicalUnit

GetConversion() public method

public GetConversion ( String unit ) : Double>.Func
unit String
return Double>.Func

GetInverseConversion() public method

public GetInverseConversion ( String unit ) : Double>.Func
unit String
return Double>.Func

HasConversion() public method

public HasConversion ( String target ) : System.Boolean
target String
return System.Boolean