math

package
v1.10.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Point

type Point struct {
	X float32
	Y float32
}

type Segment

type Segment struct {
	P0 Point
	P1 Point
}

func (Segment) IntersectionAsLines

func (s Segment) IntersectionAsLines(other Segment) Point

func (Segment) Translate

func (s Segment) Translate(offset float32) Segment

type Vec2

type Vec2 struct {
	X float32
	Y float32
}

func (Vec2) Cross

func (p Vec2) Cross(other Vec2) float32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL