Class OrientedPoint3i

    • Constructor Detail

      • OrientedPoint3i

        public OrientedPoint3i()
        Construct an empty oriented point.
      • OrientedPoint3i

        public OrientedPoint3i​(Tuple3D<?> tuple)
        Constructor by copy.
        Parameters:
        tuple - the tuple to copy.
      • OrientedPoint3i

        public OrientedPoint3i​(int x,
                               int y,
                               int z)
        Construct an oriented point from the two given coordinates.
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
        z - z coordinate of the point.
      • OrientedPoint3i

        public OrientedPoint3i​(Point3D<?,​?> point,
                               Vector3D<?,​?> vector)
        Construct an oriented point from a point and a tangent vector.
        Parameters:
        point - the point.
        vector - the tangent vector.
      • OrientedPoint3i

        public OrientedPoint3i​(int x,
                               int y,
                               int z,
                               int tanX,
                               int tanY,
                               int tanZ)
        Construct an oriented point from the given coordinates.
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
        z - z coordinate of the point.
        tanX - x coordinate of the vector.
        tanY - y coordinate of the vector.
        tanZ - z coordinate of the vector.
      • OrientedPoint3i

        public OrientedPoint3i​(int x,
                               int y,
                               int z,
                               int tanX,
                               int tanY,
                               int tanZ,
                               int norX,
                               int norY,
                               double norZ)
                        throws Exception
        Construct an oriented point from the given coordinates.
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
        z - z coordinate of the point.
        tanX - x coordinate of the vector.
        tanY - y coordinate of the vector.
        tanZ - z coordinate of the vector.
        norX - x coordinate of the normal vector.
        norY - y coordinate of the normal vector.
        norZ - z coordinate of the normal vector.
        Throws:
        Exception - this exception is thrown when the given vectors are not orthogonal.
    • Method Detail

      • hashCode

        @Pure
        public int hashCode()
        Description copied from interface: Tuple3D
        Returns a hash code value based on the data values in this object. Two different Tuple2f objects with identical data values (i.e., Tuple2f.equals returns true) will return the same hash code value. Two objects with different data members may return the same hash value, although this is not likely.
        Specified by:
        hashCode in interface Tuple3D<Point3i>
        Overrides:
        hashCode in class Tuple3i<Point3i>
        Returns:
        the integer hash code value
      • getTangentX

        public double getTangentX()
        Description copied from interface: OrientedPoint3D
        Replies the X coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.
        Specified by:
        getTangentX in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the x coordinate of the tangent vector.
      • itx

        public int itx()
        Description copied from interface: OrientedPoint3D
        Replies the X coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.
        Specified by:
        itx in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the x coordinate of the tangent vector.
      • getTangentY

        public double getTangentY()
        Description copied from interface: OrientedPoint3D
        Replies the Y coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.
        Specified by:
        getTangentY in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the y coordinate of the tangent vector.
      • ity

        public int ity()
        Description copied from interface: OrientedPoint3D
        Replies the Y coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.
        Specified by:
        ity in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the y coordinate of the tangent vector.
      • getTangentZ

        public double getTangentZ()
        Description copied from interface: OrientedPoint3D
        Replies the Z coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.
        Specified by:
        getTangentZ in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the z coordinate of the tangent vector.
      • itz

        public int itz()
        Description copied from interface: OrientedPoint3D
        Replies the Z coordinate of the tangent vector. If this point is not part of a polyline, the tangent vector is null.
        Specified by:
        itz in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the z coordinate of the tangent vector.
      • getNormalX

        public double getNormalX()
        Description copied from interface: OrientedPoint3D
        Replies the X coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.
        Specified by:
        getNormalX in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the x coordinate of the normal vector.
      • inx

        public int inx()
        Description copied from interface: OrientedPoint3D
        Replies the X coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.
        Specified by:
        inx in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the x coordinate of the normal vector.
      • getNormalY

        public double getNormalY()
        Description copied from interface: OrientedPoint3D
        Replies the Y coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.
        Specified by:
        getNormalY in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the y coordinate of the normal vector.
      • iny

        public int iny()
        Description copied from interface: OrientedPoint3D
        Replies the Y coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.
        Specified by:
        iny in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the y coordinate of the normal vector.
      • getNormalZ

        public double getNormalZ()
        Description copied from interface: OrientedPoint3D
        Replies the Z coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.
        Specified by:
        getNormalZ in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the z coordinate of the normal vector.
      • inz

        public int inz()
        Description copied from interface: OrientedPoint3D
        Replies the Z coordinate of the normal vector. If this point is not part of a polyline, the normal vector is null.
        Specified by:
        inz in interface OrientedPoint3D<Point3i,​Vector3i>
        Returns:
        the z coordinate of the normal vector.