C# Class RobustArithmetic.Test.Util.DoubleExtensions

Afficher le fichier Open project: govert/RobustGeometry.NET

Méthodes publiques

Méthode Description
BitWidth ( this d ) : int

Returns the width of the significand of d E.g. if d = -0100.01 it returns 5 CONSIDER: This takes into account the implicit leading 1 for normalised doubles. I'm still a bit confused about how to consider this.

IsInRange ( this d ) : bool
IsNumber ( this d ) : bool
IsPowerOfTwo ( this d ) : bool

Method Details

BitWidth() public static méthode

Returns the width of the significand of d E.g. if d = -0100.01 it returns 5 CONSIDER: This takes into account the implicit leading 1 for normalised doubles. I'm still a bit confused about how to consider this.
public static BitWidth ( this d ) : int
d this
Résultat int

IsInRange() public static méthode

public static IsInRange ( this d ) : bool
d this
Résultat bool

IsNumber() public static méthode

public static IsNumber ( this d ) : bool
d this
Résultat bool

IsPowerOfTwo() public static méthode

public static IsPowerOfTwo ( this d ) : bool
d this
Résultat bool