angle

package
v0.0.0-...-9c88ebf Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2022 License: BSD-3-Clause Imports: 1 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rad

type Rad float64

Rad is angle in radians

func Acos

func Acos(x float64) Rad

Acos returns the arccosine in radians of x.

func Atan

func Atan(y, x float64) Rad

Atan returns the angle in radians formed by x and y.

func Deg

func Deg(d float64) Rad

Deg is angle in degrees

func Rot

func Rot(r float64) Rad

Rot is angle as percent of a rotation

func (Rad) Cos

func (r Rad) Cos() float64

Cos returns the cosine of the angle

func (Rad) Deg

func (r Rad) Deg() float64

Deg returns the angle as float64 reprenting degrees

func (Rad) Rad

func (r Rad) Rad() float64

Rad returns the angle as float64 reprenting radians

func (Rad) Rot

func (r Rad) Rot() float64

Rot returns the angle as float64 reprenting percent rotations

func (Rad) Sin

func (r Rad) Sin() float64

Sin returns the sine of the angle

func (Rad) Sincos

func (r Rad) Sincos() (float64, float64)

Sincos returns both the sine and cosine of the angle

Jump to

Keyboard shortcuts

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