Documentation of 'georegression.struct.GeoTuple4D_F32' Java class
GeoTuple4D_F32
georegression.struct

Class GeoTuple4D_F32<T extends GeoTuple4D_F32>

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Point4D_F32, Vector4D_F32


    public abstract class GeoTuple4D_F32<T extends GeoTuple4D_F32>
    extends GeoTuple_F32<T>
    Generic Tuple for geometric objects that store (x,y,z,w)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      float w 
      float x 
      float y 
      float z 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      float distance(GeoTuple4D_F32 t) 
      float distance2(GeoTuple4D_F32 t) 
      int getDimension()
      The dimensionality of space the tuple is contained in and the number of values it has.
      float getIndex(int index)
      Returns the value of the tuple along the specified coordinate system axis.
      float getW() 
      float getX() 
      float getY() 
      float getZ() 
      boolean isIdentical(float x, float y, float z, float w) 
      boolean isIdentical(float x, float y, float z, float w, float tol) 
      boolean isIdentical(GeoTuple4D_F32 t, float tol)
      Checks to see if the two GeoTuple have values which are nearly the same.
      boolean isNaN() 
      float norm()
      Computes the Euclidean norm.
      float normSq()
      Computes the square of the Euclidean norm.
      void print() 
      void set(float x, float y, float z, float w) 
      void setIndex(int index, float value) 
      void setW(float w) 
      void setX(float x) 
      void setY(float y) 
      void setZ(float z) 
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • x

        public float x
      • y

        public float y
      • z

        public float z
      • w

        public float w
    • Constructor Detail

      • GeoTuple4D_F32

        public GeoTuple4D_F32(float x,
                              float y,
                              float z,
                              float w)
      • GeoTuple4D_F32

        public GeoTuple4D_F32()
    • Method Detail

      • getDimension

        public int getDimension()
        Description copied from class: GeoTuple
        The dimensionality of space the tuple is contained in and the number of values it has.
        Specified by:
        getDimension in class GeoTuple<T extends GeoTuple4D_F32>
        Returns:
        Dimensionality of the object.
      • set

        public void set(float x,
                        float y,
                        float z,
                        float w)
      • isIdentical

        public boolean isIdentical(float x,
                                   float y,
                                   float z,
                                   float w)
      • isIdentical

        public boolean isIdentical(float x,
                                   float y,
                                   float z,
                                   float w,
                                   float tol)
      • isIdentical

        public boolean isIdentical(GeoTuple4D_F32 t,
                                   float tol)
        Description copied from class: GeoTuple_F32
        Checks to see if the two GeoTuple have values which are nearly the same. False is always returned if the dimension is different.
        Overrides:
        isIdentical in class GeoTuple_F32<T extends GeoTuple4D_F32>
        Parameters:
        t - The GeoTuple it is being compared against.
        tol - How similar each element must be for them to be considered identical.
        Returns:
        if they are identical or not.
      • getX

        public float getX()
      • getY

        public float getY()
      • getZ

        public float getZ()
      • getW

        public float getW()
      • getIndex

        public float getIndex(int index)
        Description copied from class: GeoTuple_F32
        Returns the value of the tuple along the specified coordinate system axis.
        Specified by:
        getIndex in class GeoTuple_F32<T extends GeoTuple4D_F32>
        Parameters:
        index - Which axis in the coordinate system.
        Returns:
        Its value.
      • print

        public void print()
      • isNaN

        public boolean isNaN()
      • setX

        public void setX(float x)
      • setY

        public void setY(float y)
      • setZ

        public void setZ(float z)
      • setW

        public void setW(float w)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.