geom

package
v0.0.0-...-00da793 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

package geom designed to enhance the interface of 3D point data license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Angle

func Angle(m1 *mat.Dense, m2 *mat.Dense, units string, is_normalized bool) []float64

Find the angle between 2 vectors

func Cross

func Cross(a *mat.Dense, b *mat.Dense) *mat.Dense

Finds the cross product between two single or stacked vectors

func Magnitude

func Magnitude(m *mat.Dense) []float64

magnitude function takes the rowwise euclidean distance of 2D or 3D points or vectors

func Normalize

func Normalize(m *mat.Dense) *mat.Dense

normalize function applies rowwise normalization of 2D or 3D data to magnatiude 1

func ProjectVector

func ProjectVector(m1 *mat.Dense, m2 *mat.Dense, normalized bool) *mat.Dense

projects vector(s) m1 onto vector(s) m2

func Rotate

func Rotate(m *mat.Dense, a *mat.Dense, angle float64, units string, normalized bool) *mat.Dense

implements the rodrigues rotation formula to rotate m around axis a

func ScalarProjection

func ScalarProjection(m1 *mat.Dense, m2 *mat.Dense, normalized bool) []float64

computes the scalar needed to project m1 onto m2

Types

This section is empty.

Jump to

Keyboard shortcuts

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