normals

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fill

func Fill(img draw.Image)

Types

type Direction

type Direction int
const (
	Additive Direction = iota
	Subtractive
)

type Line

type Line struct {
	Start           vector2.Float64
	End             vector2.Float64
	Width           float64
	NormalDirection Direction
}

func (Line) Dir

func (l Line) Dir() vector2.Float64

Dir is end point - starting point

func (Line) Round

func (l Line) Round(src draw.Image)

type Sphere

type Sphere struct {
	Center    vector2.Float64
	Radius    float64
	Direction Direction
}

func (Sphere) Draw

func (s Sphere) Draw(src draw.Image)

Jump to

Keyboard shortcuts

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