Package com.vividsolutions.jts.math

Examples of com.vividsolutions.jts.math.Vector3D


   */
  private Plane3D findBestFitPlane(Polygon poly)
  {
    CoordinateSequence seq = poly.getExteriorRing().getCoordinateSequence();
    Coordinate basePt = averagePoint(seq);
    Vector3D normal = averageNormal(seq);
    return new Plane3D(normal, basePt);
  }
View Full Code Here


      sum.z += (p1.x - p2.x)*(p1.y + p2.y);
    }
    sum.x /= n;
    sum.y /= n;
    sum.z /= n;
    Vector3D norm = Vector3D.create(sum).normalize();
    return norm;
  }
View Full Code Here

TOP

Related Classes of com.vividsolutions.jts.math.Vector3D

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.