measurer

package
v0.0.0-...-169bdd1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

package measurer gathers all codes related to distance evaluation. --

Copyright (C) 2020 by Rafael Santiago

Use of this source code is governed by GPL-v2 license that can be found in the COPYING file.

package measurer gathers all codes related to distance evaluation. --

Copyright (C) 2020 by Rafael Santiago

Use of this source code is governed by GPL-v2 license that can be found in the COPYING file.

package measurer gathers all codes related to distance evaluation. --

Copyright (C) 2020 by Rafael Santiago

Use of this source code is governed by GPL-v2 license that can be found in the COPYING file.

package measurer gathers all codes related to distance evaluation. --

Copyright (C) 2020 by Rafael Santiago

Use of this source code is governed by GPL-v2 license that can be found in the COPYING file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KMCodeStat

type KMCodeStat ruler.CodeStat

Expresses CodeStat measures in meters.

func (*KMCodeStat) Calibrate

func (km *KMCodeStat) Calibrate(data interface{})

Calibrates data from a known struct.

func (*KMCodeStat) DistancePerFile

func (km *KMCodeStat) DistancePerFile(filename string) float64

Returns the total distance (in km) of a specific previous loaded file.

func (*KMCodeStat) DistancePerLine

func (km *KMCodeStat) DistancePerLine() float64

Returns in km the width of a entire filled line.

func (*KMCodeStat) DistancePerPage

func (km *KMCodeStat) DistancePerPage() float64

Returns in km the distance of a entire filled page.

func (*KMCodeStat) TotalDistance

func (km *KMCodeStat) TotalDistance() float64

Returns the total distance (in km) of all loaded codes.

type MCodeStat

type MCodeStat ruler.CodeStat

Expresses CodeStat measures in meters.

func (*MCodeStat) Calibrate

func (m *MCodeStat) Calibrate(data interface{})

Calibrates data from a known struct.

func (*MCodeStat) DistancePerFile

func (m *MCodeStat) DistancePerFile(filename string) float64

Returns the total distance (in m) of a specific previous loaded file.

func (*MCodeStat) DistancePerLine

func (m *MCodeStat) DistancePerLine() float64

Returns in m the width of a entire filled line.

func (*MCodeStat) DistancePerPage

func (m *MCodeStat) DistancePerPage() float64

Returns in m the distance of a entire filled page.

func (*MCodeStat) TotalDistance

func (m *MCodeStat) TotalDistance() float64

Returns the total distance (in m) of all loaded codes.

type MICodeStat

type MICodeStat ruler.CodeStat

Expresses CodeStat measures in miles.

func (*MICodeStat) Calibrate

func (mi *MICodeStat) Calibrate(data interface{})

Calibrates data from a known struct.

func (*MICodeStat) DistancePerFile

func (mi *MICodeStat) DistancePerFile(filename string) float64

Returns the total distance (in mi) of a specific previous loaded file.

func (*MICodeStat) DistancePerLine

func (mi *MICodeStat) DistancePerLine() float64

Returns in mi the width of a entire filled line.

func (*MICodeStat) DistancePerPage

func (mi *MICodeStat) DistancePerPage() float64

Returns in mi the distance of a entire filled page.

func (*MICodeStat) TotalDistance

func (mi *MICodeStat) TotalDistance() float64

Returns the total distance (in mi) of all loaded codes.

type MMCodeStat

type MMCodeStat ruler.CodeStat

Expresses CodeStat measures in millimiters.

func (*MMCodeStat) Calibrate

func (mm *MMCodeStat) Calibrate(data interface{})

Calibrates basic measurements from a known passed struct.

func (*MMCodeStat) DistancePerFile

func (mm *MMCodeStat) DistancePerFile(filename string) float64

Returns the total distance (in mm) of a specific previous loaded file.

func (*MMCodeStat) DistancePerLine

func (mm *MMCodeStat) DistancePerLine() float64

Returns in mm the width of a entire filled line.

func (*MMCodeStat) DistancePerPage

func (mm *MMCodeStat) DistancePerPage() float64

Returns in mm the distance of a entire filled page.

func (*MMCodeStat) TotalDistance

func (mm *MMCodeStat) TotalDistance() float64

Returns the total distance (in mm) of all loaded codes.

Jump to

Keyboard shortcuts

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