Documentation ¶
Index ¶
- func Distance(a, b Point2f) float64
- type Bounds
- type Frame
- type Point
- type Point2f
- func (a Point2f) Add(b Point2f) Point2f
- func (a Point2f) DivScalar(scalar float64) Point2f
- func (a Point2f) Invert() Point2f
- func (a Point2f) InvertAxisX() Point2f
- func (a Point2f) InvertAxisY() Point2f
- func (a Point2f) MulScalar(scalar float64) Point2f
- func (a Point2f) Sub(b Point2f) Point2f
- func (a Point2f) ToPolar() Polar
- type Polar
- type Rectangle2f
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Frame ¶
Indent Thickness Indents Border, Frame
func MakeFrame1 ¶
func MakeFrame2 ¶
func MakeFrame4 ¶
type Polar ¶
func CartesianToPolar ¶
func ShPolar ¶
Pt is shorthand for Point{X, Y}. Pr is shorthand for Polar{Rho, Phi}. Pr, MakePolar, ShPolar ShPolar is shorthand for Polar{Rho, Phi}.
func (Polar) ToCartesian ¶
type Rectangle2f ¶
func PointToRect2f ¶
func PointToRect2f(p Point2f) Rectangle2f
func (Rectangle2f) Add ¶
func (r Rectangle2f) Add(p Point2f) Rectangle2f
func (Rectangle2f) Center ¶
func (r Rectangle2f) Center() Point2f
func (Rectangle2f) Dx ¶
func (r Rectangle2f) Dx() float64
func (Rectangle2f) Dy ¶
func (r Rectangle2f) Dy() float64
func (Rectangle2f) Grow ¶
func (r Rectangle2f) Grow(f Frame) Rectangle2f
func (Rectangle2f) Shrink ¶
func (r Rectangle2f) Shrink(f Frame) Rectangle2f
func (Rectangle2f) Size ¶
func (r Rectangle2f) Size() Point2f
Click to show internal directories.
Click to hide internal directories.