geometry

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Measure

func Measure(g Geometry)

Types

type Circle

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

func (Circle) Area

func (c Circle) Area() float64

func (Circle) Perim

func (c Circle) Perim() float64

type Geometry

type Geometry interface {
	// contains filtered or unexported methods
}

type Rect

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

func (Rect) Area

func (r Rect) Area() float64

func (Rect) Perim

func (r Rect) Perim() float64

Jump to

Keyboard shortcuts

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