Documentation
¶
Overview ¶
Package xy provides xy Position
Index ¶
- type Line
- type Point
- func (p Point) Above(q Point) bool
- func (p Point) Below(q Point) bool
- func (p Point) Distance(q Point) float64
- func (p Point) Equals(q Point) bool
- func (p Point) LeftOf(q Point) bool
- func (p Point) RightOf(q Point) bool
- func (p Point) String() string
- func (p Point) XY() (int, int)
- func (p Point) 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 Point
}
func (*Line) Intersect ¶
Intersect returns the Point if two lines intersect. https://en.wikipedia.org/wiki/Line-line_intersection
func (*Line) IntersectSegment ¶
IntersectSegment returns Point where lines intersect. http://geomalgorithms.com/a05-_intersect-1.html#intersect2D_2Segments()
Click to show internal directories.
Click to hide internal directories.