Class Units
- Namespace
- KSP
- Assembly
- Assembly-CSharp.dll
- Inheritance
-
Units
- Inherited Members
-
- Extension Methods
-
Constructors
Units()
Fields
TonnesToGrams
public static double TonnesToGrams
Field Value
- double
Properties
DefaultUnitCulture
public static CultureInfo DefaultUnitCulture { get; }
Property Value
- CultureInfo
SymbolDays
public static string SymbolDays { get; }
Property Value
- string
SymbolDegree
public static string SymbolDegree { get; }
Property Value
- string
SymbolElectricChargePerSecond
public static string SymbolElectricChargePerSecond { get; }
Property Value
- string
SymbolGrams
public static string SymbolGrams { get; }
Property Value
- string
SymbolGramsPerSecond
public static string SymbolGramsPerSecond { get; }
Property Value
- string
SymbolHours
public static string SymbolHours { get; }
Property Value
- string
SymbolKelvin
public static string SymbolKelvin { get; }
Property Value
- string
SymbolKiloNewtons
public static string SymbolKiloNewtons { get; }
Property Value
- string
SymbolKiloNewtonsSecond
public static string SymbolKiloNewtonsSecond { get; }
Property Value
- string
SymbolKiloWatt
public static string SymbolKiloWatt { get; }
Property Value
- string
SymbolKilogramPerMeterCubed
public static string SymbolKilogramPerMeterCubed { get; }
Property Value
- string
SymbolMeters
public static string SymbolMeters { get; }
Property Value
- string
SymbolMetersPerSecond
public static string SymbolMetersPerSecond { get; }
Property Value
- string
SymbolMetersPerSecondSquared
public static string SymbolMetersPerSecondSquared { get; }
Property Value
- string
public static string SymbolMetersSquared { get; }
Property Value
- string
SymbolMinutes
public static string SymbolMinutes { get; }
Property Value
- string
SymbolPascal
public static string SymbolPascal { get; }
Property Value
- string
SymbolSeconds
public static string SymbolSeconds { get; }
Property Value
- string
SymbolTonne
public static string SymbolTonne { get; }
Property Value
- string
SymbolUnits
public static string SymbolUnits { get; }
Property Value
- string
SymbolWatt
public static string SymbolWatt { get; }
Property Value
- string
TextDays
public static string TextDays { get; }
Property Value
- string
TextDegree
public static string TextDegree { get; }
Property Value
- string
TextElectricChargePerSecond
public static string TextElectricChargePerSecond { get; }
Property Value
- string
TextGrams
public static string TextGrams { get; }
Property Value
- string
TextGramsPerSecond
public static string TextGramsPerSecond { get; }
Property Value
- string
TextHours
public static string TextHours { get; }
Property Value
- string
TextKelvin
public static string TextKelvin { get; }
Property Value
- string
TextKiloNewtons
public static string TextKiloNewtons { get; }
Property Value
- string
TextKiloNewtonsSecond
public static string TextKiloNewtonsSecond { get; }
Property Value
- string
TextKiloWatt
public static string TextKiloWatt { get; }
Property Value
- string
TextKilogramPerMeterCubed
public static string TextKilogramPerMeterCubed { get; }
Property Value
- string
TextMeters
public static string TextMeters { get; }
Property Value
- string
TextMetersPerSecond
public static string TextMetersPerSecond { get; }
Property Value
- string
TextMetersPerSecondSquared
public static string TextMetersPerSecondSquared { get; }
Property Value
- string
public static string TextMetersSquared { get; }
Property Value
- string
TextMinutes
public static string TextMinutes { get; }
Property Value
- string
TextPascal
public static string TextPascal { get; }
Property Value
- string
TextSeconds
public static string TextSeconds { get; }
Property Value
- string
TextTonne
public static string TextTonne { get; }
Property Value
- string
TextUnits
public static string TextUnits { get; }
Property Value
- string
TextWatt
public static string TextWatt { get; }
Property Value
- string
Methods
EmitGlossary()
public List<Tuple<string, string>> EmitGlossary()
Returns
- List<Tuple<string, string>>
FindSIExponent(double)
public static int FindSIExponent(double amount)
Parameters
amount double
Returns
- int
ParseDouble(string)
public static double ParseDouble(string toParse)
Parameters
toParse string
Returns
- double
public static string PrintFormattedRate(double rate, string units, double rateSecondsMin = 0.001, double rateMinutesMin = 0.001, double rateHoursMin = 0.001, int numDigits = 4)
Parameters
rate double
units string
rateSecondsMin double
rateMinutesMin double
rateHoursMin double
numDigits int
Returns
- string
PrintSI(double, string, int, bool, bool, bool, bool, int)
public static string PrintSI(double amount, string unitName, int significantFigures = 3, bool longPrefix = false, bool fullUnitName = false, bool showPrefix = true, bool useFixedExponent = false, int fixedExponent = 0)
Parameters
amount double
unitName string
significantFigures int
longPrefix bool
fullUnitName bool
showPrefix bool
useFixedExponent bool
fixedExponent int
Returns
- string