units

package module
v0.0.0-...-9039f3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Area

type Area float64

type Force

type Force interface {
	Newton | Kilonewton
}

type Gram

type Gram float64

func (Gram) String

func (g Gram) String() string

func (Gram) ToKilogram

func (g Gram) ToKilogram() Kilogram

func (Gram) ToTonne

func (g Gram) ToTonne() Tonne

type Kilogram

type Kilogram float64

func (Kilogram) String

func (kg Kilogram) String() string

func (Kilogram) ToGram

func (kg Kilogram) ToGram() Gram

func (Kilogram) ToTonne

func (kg Kilogram) ToTonne() Tonne

type Kilonewton

type Kilonewton float64

func (Kilonewton) String

func (kN Kilonewton) String() string

func (Kilonewton) ToNewton

func (kN Kilonewton) ToNewton() Newton

type Length

type Length interface {
	Metre | Millimetre
}

type Mass

type Mass interface {
	Gram | Kilogram | Tonne
}

type Metre

type Metre float64

func (Metre) String

func (m Metre) String() string

func (Metre) ToMillimetre

func (m Metre) ToMillimetre() Millimetre

type Millimetre

type Millimetre float64

func (Millimetre) String

func (m Millimetre) String() string

func (Millimetre) ToMetre

func (mm Millimetre) ToMetre() Metre

type Newton

type Newton float64

func (Newton) String

func (N Newton) String() string

func (Newton) ToKilonewton

func (N Newton) ToKilonewton() Kilonewton

type Perimeter

type Perimeter float64

type RadiusOfGyration

type RadiusOfGyration struct {
	XX, YY float64
}

type SecondMomentOfArea

type SecondMomentOfArea struct {
	XX, YY float64
}

type SurfaceArea

type SurfaceArea float64

type Tonne

type Tonne float64

func (Tonne) String

func (t Tonne) String() string

func (Tonne) ToGram

func (t Tonne) ToGram() Gram

func (Tonne) ToKilogram

func (t Tonne) ToKilogram() Kilogram

type Volume

type Volume float64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL