Documentation of 'georegression.geometry.UtilPoint2D_F64' Java class
UtilPoint2D_F64
georegression.geometry

Class UtilPoint2D_F64



  • public class UtilPoint2D_F64
    extends java.lang.Object
    • Constructor Detail

      • UtilPoint2D_F64

        public UtilPoint2D_F64()
    • Method Detail

      • noiseNormal

        public static void noiseNormal(java.util.List<Point2D_F64> pts,
                                       double sigma,
                                       java.util.Random rand)
      • distance

        public static double distance(double x0,
                                      double y0,
                                      double x1,
                                      double y1)
      • distanceSq

        public static double distanceSq(double x0,
                                        double y0,
                                        double x1,
                                        double y1)
      • mean

        public static Point2D_F64 mean(java.util.List<Point2D_F64> list,
                                       Point2D_F64 mean)
        Finds the point which has the mean location of all the points in the list. This is also known as the centroid.
        Parameters:
        list - List of points
        mean - Storage for mean point. If null then a new instance will be declared
        Returns:
        The found mean
      • mean

        public static Point2D_F64 mean(Point2D_F64[] list,
                                       int offset,
                                       int length,
                                       Point2D_F64 mean)
        Finds the point which has the mean location of all the points in the array. This is also known as the centroid.
        Parameters:
        list - List of points
        offset - First index in list
        length - Length of elements in list
        mean - Storage for mean point. If null then a new instance will be declared
        Returns:
        The found mean
      • mean

        public static Point2D_F64 mean(Point2D_F64 a,
                                       Point2D_F64 b,
                                       Point2D_F64 mean)
        Computes the mean/average of two points.
        Parameters:
        a - (input) Point A
        b - (input) Point B
        mean - (output) average of 'a' and 'b'
      • random

        public static java.util.List<Point2D_F64> random(double min,
                                                         double max,
                                                         int num,
                                                         java.util.Random rand)
      • orderCCW

        public static java.util.List<Point2D_F64> orderCCW(java.util.List<Point2D_F64> points)
        Puts the points into counter-clockwise order around their center.
        Parameters:
        points - List of points. Not modified.
        Returns:
        ordered list

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.