Documentation ¶
Index ¶
- Constants
- 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
- type 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
- 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
- type 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
Constants ¶
View Source
const FLT_EPSILON float64 = 1.19209290e-07
FLT_EPSILON is the C++ FLT_EPSILON epsilon constant
Variables ¶
This section is empty.
Functions ¶
func GetProjectionRadius ¶
Types ¶
type RotatedRect ¶
func ApplyGeoForRotatedRect ¶
func ApplyGeoForRotatedRect(rect image.Rectangle, op *ebiten.GeoM) *RotatedRect
func NewRotatedRect ¶
func NewRotatedRect() (rcvr *RotatedRect)
func NewRotatedRect1 ¶
func NewRotatedRect1(r *Rect) (rcvr *RotatedRect)
func NewRotatedRect2 ¶
func NewRotatedRect2(c *Vector2, s *Size, a float64) (rcvr *RotatedRect)
func NewRotatedRect3 ¶
func NewRotatedRect3(v1 *Vector2, v2 *Vector2, v3 *Vector2) (rcvr *RotatedRect)
func (*RotatedRect) BoundingRect ¶
func (rcvr *RotatedRect) BoundingRect() *Rect
func (*RotatedRect) Clone ¶
func (rcvr *RotatedRect) Clone() *RotatedRect
func (*RotatedRect) Contains ¶
func (rcvr *RotatedRect) Contains(v *Vector2) bool
func (*RotatedRect) Equals ¶
func (rcvr *RotatedRect) Equals(obj interface{}) bool
func (*RotatedRect) IsCollision ¶
func (rcvr *RotatedRect) IsCollision(other *RotatedRect) bool
func (*RotatedRect) Points ¶
func (rcvr *RotatedRect) Points() []*Vector2
func (*RotatedRect) String ¶
func (rcvr *RotatedRect) String() string
type Vector2 ¶
func ApplyGeoForVector2 ¶
func NewVector2 ¶
func NewVector2Zero ¶
func NewVector2Zero() *Vector2
func (*Vector2) LengthSquared ¶
Click to show internal directories.
Click to hide internal directories.