polygon

package
v0.0.0-...-9c88ebf Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: BSD-3-Clause Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Polygon

type Polygon []d3.Pt

Polygon should be a set of coplanar points

func From2D

func From2D(poly2 d2polygon.Polygon, pln plane.Plane) Polygon

From2D takes a 2D polygon and a Plane and creates a 3D polygon.

func (Polygon) D2

D2 converts the polygon to a 2D polygon returning the polygon and the plane. If there are not at least 3 points or the points are not coplanar, an error is returned.

Jump to

Keyboard shortcuts

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