shape

package
v0.0.0-...-50d5a6e Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Circle

type Circle struct {
	Radius float32
}

func NewCircle

func NewCircle(radius float32) *Circle

func (*Circle) GetShapeName

func (circle *Circle) GetShapeName() string

type IShape

type IShape interface {
	GetShapeName() string
}

type Rect

type Rect struct {
	Width  float32
	Height float32
}

func (*Rect) GetShapeName

func (rect *Rect) GetShapeName() string

Jump to

Keyboard shortcuts

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