Versions in this module Expand all Collapse all v0 v0.0.2 May 17, 2025 Changes in this version type Point + func (p Point[S]) DivPoint(q Point[S]) Point[S] + func (p Point[S]) MulPoint(q Point[S]) Point[S] type Rect + func (r Rect[S]) Within(s Rect[S], rx, ry float64) Rect[S] v0.0.1 May 16, 2025 Changes in this version + type Point struct + X S + Y S + func Xy[S ng.Scalar](x, y S) Point[S] + func (p Point[S]) Add(q Point[S]) Point[S] + func (p Point[S]) Align(r Rect[S], rx, ry float64) Rect[S] + func (p Point[S]) AlignCenter(r Rect[S]) Rect[S] + func (p Point[S]) AsSize() Rect[S] + func (p Point[S]) Div(k S) Point[S] + func (p Point[S]) Eq(q Point[S]) bool + func (p Point[S]) Float32() Point[float32] + func (p Point[S]) Float64() Point[float64] + func (p Point[S]) Image() image.Point + func (p Point[S]) In(r Rect[S]) bool + func (p Point[S]) Int() Point[int] + func (p Point[S]) Mul(k S) Point[S] + func (p Point[S]) String() string + func (p Point[S]) Sub(q Point[S]) Point[S] + func (p Point[S]) Xy() (S, S) + type Rect struct + Max Point[S] + Min Point[S] + func MinMax[S ng.Scalar, P ng.Vec2like[S]](min, max P) Rect[S] + func PosSize[S ng.Scalar, P ng.Vec2like[S]](pos, size P) Rect[S] + func Xywh[S ng.Scalar](x, y, w, h S) Rect[S] + func Xyxy[S ng.Scalar](x0, y0, x1, y1 S) Rect[S] + func (r Rect[S]) Add(p Point[S]) Rect[S] + func (r Rect[S]) Anchor(rx, ry float64) Point[S] + func (r Rect[S]) Canon() Rect[S] + func (r Rect[S]) Center() Point[S] + func (r Rect[S]) CutX(w S) (got, rest Rect[S]) + func (r Rect[S]) CutXRate(rate float64) (Rect[S], Rect[S]) + func (r Rect[S]) CutY(h S) (got, rest Rect[S]) + func (r Rect[S]) CutYRate(rate float64) (Rect[S], Rect[S]) + func (r Rect[S]) Dx() S + func (r Rect[S]) Dy() S + func (r Rect[S]) Empty() bool + func (r Rect[S]) Eq(s Rect[S]) bool + func (r Rect[S]) Image() image.Rectangle + func (r Rect[S]) In(s Rect[S]) bool + func (r Rect[S]) Inset(n S) Rect[S] + func (r Rect[S]) Inset2(x, y S) Rect[S] + func (r Rect[S]) Inset4(left, top, right, bottom S) Rect[S] + func (r Rect[S]) Intersect(s Rect[S]) Rect[S] + func (r Rect[S]) Overlaps(s Rect[S]) bool + func (r Rect[S]) Points() iter.Seq[Point[S]] + func (r Rect[S]) RepeatX(n int, gap S) ([]Rect[S], Rect[S]) + func (r Rect[S]) RepeatY(n int, gap S) ([]Rect[S], Rect[S]) + func (r Rect[S]) Size() Point[S] + func (r Rect[S]) SplitX(n int, gap S) []Rect[S] + func (r Rect[S]) SplitY(n int, gap S) []Rect[S] + func (r Rect[S]) String() string + func (r Rect[S]) Sub(p Point[S]) Rect[S] + func (r Rect[S]) Union(s Rect[S]) Rect[S]