com.supermap.ar

Class Point3D

  • java.lang.Object
    • com.supermap.ar.Point3D


  • public class Point3D
    extends java.lang.Object
    AR scene 3D point
    • Constructor Summary

      Constructors 
      Constructor and Description
      Point3D()
      Construction method
      Point3D(float x, float y, float z)
      create a 3D point
      Point3D(Point3D p)
      create a 3D point
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void add(float x, float y, float z)
      set point coordinate
      void add(Point3D p)
      add 3D point
      void copy(Point3D out)
      copy the point coordinate to a new object
      float[] getCoordinatesArray()
      Get the point coordinates, stored in the array in x, y, z order
      void set(float x, float y, float z)
      set point coordinate
      java.lang.String toString()
      Get the point coordinates as a string, get in x, y, z order
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Point3D

        public Point3D(float x,
                       float y,
                       float z)
        create a 3D point
        Parameters:
        x - x axis
        y - y axis
        z - z axis
      • Point3D

        public Point3D(Point3D p)
        create a 3D point
        Parameters:
        p - 3D point
      • Point3D

        public Point3D()
        Construction method
    • Method Detail

      • set

        public void set(float x,
                        float y,
                        float z)
        set point coordinate
        Parameters:
        x - x coordinate
        y - y coordinate
        z - z coordinate
      • add

        public void add(float x,
                        float y,
                        float z)
        set point coordinate
        Parameters:
        x - x coordinate
        y - y coordinate
        z - z coordinate
      • add

        public void add(Point3D p)
        add 3D point
        Parameters:
        p - 3D point
      • getCoordinatesArray

        public float[] getCoordinatesArray()
        Get the point coordinates, stored in the array in x, y, z order
        Returns:
        point coordinates
      • toString

        public java.lang.String toString()
        Get the point coordinates as a string, get in x, y, z order
        Overrides:
        toString in class java.lang.Object
        Returns:
        point coordinates
      • copy

        public void copy(Point3D out)
        copy the point coordinate to a new object
        Parameters:
        out - new point object