primitives

package
v0.0.0-...-e95280a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter interface {
	ToVertices(prim Primitive) ([]vertices.Vertex, error)
}

Adapter represents a primitive adapter

type Builder

type Builder interface {
	Create() Builder
	WithID(id *uuid.UUID) Builder
	WithPlane(plane planes.Plane) Builder
	WithPrism(prism prisms.Prism) Builder
	WithCube(cube cubes.Cube) Builder
	WithSphere(sphere spheres.Sphere) Builder
	Now() (Primitive, error)
}

Builder represents a primitive builder

type Primitive

type Primitive interface {
	ID() *uuid.UUID
	IsPlane() bool
	Plane() planes.Plane
	IsPrism() bool
	Prism() prisms.Prism
	IsCube() bool
	Cube() cubes.Cube
	IsSphere() bool
	Sphere() spheres.Sphere
}

Primitive represents a primitive geometry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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