vec

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: MIT Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package vec is the three-float vectors the cameras and the billboards work with.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(a, b [3]float32) [3]float32

Add is a+b.

func Cross

func Cross(a, b [3]float32) [3]float32

Cross is a×b.

func Dot

func Dot(a, b [3]float32) float32

Dot is a·b.

func Norm

func Norm(a [3]float32) float32

Norm is a's length.

func Scale

func Scale(a [3]float32, s float32) [3]float32

Scale is a times s.

func Sub

func Sub(a, b [3]float32) [3]float32

Sub is a−b.

func Unit

func Unit(a [3]float32) [3]float32

Unit is a the length of 1; nothing for nothing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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