geometry

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateRotationAngle added in v0.1.3

func CalculateRotationAngle(pA, pB, qA, qB Point) float64

已知两点在两平面坐标系中的坐标,求坐标系夹角,A旋转到B的度数,逆时针>0 CalculateRotationAngle

Types

type Point

type Point struct {
	X float64
	Y float64
}

Point 结构体用于表示一个点

func TransformPointByOnePointAndRotationAngle added in v0.1.3

func TransformPointByOnePointAndRotationAngle(pA, qA, qB Point, angleDeg float64) (pB Point)

TransformPointByOnePointAndRotationAngle transforms a point from coordinate system a2 to a1 在数学和计算机图形学中,旋转角度的正负通常遵循右手定则。默认情况下,顺时针方向被认为是负的,而逆时针方向被认为是正的。 O2相对于O1旋转度数

type Rectangle

type Rectangle struct {
	Min, Max Point
}

func Rect

func Rect(x0, y0, x1, y1 float64) Rectangle

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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