package
Version:
v0.0.0-...-7f92c57
Opens a new window with list of versions in this module.
Published: Oct 21, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
Package d2geom is a utility package for anything related to geometry
type Point struct {
X int
Y int
}
Point represents a point
Pointf represents a point with float coordinates
type Rectangle struct {
Left int
Top int
Width int
Height int
}
Rectangle represents a rectangle
Bottom returns y of the bottom point of the rectangle
IsInRect returns if the given position is in the rectangle or not
Right returns x of the right point of the rectangle
type Size struct {
Width, Height int
}
Size represents a size
Source Files
¶
Click to show internal directories.
Click to hide internal directories.