vpline3

package
v0.0.0-...-bf055c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package vpline3 contains tools for manipulating lines with 3 points.

Index

Constants

View Source
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
)
View Source
const PackageCopyright = "Copyright (C)  2015, 2016  Christian Mauduit <ufoot@ufoot.org>" // PackageCopyright set by version.sh

PackageCopyright contains a short copyright notice.

View Source
const PackageEmail = "ufoot@ufoot.org" // PackageEmail set by version.sh

PackageEmail contains a contact email for the package.

View Source
const PackageLicense = "GNU GPL v3" // PackageLicense set by version.sh

PackageLicense contains a short license information.

View Source
const PackageName = "Vapor Toolkit" // PackageName set by version.sh

PackageName contains a readable name of the package, suitable for display.

View Source
const PackageTarname = "vapor" // PackageTarname set by version.sh

PackageTarname contains a short name of the package, suitable for a filename.

View Source
const PackageURL = "https://github.com/ufoot/vapor" // PackageURL set by version.sh

PackageURL contains the address of the project homepage.

View Source
const VersionMajor = 0 // VersionMajor set by version.sh

VersionMajor is the project major version.

View Source
const VersionMinor = 3 // VersionMinor set by version.sh

VersionMinor is the project minor version.

View Source
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

type F32 []vpvec3.F32

F32 is a line in a 3D space.

func F32NewQuad

func F32NewQuad(a, b, c, d *vpvec3.F32) *F32

F32NewQuad creates a new line with 4 float32 vectors.

func F32NewSegment

func F32NewSegment(a, b *vpvec3.F32) *F32

F32NewSegment creates a new segment with 2 float32 vectors.

func F32NewTriangle

func F32NewTriangle(a, b, c *vpvec3.F32) *F32

F32NewTriangle creates a new triangle with 3 float32 vectors.

func (*F32) IsSimilar

func (line *F32) IsSimilar(op *F32) bool

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.

func (*F32) String

func (line *F32) String() string

String returns a readable form of the line.

func (*F32) ToF64

func (line *F32) ToF64() *F64

ToF64 converts the line to a float64 line.

func (*F32) ToX32

func (line *F32) ToX32() *X32

ToX32 converts the line to a fixed point number line on 32 bits.

func (*F32) ToX64

func (line *F32) ToX64() *X64

ToX64 converts the line to a fixed point number line on 64 bits.

type F64

type F64 []vpvec3.F64

F64 is a line in a 3D space.

func F64NewQuad

func F64NewQuad(a, b, c, d *vpvec3.F64) *F64

F64NewQuad creates a new line with 4 float64 vectors.

func F64NewSegment

func F64NewSegment(a, b *vpvec3.F64) *F64

F64NewSegment creates a new segment with 2 float64 vectors.

func F64NewTriangle

func F64NewTriangle(a, b, c *vpvec3.F64) *F64

F64NewTriangle creates a new triangle with 3 float64 vectors.

func (*F64) IsSimilar

func (line *F64) IsSimilar(op *F64) bool

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.

func (*F64) String

func (line *F64) String() string

String returns a readable form of the line.

func (*F64) ToF32

func (line *F64) ToF32() *F32

ToF32 converts the line to a float32 line.

func (*F64) ToX32

func (line *F64) ToX32() *X32

ToX32 converts the line to a fixed point number line on 32 bits.

func (*F64) ToX64

func (line *F64) ToX64() *X64

ToX64 converts the line to a fixed point number line on 64 bits.

type X32

type X32 []vpvec3.X32

X32 is a line in a 3D space.

func X32NewQuad

func X32NewQuad(a, b, c, d *vpvec3.X32) *X32

X32NewQuad creates a new line with 4 float64 vectors.

func X32NewSegment

func X32NewSegment(a, b *vpvec3.X32) *X32

X32NewSegment creates a new segment with 2 float64 vectors.

func X32NewTriangle

func X32NewTriangle(a, b, c *vpvec3.X32) *X32

X32NewTriangle creates a new triangle with 3 float64 vectors.

func (*X32) IsSimilar

func (line *X32) IsSimilar(op *X32) bool

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.

func (*X32) Reduce

func (line *X32) Reduce(f vpvec3.X32BinaryOperator) *vpvec3.X32

Reduce applies a binary operator to all members and returns the result.

func (*X32) String

func (line *X32) String() string

String returns a readable form of the line.

func (*X32) ToF32

func (line *X32) ToF32() *F32

ToF32 converts the line to a float32 line.

func (*X32) ToF64

func (line *X32) ToF64() *F64

ToF64 converts the line to a float64 line.

func (*X32) ToX64

func (line *X32) ToX64() *X64

ToX64 converts the line to a fixed point number line on 64 bits.

type X64

type X64 []vpvec3.X64

X64 is a line in a 3D space.

func X64NewQuad

func X64NewQuad(a, b, c, d *vpvec3.X64) *X64

X64NewQuad creates a new line with 4 float64 vectors.

func X64NewSegment

func X64NewSegment(a, b *vpvec3.X64) *X64

X64NewSegment creates a new segment with 2 float64 vectors.

func X64NewTriangle

func X64NewTriangle(a, b, c *vpvec3.X64) *X64

X64NewTriangle creates a new triangle with 3 float64 vectors.

func (*X64) IsSimilar

func (line *X64) IsSimilar(op *X64) bool

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.

func (*X64) Reduce

func (line *X64) Reduce(f vpvec3.X64BinaryOperator) *vpvec3.X64

Reduce applies a binary operator to all members and returns the result.

func (*X64) String

func (line *X64) String() string

String returns a readable form of the line.

func (*X64) ToF32

func (line *X64) ToF32() *F32

ToF32 converts the line to a float32 line.

func (*X64) ToF64

func (line *X64) ToF64() *F64

ToF64 converts the line to a float64 line.

func (*X64) ToX32

func (line *X64) ToX32() *X32

ToX32 converts the line to a fixed point number line on 32 bits.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL