point

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point [4]int16

Point describes a 4-dimensional lattice point.

func Parse

func Parse(s string) (Point, error)

Parse attempts to convert the given string to a point. The string is expected to be in the format

[ c1, c2, c3, c4 ]

where the white-space is optional and flexible.

func (Point) String

func (pt Point) String() string

String returns a string description of the point. The string is formatted:

[c1,c2,c3,c4]

type Points

type Points []Point

Points is a slice of points.

func ParsePoints

func ParsePoints(s string) (Points, error)

ParsePoints attempts to convert the given string to a slice of points. The string is expected to be in the format

[ [ c1, c2, c3, c4 ], ... ]

where the white-space is optional and flexible.

func (Points) String

func (pts Points) String() string

String returns a string description of the points. The string is formatted:

[[c1,c2,c3,c4],...]

Jump to

Keyboard shortcuts

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