primitives

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package primitives contains basic spatial types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point = [2]float64

Point represents a 2D point.

type Rect

type Rect struct {
	Min, Max Point
}

Rect represents a bounding rectangle.

func NewRect

func NewRect(minPoint Point, width, height float64) (*Rect, error)

Jump to

Keyboard shortcuts

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