helper

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2021 License: BSD-2-Clause Imports: 6 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Axes

type Axes struct {
	graphic.Lines
}

Axes is a visual representation of the three axes.

func NewAxes

func NewAxes(size float32) *Axes

NewAxes returns a pointer to a new Axes object.

type Grid

type Grid struct {
	graphic.Lines
}

Grid is a visual representation of a grid.

func NewGrid

func NewGrid(size, step float32, color *math32.Color) *Grid

NewGrid creates and returns a pointer to a new grid helper with the specified size and step.

type Normals

type Normals struct {
	graphic.Lines
	// contains filtered or unexported fields
}

Normals is the visual representation of the normals of a target object.

func NewNormals

func NewNormals(ig graphic.IGraphic, size float32, color *math32.Color, lineWidth float32) *Normals

NewNormals creates a normals helper for the specified IGraphic, with the specified size, color, and lineWidth.

func (*Normals) Update

func (nh *Normals) Update()

Update should be called in the render loop to update the normals based on the target object.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL