Documentation ¶
Index ¶
- func Abs(x int) int
- func Clamp(a int, mi int, ma int) int
- func ClampF(a float64, mi float64, ma float64) float64
- func FindMinAndMax(a []int) (int, int)
- func FindMinAndMaxF(a []float64) (float64, float64)
- func IntersectBox(x0 int, y0 int, x1 int, y1 int, x2 int, y2 int, x3 int, y3 int) bool
- func IntersectBoxF(x0 float64, y0 float64, x1 float64, y1 float64, x2 float64, y2 float64, ...) bool
- func IntersectF(x1 float64, y1 float64, x2 float64, y2 float64, x3 float64, y3 float64, ...) (float64, float64)
- func IntersectFn(x1 float64, y1 float64, x2 float64, y2 float64, x3 float64, y3 float64, ...) (float64, float64, bool)
- func IntersectLineSegmentsF(x0 float64, y0 float64, x1 float64, y1 float64, x2 float64, y2 float64, ...) bool
- func Max(a int, b int) int
- func MaxF(a float64, b float64) float64
- func Min(a int, b int) int
- func MinF(a float64, b float64) float64
- func Overlap(a0 int, a1 int, b0 int, b1 int) bool
- func OverlapF(a0 float64, a1 float64, b0 float64, b1 float64) bool
- func PointSide(px int, py int, x0 int, y0 int, x1 int, y1 int) int
- func PointSideF(px float64, py float64, x0 float64, y0 float64, x1 float64, y1 float64) float64
- func Random(min int, max int) int
- func RandomF(min float64, max float64) float64
- func Swap(a int, b int) (int, int)
- func SwapF(a float64, b float64) (float64, float64)
- func Vxs(x0 int, y0 int, x1 int, y1 int) int
- func VxsF(x0 float64, y0 float64, x1 float64, y1 float64) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMinAndMax ¶
func FindMinAndMaxF ¶
func IntersectBox ¶
func IntersectBoxF ¶
func IntersectF ¶
func IntersectFn ¶
func IntersectLineSegmentsF ¶
func PointSideF ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.