ebiten: github.com/hajimehoshi/ebiten/vector/internal/math Index | Files

package math

import "github.com/hajimehoshi/ebiten/vector/internal/math"

Index

Package Files

math.go

type Point Uses

type Point struct {
    X   float32
    Y   float32
}

type Segment Uses

type Segment struct {
    P0  Point
    P1  Point
}

func (Segment) IntersectionAsLines Uses

func (s Segment) IntersectionAsLines(other Segment) Point

func (Segment) Translate Uses

func (s Segment) Translate(offset float32) Segment

type Vec2 Uses

type Vec2 struct {
    X   float32
    Y   float32
}

func (Vec2) Cross Uses

func (p Vec2) Cross(other Vec2) float32

Package math imports 1 packages (graph) and is imported by 1 packages. Updated 2019-04-14. Refresh now. Tools for package owners.