Documentation
¶
Overview ¶
Package xy provides xy Position
Index ¶
- type Line
- type Position
- func (p Position) Above(q Position) bool
- func (p Position) Below(q Position) bool
- func (p Position) Distance(q Position) float64
- func (p Position) Equals(q Position) bool
- func (p Position) LeftOf(q Position) bool
- func (p Position) RightOf(q Position) bool
- func (p Position) String() string
- func (p Position) XY() (int, int)
- func (p Position) XYfloat64() (float64, float64)
- type Rect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Line ¶
type Line struct {
Start, End Position
}
func (*Line) Intersect ¶
Intersect returns the position if two lines intersect. https://en.wikipedia.org/wiki/Line-line_intersection
func (*Line) IntersectSegment ¶
IntersectSegment returns position where lines intersect. http://geomalgorithms.com/a05-_intersect-1.html#intersect2D_2Segments()
Click to show internal directories.
Click to hide internal directories.