Documentation
¶
Overview ¶
Package vpline3 contains tools for manipulating lines with 3 points.
Index ¶
Constants ¶
const ( // A is the index of the 1st point in a line. A = iota // B is the index of the 2nd point in a line. B // C is the index of the 2nd point in a line. C // D is the index of the 2nd point in a line. D )
const PackageCopyright = "Copyright (C) 2015, 2016 Christian Mauduit <[email protected]>" // PackageCopyright set by version.sh
PackageCopyright contains a short copyright notice.
const PackageEmail = "[email protected]" // PackageEmail set by version.sh
PackageEmail contains a contact email for the package.
const PackageLicense = "GNU GPL v3" // PackageLicense set by version.sh
PackageLicense contains a short license information.
const PackageName = "Vapor Toolkit" // PackageName set by version.sh
PackageName contains a readable name of the package, suitable for display.
const PackageTarname = "vapor" // PackageTarname set by version.sh
PackageTarname contains a short name of the package, suitable for a filename.
const PackageURL = "https://github.com/ufoot/vapor" // PackageURL set by version.sh
PackageURL contains the address of the project homepage.
const VersionMajor = 0 // VersionMajor set by version.sh
VersionMajor is the project major version.
const VersionMinor = 3 // VersionMinor set by version.sh
VersionMinor is the project minor version.
const VersionStamp = "c6a4298" // VersionStamp set by version.sh
VersionStamp is the project stamp, possibly changes for each build.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type F32 ¶
F32 is a line in a 3D space.
func F32NewQuad ¶
F32NewQuad creates a new line with 4 float32 vectors.
func F32NewSegment ¶
F32NewSegment creates a new segment with 2 float32 vectors.
func F32NewTriangle ¶
F32NewTriangle creates a new triangle with 3 float32 vectors.
func (*F32) IsSimilar ¶
IsSimilar returns true if lines are approximatively the same. This is a workarround to ignore rounding errors.
func (*F32) Map ¶
func (line *F32) Map(f vpvec3.F32UnaryOperator) *F32
Map applies a unary operator to all members and returns the result. Line is modified, and a pointer on it is returned.
func (*F32) Reduce ¶
func (line *F32) Reduce(f vpvec3.F32BinaryOperator) *vpvec3.F32
Reduce applies a binary operator to all members and returns the result.
type F64 ¶
F64 is a line in a 3D space.
func F64NewQuad ¶
F64NewQuad creates a new line with 4 float64 vectors.
func F64NewSegment ¶
F64NewSegment creates a new segment with 2 float64 vectors.
func F64NewTriangle ¶
F64NewTriangle creates a new triangle with 3 float64 vectors.
func (*F64) IsSimilar ¶
IsSimilar returns true if lines are approximatively the same. This is a workarround to ignore rounding errors.
func (*F64) Map ¶
func (line *F64) Map(f vpvec3.F64UnaryOperator) *F64
Map applies a unary operator to all members and returns the result. Line is modified, and a pointer on it is returned.
func (*F64) Reduce ¶
func (line *F64) Reduce(f vpvec3.F64BinaryOperator) *vpvec3.F64
Reduce applies a binary operator to all members and returns the result.
type X32 ¶
X32 is a line in a 3D space.
func X32NewQuad ¶
X32NewQuad creates a new line with 4 float64 vectors.
func X32NewSegment ¶
X32NewSegment creates a new segment with 2 float64 vectors.
func X32NewTriangle ¶
X32NewTriangle creates a new triangle with 3 float64 vectors.
func (*X32) IsSimilar ¶
IsSimilar returns true if lines are approximatively the same. This is a workarround to ignore rounding errors.
func (*X32) Map ¶
func (line *X32) Map(f vpvec3.X32UnaryOperator) *X32
Map applies a unary operator to all members and returns the result. Line is modified, and a pointer on it is returned.
type X64 ¶
X64 is a line in a 3D space.
func X64NewQuad ¶
X64NewQuad creates a new line with 4 float64 vectors.
func X64NewSegment ¶
X64NewSegment creates a new segment with 2 float64 vectors.
func X64NewTriangle ¶
X64NewTriangle creates a new triangle with 3 float64 vectors.
func (*X64) IsSimilar ¶
IsSimilar returns true if lines are approximatively the same. This is a workarround to ignore rounding errors.
func (*X64) Map ¶
func (line *X64) Map(f vpvec3.X64UnaryOperator) *X64
Map applies a unary operator to all members and returns the result. Line is modified, and a pointer on it is returned.