Class VRUtils

java.lang.Object
videoRangePanel.VRUtils

public class VRUtils extends Object
Some useful functions for the video range module.
Author:
Jamie Macaulay
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double[]
    latLong2Array(LatLong[] points, boolean lat)
    Convert a LatLong array to a double array with one dimensions i.e.
    static double[]
    points2Array(Point[] points, boolean x)
    Convert a point array to a double array with one dimensions i.e.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VRUtils

      public VRUtils()
  • Method Details

    • latLong2Array

      public static double[] latLong2Array(LatLong[] points, boolean lat)
      Convert a LatLong array to a double array with one dimensions i.e. latitude or longitude
      Parameters:
      lat - - true for latitude or false for longitude.
      array - - the LatLong array to convert
      Returns:
      - double array of either x or y values
    • points2Array

      public static double[] points2Array(Point[] points, boolean x)
      Convert a point array to a double array with one dimensions i.e. x or y
      Parameters:
      x - - true for x or false for y.
      array - - the point array to convert
      Returns:
      - double array of either x or y values