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

Class GeoTuple_F32<T extends GeoTuple_F32>

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    GeoTuple2D_F32, GeoTuple3D_F32, GeoTuple4D_F32


    public abstract class GeoTuple_F32<T extends GeoTuple_F32>
    extends GeoTuple<T>
    Describes geometric objects that are composed of N float values. Where N is the dimension of space the object is contained in. Points and vectors are two examples of a GeoTuple. Each value is the value of the object along a dimension in the space it occupies.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      GeoTuple_F32() 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method and Description
      T copy()
      Generic copy routine.
      float distance(T t) 
      float distance2(T t) 
      abstract float getIndex(int index)
      Returns the value of the tuple along the specified coordinate system axis.
      boolean isIdentical(T t, float tol)
      Checks to see if the two GeoTuple have values which are nearly the same.
      float norm()
      Computes the Euclidean norm.
      float normSq()
      Computes the square of the Euclidean norm.
      abstract void setIndex(int index, float value) 
      • Methods inherited from class java.lang.Object

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

      • GeoTuple_F32

        public GeoTuple_F32()
    • Method Detail

      • isIdentical

        public boolean isIdentical(T t,
                                   float tol)
        Checks to see if the two GeoTuple have values which are nearly the same. False is always returned if the dimension is different.
        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.
      • copy

        public T copy()
        Generic copy routine. It is recommended that this be overridden with a faster implementation.
        Specified by:
        copy in class GeoTuple<T extends GeoTuple_F32>
        Returns:
        An exact copy of this GeoTuple.
      • norm

        public float norm()
        Computes the Euclidean norm.
        Returns:
        norm.
      • normSq

        public float normSq()
        Computes the square of the Euclidean norm.
        Returns:
        norm squared.
      • distance

        public float distance(T t)
      • distance2

        public float distance2(T t)
      • getIndex

        public abstract float getIndex(int index)
        Returns the value of the tuple along the specified coordinate system axis.
        Parameters:
        index - Which axis in the coordinate system.
        Returns:
        Its value.
      • setIndex

        public abstract void setIndex(int index,
                                      float value)

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.