onb

package
v0.0.0-...-d35cbbc Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Overview

Package onb implements methods to work with ortho-normal bases

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Onb

type Onb struct {
	// contains filtered or unexported fields
}

Onb represents an ortho-normal base.

func New

func New() *Onb

New returns an instance of an ortho-normal base.

func (*Onb) BuildFromW

func (o *Onb) BuildFromW(n *vec3.Vec3Impl)

BuildFromW constructs the ortho-normal base from the provided vector.

func (*Onb) Local

func (o *Onb) Local(a *vec3.Vec3Impl) *vec3.Vec3Impl

Local returns the ortho-normal base local to the supplied position.

func (*Onb) ScalarLocal

func (o *Onb) ScalarLocal(a, b, c float64) *vec3.Vec3Impl

ScalarLocal returns the ortho-normal base local to the supplied position.

func (*Onb) U

func (o *Onb) U() *vec3.Vec3Impl

U returns the first axis of the ortho-normal base.

func (*Onb) V

func (o *Onb) V() *vec3.Vec3Impl

U returns the second axis of the ortho-normal base.

func (*Onb) W

func (o *Onb) W() *vec3.Vec3Impl

U returns the third axis of the ortho-normal base.

Jump to

Keyboard shortcuts

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