geometry

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2025 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AngleBetweenThreeCartesianPoints

func AngleBetweenThreeCartesianPoints(x1, y1, x2, y2, x3, y3 float64) (float64, error)

func CompareInvariantFeatures

func CompareInvariantFeatures(f1, f2 InvariantFeatures, tolerance InvariantFeatureTolerance) bool

func DistanceBetweenTwoCartesianPoints

func DistanceBetweenTwoCartesianPoints(x1, y1, x2, y2 float64) float64

Types

type InvariantFeatureTolerance

type InvariantFeatureTolerance struct {
	LengthRatio float64 // e.g., 0.01 for 1% difference
	Angle       float64 // e.g., 0.5 for 0.5 degrees difference
}

type InvariantFeatures

type InvariantFeatures struct {
	RatioAB float64
	RatioAC float64
	AngleA  float64
	AngleB  float64
}

func ComputeInvariantFeatures

func ComputeInvariantFeatures(x1, y1, x2, y2, x3, y3 float64) (InvariantFeatures, error)

Jump to

Keyboard shortcuts

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