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

Class GeoTuple3D_F64<T extends GeoTuple3D_F64>

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Point3D_F64, Vector3D_F64


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

      Fields 
      Modifier and Type Field and Description
      double x 
      double y 
      double z 
    • Field Detail

      • x

        public double x
      • y

        public double y
      • z

        public double z
    • Constructor Detail

      • GeoTuple3D_F64

        public GeoTuple3D_F64(double x,
                              double y,
                              double z)
      • GeoTuple3D_F64

        public GeoTuple3D_F64()
    • 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 GeoTuple3D_F64>
        Returns:
        Dimensionality of the object.
      • set

        public void set(double x,
                        double y,
                        double z)
      • isIdentical

        public boolean isIdentical(double x,
                                   double y,
                                   double z)
      • isIdentical

        public boolean isIdentical(double x,
                                   double y,
                                   double z,
                                   double tol)
      • isIdentical

        public boolean isIdentical(GeoTuple3D_F64 t,
                                   double tol)
        Description copied from class: GeoTuple_F64
        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_F64<T extends GeoTuple3D_F64>
        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 double getX()
      • getY

        public double getY()
      • getZ

        public double getZ()
      • getIndex

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

        public void plusIP(GeoTuple3D_F64 a)

        In-place addition

        this.x = this.x + a.x;
        Parameters:
        a - value which is to be added
      • plus

        public T plus(GeoTuple3D_F64 a)

        Addition

        ret.x = this.x + a.x;
        Parameters:
        a - value which is to be added
      • timesIP

        public void timesIP(double scalar)
        In-place scalar multiplication
        Parameters:
        scalar - value that it is multiplied by
      • scale

        public void scale(double scalar)
        In-place scalar multiplication
        Parameters:
        scalar - value that it is multiplied by
      • times

        public T times(double scalar)
        Scalar multiplication
        Parameters:
        scalar - value which is it multiplied by
        Returns:
        new matrix which is the original scaled
      • print

        public void print()
      • isNaN

        public boolean isNaN()
      • setX

        public void setX(double x)
      • setY

        public void setY(double y)
      • setZ

        public void setZ(double z)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.