snap

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: LGPL-2.1 Imports: 3 Imported by: 0

Documentation

Overview

Package snap Snaps the vertices and segments of a Geometry's vertices to another Geometry's vertices. Snap two geometries together with a given tolerance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Snap

func Snap(g0, g1 matrix.Steric, snapTolerance float64) (snapGeom matrix.Collection)

Snap two geometries together with a given tolerance.

Types

type LineSnapper

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

LineSnapper ...

type Snapper

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

Snapper Snaps the vertices and segments of a Geometry to another Geometry's vertices.

func (*Snapper) SnapTo

func (s *Snapper) SnapTo(snapGeom matrix.Steric, snapTolerance float64) matrix.Steric

SnapTo Snaps the vertices in the component LineStrings of the source geometry to the vertices of the given snap geometry.

Jump to

Keyboard shortcuts

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