package
Version:
v0.8.2
Opens a new window with list of versions in this module.
Published: Nov 14, 2020
License: BSD-3-Clause
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Point struct {
X, Y Pt
}
Point is a point in a two-dimensional plane.
String returns a string representation of p like "(1.2,3.4)".
Pt is a length.
The unit Pt is a typographical point, 1/72 of an inch (0.3527 mm).
It can be be converted to a length in current device pixels by
multiplying with PixelsPerPt after app initialization is complete.
Px converts the length to current device pixels.
String returns a string representation of p like "3.2pt".
type Rectangle struct {
Min, Max Point
}
A Rectangle is region of points.
The top-left point is Min, and the bottom-right point is Max.
String returns a string representation of r like "(3,4)-(6,5)".
Source Files
¶
Click to show internal directories.
Click to hide internal directories.