geometry

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Circle

type Circle struct {
	// contains filtered or unexported fields
}

func (*Circle) Area

func (c *Circle) Area(_ context.Context) (float64, error)

func (*Circle) Height

func (c *Circle) Height() float64

type Geometry

type Geometry interface {
	Area(context.Context) (float64, error)
	Height() float64
}

type TracedGeometry

type TracedGeometry struct {
	// contains filtered or unexported fields
}

TracedGeometry is a traced implementation of Geometry

func (*TracedGeometry) Area

func (t *TracedGeometry) Area(a0 context.Context) (float64, error)

func (*TracedGeometry) Height

func (t *TracedGeometry) Height() float64

Jump to

Keyboard shortcuts

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