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

# Functions

AnglePoint creates a unit vector from the given angle in degrees as a Point2.
Distance2 calculates the euclidean distance between two points, as two (x,y) pairs.
Distance3 calculates the euclidean distance between two points, as two (x,y,z) triplets.
NewBoundingRect2 will produce the minimal rectangle that contains all of the input points.
NewBoundingRect3 will produce the minimal rectangle that contains all of the input points.
NewPolygon2 is a helper method to construct a valid polygon.
NewRect2 returns an (X,Y):(X2,Y2) rectangle.
NewRect2WH returns an (X,Y):(X+W,Y+H) rectangle.
NewRect3 returns an (X,Y,Z):(X2,Y2,Z2) rectangle.
NewRect3WH returns an (X,Y,Z):(X+W,Y+H,Z+D) rectangle.
RadianPoint creates a unit vector from the given angle in radians as a Point2.

# Variables

Dir2 values.
Dir2 values.
Dir2 values.
Dir2 values.
Dir2 values.
Dir2 values.
Dir2 values.
Dir2 values.

# Structs

A Polygon2 is a series of points in 2D space.
A Rect2 represents a span from one point in 2D space to another.
A Rect3 represents a span from one point in 3D space to another.

# Type aliases

Dir2 is a helper type for representing points as directions.
Point2 represents a 2D point on a plane.
Point3 represents a 3D point in space.
Point4 represents a 4D point, in space + some additional dimension.
Tri3 is a triangle of Point3s.