Versions in this module Expand all Collapse all v1 v1.0.0 Mar 13, 2024 Changes in this version + const FLT_EPSILON + func Clamp(curr, min, max float64) float64 + func GetProjectionRadius(checkAxis, axis *Vector2) float64 + func IsCover(vp1p2 *Vector2, checkAxisRadius float64, deg float64, targetAxis1 *Vector2, ...) bool + type OBB struct + func NewOBB(centerPoint *Vector2, width, height, rotation float64) *OBB + type Rect struct + Height float64 + Width float64 + X float64 + Y float64 + func NewRect(x float64, y float64, width float64, height float64) (rc *Rect) + func NewRect2() (rc *Rect) + func NewRect3(p1 *Vector2, p2 *Vector2) (rc *Rect) + func NewRect4(p *Vector2, s *Size) (rc *Rect) + func (rc *Rect) Area() float64 + func (rc *Rect) Br() *Vector2 + func (rc *Rect) Clone() *Rect + func (rc *Rect) Contains(p *Vector2) bool + func (rc *Rect) Empty() bool + func (rc *Rect) Equals(obj interface{}) bool + func (rc *Rect) Intersect(dst *Rect) *Rect + func (rc *Rect) Size() *Size + func (rc *Rect) String() string + func (rc *Rect) Tl() *Vector2 + type RotatedRect struct + Angle float64 + Center *Vector2 + Size *Size + func ApplyGeoForRotatedRect(rect image.Rectangle, op *ebiten.GeoM) *RotatedRect + func NewRotatedRect() (rcvr *RotatedRect) + func NewRotatedRect1(r *Rect) (rcvr *RotatedRect) + func NewRotatedRect2(c *Vector2, s *Size, a float64) (rcvr *RotatedRect) + func NewRotatedRect3(v1 *Vector2, v2 *Vector2, v3 *Vector2) (rcvr *RotatedRect) + func (rcvr *RotatedRect) BoundingRect() *Rect + func (rcvr *RotatedRect) Clone() *RotatedRect + func (rcvr *RotatedRect) Contains(v *Vector2) bool + func (rcvr *RotatedRect) Equals(obj interface{}) bool + func (rcvr *RotatedRect) IsCollision(other *RotatedRect) bool + func (rcvr *RotatedRect) Points() []*Vector2 + func (rcvr *RotatedRect) String() string + type Size struct + Height float64 + Width float64 + func NewSize(width float64, height float64) (rcvr *Size) + func NewSize2() (rcvr *Size) + func NewSize3(p *Vector2) (rcvr *Size) + func NewSize4(vals []float64) (rcvr *Size) + func (rcvr *Size) Area() float64 + func (rcvr *Size) Clone() *Size + func (rcvr *Size) Empty() bool + func (rcvr *Size) Equals(obj interface{}) bool + func (rcvr *Size) Set(vals []float64) + func (rcvr *Size) String() string + type Vector2 struct + X float64 + Y float64 + func ApplyGeoForVector2(p *Vector2, op *ebiten.GeoM) *Vector2 + func NewVector2(x, y float64) *Vector2 + func NewVector2Zero() *Vector2 + func (this *Vector2) Add(otherVector *Vector2) *Vector2 + func (this *Vector2) Clone() *Vector2 + func (this *Vector2) Coords() (float64, float64) + func (this *Vector2) CopyFrom(source *Vector2) + func (this *Vector2) Cross(otherVector *Vector2) float64 + func (this *Vector2) Ddot(otherVector *Vector2) float64 + func (this *Vector2) Equals(otherVector *Vector2) bool + func (this *Vector2) Invert() *Vector2 + func (this *Vector2) Inverted() *Vector2 + func (this *Vector2) Length() float64 + func (this *Vector2) LengthSquared() float64 + func (this *Vector2) Lerp(end *Vector2, amount float64) *Vector2 + func (this *Vector2) Multiply(otherVector *Vector2) *Vector2 + func (this *Vector2) Normalize() + func (this *Vector2) Scale(scale float64) *Vector2 + func (this *Vector2) Set(x, y float64) + func (this *Vector2) String() string + func (this *Vector2) Sub(otherVector *Vector2) *Vector2