shape

package
v0.0.0-...-a3e6692 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: CC0-1.0 Imports: 16 Imported by: 0

Documentation

Overview

Package shape models various shapes for testing the rendering abilities of Mechane.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BezCircTanLocModel

type BezCircTanLocModel struct {
	Depictioner     *wire.BezCircTangency
	TangencyPortion wire.BezCircTangencyPortion
}

BezCircTanLocModel is in essence the tangency locus of the middle control point of a quadratic Bezier curve which is a tangent to a circle.

func NewBezCircTanLoc

func NewBezCircTanLoc() BezCircTanLocModel

type BullseyeModel

type BullseyeModel struct {
	Node *mechtree.Node
}

func NewBullseyeModel

func NewBullseyeModel() BullseyeModel

type CatenaryModel

type CatenaryModel struct {
	Depictioner mech.Depictioner
}

func NewCatenaryModel

func NewCatenaryModel() CatenaryModel

type CircleModel

type CircleModel struct {
	Depictioner mech.Depictioner
}

func NewCircleModel

func NewCircleModel() CircleModel

type ConeModel

type ConeModel struct {
	Depictioner mech.Depictioner
}

func NewConeModel

func NewConeModel() ConeModel

type CosModel

type CosModel struct {
	Button      world.ToggleButton
	ButtonNode  *mechtree.Node
	Depictioner mech.Depictioner
	Node        *mechtree.Node
}

func NewCosModel

func NewCosModel(orient ...maf.Vec) CosModel

type CubeModel

type CubeModel struct {
	Depictioner mech.Depictioner
}

func NewCubeModel

func NewCubeModel() CubeModel

type CycloidModel

type CycloidModel struct {
	Circle        *wire.Circle
	CirclePortion func(float64) mech.Portion
	Node          *mechtree.Node
	Parametric    kirv.Parametric
}

func NewCycloidModel

func NewCycloidModel() CycloidModel

type Disk

type Disk struct {
	ButtonName  string
	ButtonNode  *mechtree.Node
	Depictioner mech.Depictioner
}

type GridsModel

type GridsModel struct {
	Disk Disk
	Rect Rect

	Node             *mechtree.Node
	RadioButtonGroup world.RadioButtonGroup
}

func NewGridsModel

func NewGridsModel() GridsModel

type HelixModel

type HelixModel struct {
	Depictioner mech.Depictioner
}

func NewHelixModel

func NewHelixModel() HelixModel

type LineModel

type LineModel struct {
	Depictioner mech.Depictioner
}

func NewLineModel

func NewLineModel() LineModel

type ProjectileModel

type ProjectileModel struct {
	Depictioner mech.Depictioner
}

func NewProjectileModel

func NewProjectileModel() ProjectileModel

type Rect

type Rect struct {
	ButtonName  string
	ButtonNode  *mechtree.Node
	Depictioner mech.Depictioner
}

type SinModel

type SinModel struct {
	Depictioner mech.Depictioner
}

func NewSinModel

func NewSinModel() SinModel

type SinPlotModel

type SinPlotModel struct {
	Depictioner mech.Depictioner
}

func NewSinPlotModel

func NewSinPlotModel() SinPlotModel

type SinusoidModel

type SinusoidModel struct {
	Node         *mechtree.Node
	TimeDecaying TimeDecaying
}

func NewSinusoidModel

func NewSinusoidModel() SinusoidModel

type SphereModel

type SphereModel struct {
	Depictioner mech.Depictioner
}

func NewSphereModel

func NewSphereModel() SphereModel

type SpiralModel

type SpiralModel struct {
	Button      world.Button
	ButtonNode  *mechtree.Node
	Depictioner mech.Depictioner
	Node        *mechtree.Node
}

func NewSpiralModel

func NewSpiralModel() SpiralModel

type StandingWaveModel

type StandingWaveModel struct {
	Depictioner *wire.StandingWave
	Node        *mechtree.Node
	Portion     wire.StandingWavePortion
}

func NewStandingWaveModel

func NewStandingWaveModel(orient ...maf.Vec) StandingWaveModel

type TimeDecaying

type TimeDecaying struct {
	Depictioner *wire.Sinusoid
	Portion     mech.Portion
}

Jump to

Keyboard shortcuts

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