model

package
v0.0.0-...-67e434f Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature

type Feature struct {
	generated.Feature
}

type Message

type Message struct {
	generated.Message

	Feature Feature
}

type Point

type Point struct {
	Latitude  int32
	Longitude int32
}

func (Point) Distance

func (p Point) Distance(p2 Point) int32

func (Point) Equals

func (p Point) Equals(q Point) bool

func (Point) In

func (p Point) In(rect Rectangle) bool

func (Point) Serialize

func (p Point) Serialize() string

type Rectangle

type Rectangle struct {
	Hi Point
	Lo Point
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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