C# Class UnitClassLibrary.Unit

Afficher le fichier Open project: ParagonTruss/UnitClassLibrary Class Usage Examples

Méthodes publiques

Méthode Description
ConversionFromThisTo ( IUnitType unit ) : double
Divide ( double divisor ) : Unit
IsNegative ( ) : bool
IsPositive ( ) : bool
MeasurementIn ( IUnitType unitType ) : Measurement
Multiply ( double scalar ) : Unit
ValueIn ( IUnitType unitType ) : double
operator ( ) : Unit
operator ( ) : bool

Méthodes protégées

Méthode Description
_HaveTheSameDimensions ( Unit unit1, Unit unit2 ) : bool
_ValuesAreEqual ( Unit unit1, Unit unit2 ) : bool

Method Details

ConversionFromThisTo() public méthode

public ConversionFromThisTo ( IUnitType unit ) : double
unit IUnitType
Résultat double

Divide() public abstract méthode

public abstract Divide ( double divisor ) : Unit
divisor double
Résultat Unit

IsNegative() public méthode

public IsNegative ( ) : bool
Résultat bool

IsPositive() public méthode

public IsPositive ( ) : bool
Résultat bool

MeasurementIn() public méthode

public MeasurementIn ( IUnitType unitType ) : Measurement
unitType IUnitType
Résultat Measurement

Multiply() public abstract méthode

public abstract Multiply ( double scalar ) : Unit
scalar double
Résultat Unit

ValueIn() public méthode

public ValueIn ( IUnitType unitType ) : double
unitType IUnitType
Résultat double

_HaveTheSameDimensions() protected static méthode

protected static _HaveTheSameDimensions ( Unit unit1, Unit unit2 ) : bool
unit1 Unit
unit2 Unit
Résultat bool

_ValuesAreEqual() protected static méthode

protected static _ValuesAreEqual ( Unit unit1, Unit unit2 ) : bool
unit1 Unit
unit2 Unit
Résultat bool

operator() public static méthode

public static operator ( ) : Unit
Résultat Unit

operator() public static méthode

public static operator ( ) : bool
Résultat bool