flops

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

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

Go to latest
Published: Jul 25, 2017 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package flops defines a bunch of floating point comparison operations. Used for robust geometrical tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eq

func Eq(a, b float32) bool

Eq returns true if the floats are approximatelly equal.

func Ge

func Ge(a, b float32) bool

Ge returns true if a is greater than or equal to b. Even if a>b would return true they could in fact be equal.

func Gez

func Gez(a float32) bool

Gez returns true if a is greater than or equal to zero.

func Gt

func Gt(a, b float32) bool

Gt returns true if a is strictly greater than b. Even if a>b would return true they could in fact be equal.

func Gtz

func Gtz(a float32) bool

Gtz returns true if a is strictly greater than zero.

func Le

func Le(a, b float32) bool

Le returns true if a is less than or equal to b. Even if a<b would return true they could in fact be equal.

func Lez

func Lez(a float32) bool

Lez returns true if a is less than or equal to zero.

func Lt

func Lt(a, b float32) bool

Lt returns true if a is strictly less than b. Even if a<b would return true they could in fact be equal.

func Ltz

func Ltz(a float32) bool

Ltz returns true if a is strictly less than b.zero.

func Ne

func Ne(a, b float32) bool

Ne returns true if the floats are not approximately equal

func Nz

func Nz(a float32) bool

Nz returns true if a is not roughly equal to zero.

func Z

func Z(a float32) bool

Z returns true if a is roughly equal to zero.

Types

This section is empty.

Jump to

Keyboard shortcuts

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