rot3d

package
v0.0.0-...-07010e4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Rot0   float64 = 0
	Rot90  float64 = 0.5 * math.Pi
	Rot180 float64 = math.Pi
	Rot270 float64 = 1.5 * math.Pi
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Matrix

type Matrix struct {
	Rows [3]MatrixRow
}

func XMatrix

func XMatrix(rad float64) Matrix

func YMatrix

func YMatrix(rad float64) Matrix

func ZMatrix

func ZMatrix(rad float64) Matrix

func (Matrix) Rotate

func (m Matrix) Rotate(pt Point) Point

type MatrixRow

type MatrixRow [3]float64

type Point

type Point struct {
	X, Y, Z float64
}

func P

func P(x, y, z float64) Point

func (Point) String

func (p Point) String() string

Jump to

Keyboard shortcuts

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