geom

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Geometry functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CentrePoint

func CentrePoint(pt data.Point, sz data.Size) data.Point

Return the centre point in a rectangle

func DivideSize

func DivideSize(sz data.Size, k float32) data.Size

Divide size by a constant

func IsNilPoint

func IsNilPoint(pt data.Point) bool

IsNilPoint returns true if either X or Y represent NaN

func MultiplySize

func MultiplySize(sz data.Size, k float32) data.Size

Multiply size by a constant

Types

This section is empty.

Jump to

Keyboard shortcuts

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