package
4.1.1
Repository: https://github.com/oakmound/oak.git
Documentation: pkg.go.dev

# Packages

Package floatgeom provides primitives for floating point geometry.
Package intgeom provides primitives for integer geometry.
Package span provides helper constructs to represent ranges of values, to poll from or clamp to.

# Functions

ChooseX - also known as Roulette Search.
CumulativeWeights converts a slice of weights into a slice of cumulative weights, where each index is the sum of all weights following that index in the original slice.
F64eq equates two float64s within a small epsilon.
F64eqEps equates two float64s within a provided epsilon.
RoundF64 rounds a float64 to an int.
TriangulateConvex takes a face, in the form of a slice of indices, and outputs those indicies split into triangles based on the assumption that the face is convex.
UniqueChooseX returns n indices from the input weights at a count relative to the weight of each index.
UniqueChooseXSeeded returns n indices from the input weights at a count relative to the weight of each index.
WeightedChooseOne returns a single index from the weights given at a rate relative to the magnitude of each weight.
WeightedChooseOneSeeded returns a single index from the weights given at a rate relative to the magnitude of each weight.
WeightedMapChoice converts the input map into a set where keys are indices and values are weights for WeightedChooseOne, then returns the key for WeightedChooseOne of the weights.
WeightedMapChoiceSeeded converts the input map into a set where keys are indices and values are weights for WeightedChooseOne, then returns the key for WeightedChooseOne of the weight.

# Constants

DegToRad is the constant value something in degrees should be multiplied by to obtain something in radians.
RadToDeg is the constant value something in radians should be multiplied by to obtain something in degrees.

# Interfaces

A Float64Generator must be able to generate a float64.

# Type aliases

A Degree value is a float that specifies it should be in degrees.
A Radian value is a float that specifies it should be in radians.