geometry

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point[T constraintsi.Number] struct {
	X T
	Y T
}

两个原点不重合的坐标系O1,O2,均为x轴向右,y轴向下。O2在O1内部,且经过顺时针旋转c度。其中的点分别用(x1,y1),(x2,y2)表示,已知某个点在两个坐标系中的坐标(x1,y1),(x2,y2),以及另一点在O2内的坐标(x2,y2),求该点在O1内的坐标(x1,y1) ------------------------------ | 、 | / 、 | / 、 | / 、 | / | | Point 结构体用于表示一个点

type Point3D added in v0.3.0

type Point3D[T constraintsi.Number] struct {
	X T
	Y T
	Z T
}

type Rectangle

type Rectangle[T constraintsi.Number] struct {
	Center Point[T]
	Width  T
	Height T
	Angle  float64
}

func NewRect added in v0.3.2

func NewRect[T constraintsi.Number](center Point[T], width, height T, angle float64) *Rectangle[T]

Jump to

Keyboard shortcuts

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