section6

package
v0.0.0-...-77bb2af Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Distance

func Distance(p, q Point) float64

常规函数

Types

type Counter

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

封装测试

func (*Counter) Increment

func (c *Counter) Increment()

func (*Counter) Reset

func (c *Counter) Reset()

func (*Counter) Value

func (c *Counter) Value() int

type Path

type Path []Point

func (Path) Distance

func (path Path) Distance() float64

type Point

type Point struct{ X, Y float64 }

func (Point) Distance

func (P Point) Distance(q Point) float64

Jump to

Keyboard shortcuts

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