func (p Point) IsNaN() bool {
	return math.IsNaN(p.x) || math.IsNaN(p.y)
}
IsNaN checks if x or y is not a number.
package numerics
import (
	"fmt"
	"math"
	"sort"
)
type Point struct {
	x float64
	y float64
}
func NewPoint(x, y float64) *Point {
	return &Point{x, y}
}
func (p Point) IsInf() bool {
	return math.IsInf(p.x, 0) || math.IsInf(p.y, 0)
}