qc

package
v0.0.0-...-a578333 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxArea = int64(900) * int64(10000_0000) * int64(10000_0000)
)

Variables

This section is empty.

Functions

func DrawQuadCurveCmd

func DrawQuadCurveCmd() *cobra.Command

Types

type QuadCurve

type QuadCurve struct {
	A float64 `json:"a"`
	B float64 `json:"b"`
	C float64 `json:"c"`
}

func NewQuadCurveFromTriplePoints

func NewQuadCurveFromTriplePoints(x1, y1, x2, y2, x3, y3 float64) (QuadCurve, error)

func (QuadCurve) CalcArea

func (curve QuadCurve) CalcArea(x int64, scale int64) int64

func (QuadCurve) CalcY

func (curve QuadCurve) CalcY(x float64) float64

func (QuadCurve) Draw

func (curve QuadCurve) Draw(start, stop, step float64, filename string)

Jump to

Keyboard shortcuts

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