Maven module :un.api : api-geometry :
Class : un.impl.geometry.s2d.Triangle
Extends/Implements : un.impl.geometry.s2d.SingularGeometry2D
Subclasses : -

Specification :
boundary having exactly four points (the last point being the same
as the first point) and no interior boundaries
author  Johann Sorel


Variables : -
Functions : Triangle, getFirstCoord, getSecondCoord, getThirdCoord, getBarycentricValue, getNormal, getBarycentricValue, toPolygon, getBoundingBox, createPathIterator



public void Triangle (Tuple first, Tuple second, Tuple third)

public Tuple getFirstCoord ()

public Tuple getSecondCoord ()

public Tuple getThirdCoord ()


Calculate the barycentric value in triangle for given point.
param  point
return  Vector barycentric values
public Tuple getBarycentricValue (Tuple p)


Calculate triangle normal.
return  normal vector
public Vector getNormal ()


Calculate the barycentric value in triangle for given point.
param  p
return  Vector barycentric values
public double[] getBarycentricValue (double[] a, double[] b, double[] c, double[] p)

public Polygon toPolygon ()

public BBox getBoundingBox ()

public PathIterator createPathIterator ()