package
0.0.0-20220831181609-9c88ebf2c706
Repository: https://github.com/adamcolton/geom.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Package generate helps generate random data from the types in the d2 package.
No description provided by the author
No description provided by the author

# Functions

GetPt2c1 returns a Pt2c1 from any Pt2 prefering Pt2c1 on the interface if it is defined.
GetV1 takes any Pt1 and returns the optimal V1.
IndentityTransform returns an Identity matrix.
Max returns a Pt with the highest X and highest Y.
Min returns a Pt with the lowest X and the lowest Y.
MinMax takes any number of points and returns a min point with the lowest X and the lowest Y in the entire set and a max point with the highest X and highest Y in the set.
NewTSet creates a TransformSet.
TProd returns the product of multiple transforms.

# Constants

LimitBounded indicates that the behavior of a parametric funnction outside the range [0,1] is not defined.
LimitUnbounded indicates that passing parametric values outside the range [0,1] should behave predictibly.
LimitUndefined indicates that the requested parametric method is not defined.

# Variables

Prec is the precision for the String method on F.

# Structs

AssertV1 checks that the derivative is close the derivative approximation.
D2 is an abstract two dimensional struct holding the methods shared by both Pt and V.
Polar is an abstract D2 using polar coordinates.
Pt2c1Wrapper wraps any Pt2 to convert it to a Pt2c1.
T0Wrapper curries the t0 parametric value to a Pt2.
TransformSet builds up a chain of transformaitions.
V1Wrapper takes any Pt1 and approximates V1.

# Interfaces

Limiter can describe the behavior of it's parametric methods that return a Pt.
Point can return a Pt.
Pt1 takes one parametric value and returns a Pt.
Pt1c0 returns a Pt1, it may cache some computation to optimize future calls to Pt1.
Pt1V1 has one argument parametric methods for both Pt1 and V1, typically this represents a curve and it's derivative.
Pt2 takes two parametric values and returns a Pt.
Pt2c1 curries one of two parametric values returning a Pt1.
TGen is a Transform generator.
V1 takes one parametric value and returns a V.
V1c0 returns a V1, it may cache some computation to optimize future callse to V1.
Vector can return a V.
VLimiter can describe the behavior of it's parametric methods that return a V.

# Type aliases

Chain combines multiple TGens into one.
Limit is used to indicate if a parametric method is bounded to [0,1] or unbounded.
Pt represets a two dimensional point.
Rotate generates a rotation transform.
Scale generates a scale transform.
T represets a transform matrix.
Translate generates a translation transform.
V represents a Vector, the difference between two points.