C# Class Engineer.Tools

显示文件 Open project: CYBUTEK/Engineer

Public Methods

Method Description
FormatNumber ( double number, int decimals = -1 ) : string
FormatNumber ( double number, string postfix, int decimals = -1 ) : string
FormatSI ( double number, SIUnitType type ) : string
FormatTime ( double seconds ) : string
GetSlopeAngleAndHeading ( Vessel vessel, string &result ) : void

Private Methods

Method Description
ToDistance ( double value, bool showNotation = true ) : string

Method Details

FormatNumber() public static method

public static FormatNumber ( double number, int decimals = -1 ) : string
number double
decimals int
return string

FormatNumber() public static method

public static FormatNumber ( double number, string postfix, int decimals = -1 ) : string
number double
postfix string
decimals int
return string

FormatSI() public static method

public static FormatSI ( double number, SIUnitType type ) : string
number double
type SIUnitType
return string

FormatTime() public static method

public static FormatTime ( double seconds ) : string
seconds double
return string

GetSlopeAngleAndHeading() public static method

public static GetSlopeAngleAndHeading ( Vessel vessel, string &result ) : void
vessel Vessel
result string
return void