Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateRotationAngle ¶ added in v0.1.3
已知两点在两平面坐标系中的坐标,求坐标系夹角,A旋转到B的度数,逆时针>0 CalculateRotationAngle
func IsPointInRectangle ¶ added in v0.1.9
图片就是第四象限,角度90+θ
func NormalizeAngleDegrees ¶ added in v0.1.9
func RectangleCorners ¶ added in v0.1.12
Types ¶
type Point ¶
Point 结构体用于表示一个点
func RandomPoint ¶ added in v0.1.9
func RotatePoint ¶ added in v0.1.9
RotatePoint 计算点 (x, y) 绕点 (centerX, centerY) 旋转 angle 度后的新坐标
func TransformPointByOnePointAndRotationAngle ¶ added in v0.1.3
TransformPointByOnePointAndRotationAngle transforms a point from coordinate system a2 to a1 在数学和计算机图形学中,旋转角度的正负通常遵循右手定则。默认情况下,顺时针方向被认为是负的,而逆时针方向被认为是正的。 O2相对于O1旋转度数
Click to show internal directories.
Click to hide internal directories.