hep: go-hep.org/x/hep/fastjet/internal/predicates Index | Files

package predicates

import "go-hep.org/x/hep/fastjet/internal/predicates"

package predicates handles the geometric predicates for a delaunay triangulation

Index

Package Files

bigfunctions.go doc.go float64Pred.go incircle.go orientation.go

type OrientationKind Uses

type OrientationKind int

OrientationKind indicates how three points are located in respect to each other.

const (
    // Counterclockwise
    CCW OrientationKind = iota
    // Clockwise
    CW
    Colinear
    IndeterminateOrientation
)

func Orientation Uses

func Orientation(x1, y1, x2, y2, x, y float64) OrientationKind

Orientation returns how the point (x,y) is oriented with respect to the line defined by the points (x1,y1) and (x2,y2).

func (OrientationKind) String Uses

func (o OrientationKind) String() string

type RelativePosition Uses

type RelativePosition int

RelativePosition is the position of a point relative to a circle

const (
    // Inside the circle
    Inside RelativePosition = iota
    // On the circle
    On
    // Outside the circle
    Outside
    IndeterminatePosition
)

func Incircle Uses

func Incircle(x1, y1, x2, y2, x3, y3, x, y float64) RelativePosition

Incircle determines the relative position of the point (x,y) in relation to the circle formed by the three points (x1,y1),(x2,y2) and (x3,y3). The three points have to be ordered counterclockwise or Outside and Inside will be reversed.

func (RelativePosition) String Uses

func (p RelativePosition) String() string

Package predicates imports 4 packages (graph) and is imported by 1 packages. Updated 2018-08-02. Refresh now. Tools for package owners.