public class BarycentricCoordinates extends Object
Development Status: At this time, this class has not been thoroughly reviewed and has undergone only superficial testing.
Constructor and Description |
---|
BarycentricCoordinates() |
Modifier and Type | Method and Description |
---|---|
double |
getBarycentricCoordinateDeviation()
Gets the deviation of the computed equivalent of the input query (x,y)
coordinates based on barycentric coordinates.
|
double[] |
getBarycentricCoordinates(List<Vertex> polygon,
double x,
double y)
Given a reference point inside a simple, but potentially non-convex
polygon, creates an array of barycentric coordinates for the point.
|
public double[] getBarycentricCoordinates(List<Vertex> polygon, double x, double y)
polygon
- list of vertices defining a non-self-intersecting,
potentially non-convex polygon.x
- the x coordinate of the reference pointy
- the y coordinate of the reference pointpublic double getBarycentricCoordinateDeviation()
Copyright © 2021. All rights reserved.