Documentation ¶
Index ¶
- Variables
- type Axis
- type Region
- func (r *Region) Axis(idx int) *Axis
- func (r *Region) Contains(pt maths.Pt) bool
- func (r *Region) DebugStringAugmented(augmenter func(idx int, e maths.Pt) string) string
- func (r *Region) FirstAxis() *Axis
- func (r *Region) GoString() string
- func (r *Region) Init(winding maths.WindingOrder, Min, Max maths.Pt) *Region
- func (r *Region) LineString() []float64
- func (r *Region) Max() maths.Pt
- func (r *Region) Min() maths.Pt
- func (r *Region) SentinalPoints() (pts []maths.Pt)
- func (r *Region) WindingOrder() maths.WindingOrder
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoDirection = errors.New("Line does not have direction on that coordinate.")
Functions ¶
This section is empty.
Types ¶
type Axis ¶
type Axis struct {
// contains filtered or unexported fields
}
func (*Axis) Intersect ¶
Intersect finds the intersections point if one exists with the line described by pt0,pt1. This point will be clamped to the line of the clipping region.
func (*Axis) IsInward ¶
IsInward returns weather the line described by pt1,pt2 is headed inward with respect to the Axis.
func (*Axis) PushInBetween ¶
func (a *Axis) PushInBetween(pt list.ElementerPointer) bool
PushInBetween inserts the pt into the region list on this Axis.
type Region ¶
A region is made up of axises and a winding order. A region can hold other points along it's axises.
func New ¶
func New(winding maths.WindingOrder, Min, Max maths.Pt) *Region
New creates a new region, initilization paramters as needed.
func (*Region) DebugStringAugmented ¶
func (*Region) LineString ¶
func (*Region) SentinalPoints ¶
func (*Region) WindingOrder ¶
func (r *Region) WindingOrder() maths.WindingOrder
Click to show internal directories.
Click to hide internal directories.