package
0.0.0-20220831181609-9c88ebf2c706
Repository: https://github.com/adamcolton/geom.git
Documentation: pkg.go.dev
# Functions
GetTInv of a TGen will call TInv if available.
GetTPair of a TGen will call Pair if available.
Identity returns a copy of the identity transform.
Max returns a Pt with the highest X, highest Y and highest Z.
Min returns a Pt with the lowest X, lowest Z 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.
QV produces an instance of Q such that Q applied to V{1,0,0} will point in the same direction as the argument v.
QX returns Q rotated around the X axis.
QY returns Q rotated around the Y axis.
QY returns Q rotated around the Z axis.
ScaleF returns Scale with all dimensions equal to f.
TProd returns the product of multiple transforms.
# Variables
Prec is the precision for the String method on F.
# Structs
D3 is an abstract two dimensional struct holding the methods shared by both Pt and V.
Q is a quaternion used for rotations.
Rotation fulfill TGen.
TransformSet builds up a chain of transformaitions.
# Interfaces
Point can return an instance of Pt.
Pt1 is a one dimensional parametric curve.
Pt2 is a two dimensional parametric surface.
Pt2c1 is a two dimensional parametric surface that returns a curve on the surface.
TGen represents a type that can generate a Transform.
TGenInv represents a type that can generate the inverse of a Transform.
TGenPair provides a way to get both the Transform and it's Inverse at the same time which can sometimes be more efficient.
V1 is a one dimensional parametric curve.
Vector can return an instance of V.