geom3d

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Line3d

type Line3d struct {
	X1, Y1, Z1, X2, Y2, Z2 float64
}

Line implementation for 3-Dimensional Geometry applications

func Line3dFromAngle

func Line3dFromAngle(x, y, z, heading, pitch, length float64) Line3d

Line3dFromAngle creates a 3-Dimensional line from starting point at a heading and pitch angle, and hypotenuse length based on answer from https://stackoverflow.com/questions/52781607/3d-point-from-two-angles-and-a-distance

func Line3dFromBaseAngle added in v1.6.0

func Line3dFromBaseAngle(x, y, z, heading, pitch, xyLength float64) Line3d

Line3dFromBaseAngle creates a 3-Dimensional line from starting point at a heading and pitch angle, and XY axis length

func (*Line3d) Distance

func (l *Line3d) Distance() float64

Distance gets the distance between the two endpoints of the 3-dimensional line

func (*Line3d) Heading

func (l *Line3d) Heading() float64

Heading gets the XY axis angle of the 3-dimensional line

func (*Line3d) Pitch

func (l *Line3d) Pitch() float64

Pitch gets the Z axis angle of the 3-dimensional line

type Vector3 added in v1.6.0

type Vector3 struct {
	X, Y, Z float64
}

3-Dimensional point

func (*Vector3) Add added in v1.6.0

func (v *Vector3) Add(v3 *Vector3) *Vector3

func (*Vector3) Copy added in v1.6.0

func (v *Vector3) Copy() *Vector3

func (*Vector3) Equals added in v1.6.0

func (v *Vector3) Equals(v3 *Vector3) bool

func (*Vector3) Sub added in v1.6.0

func (v *Vector3) Sub(v3 *Vector3) *Vector3

Jump to

Keyboard shortcuts

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