models

package
v0.0.0-...-d698c0d Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

This file is for N regular polygon structure

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Circle

type Circle struct {
	// contains filtered or unexported fields
}

func (*Circle) DrawCurve

func (cir *Circle) DrawCurve(thick int, rgba *image.RGBA, c color.RGBA)

func (*Circle) FillLayer

func (cir *Circle) FillLayer(layer int, rgba *image.RGBA, c color.RGBA)

func (*Circle) New

func (cir *Circle) New(n int, img *image.RGBA)

Create a new circular radar chart

we need to get N points and N edges

type Ngon

type Ngon struct {
	// contains filtered or unexported fields
}

N regular polygon

Vertex is a map for every useful vertex we need

func (*Ngon) DrawNgonLine

func (p *Ngon) DrawNgonLine(thick int, rgba *image.RGBA, c color.RGBA)

func (*Ngon) FillLayer

func (p *Ngon) FillLayer(layer int, rgba *image.RGBA, c color.RGBA)

func (*Ngon) New

func (p *Ngon) New(nedge int, img *image.RGBA)

Create a new N regular polygon radar chart

In order to get a radar chart,

the number of all the vertex except center vertex is layers * N

the number of all the edges is (layers + 1) * N

Jump to

Keyboard shortcuts

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