conv

package
v0.0.0-...-c238eda Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func P2ToV2

func P2ToV2(a p2.Vec) v2.Vec

P2ToV2 converts a polar to a cartesian coordinate.

func V2ToP2

func V2ToP2(a v2.Vec) p2.Vec

V2ToP2 converts a cartesian to a polar coordinate.

func V2ToV2i

func V2ToV2i(a v2.Vec) v2i.Vec

V2ToV2i converts a 2D float vector to a 2D integer vector.

func V2ToV3

func V2ToV3(a v2.Vec, z float64) v3.Vec

V2ToV3 converts a 2D vector to a 3D vector with a specified Z value.

func V2iToV2

func V2iToV2(a v2i.Vec) v2.Vec

V2iToV2 converts a 2D integer vector to a float vector.

func V3ToPoint3D

func V3ToPoint3D(a v3.Vec) go3mf.Point3D

V3ToPoint3D converts a 3D float vector to a go3mf 3D vector.

func V3ToV3i

func V3ToV3i(a v3.Vec) v3i.Vec

V3ToV3i converts a 3D float vector to a 3D integer vector.

func V3iToV3

func V3iToV3(a v3i.Vec) v3.Vec

V3iToV3 converts a 3D integer vector to a float vector.

Types

This section is empty.

Jump to

Keyboard shortcuts

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