Interface GeomFactory3D<V extends Vector3D<? super V,​? super P>,​P extends Point3D<? super P,​? super V>>

    • Method Detail

      • convertToPoint

        @Pure
        P convertToPoint​(Point3D<?,​?> point)
        Convert the given point if it is not of the right type.
        Parameters:
        point - the point to convert.
        Returns:
        p if it is of type P, or a copy of p.
      • convertToPoint

        @Pure
        P convertToPoint​(Vector3D<?,​?> vector)
        Convert the given vector.
        Parameters:
        vector - the vector to convert.
        Returns:
        the point.
      • convertToVector

        @Pure
        V convertToVector​(Point3D<?,​?> point)
        Convert the given point.
        Parameters:
        point - the point to convert.
        Returns:
        the vector.
      • convertToVector

        @Pure
        V convertToVector​(Vector3D<?,​?> vector)
        Convert the given vector.
        Parameters:
        vector - the vector to convert.
        Returns:
        the vector.
      • newPoint

        @Pure
        P newPoint()
        Create a point.
        Returns:
        the point.
      • newPoint

        @Pure
        P newPoint​(double x,
                   double y,
                   double z)
        Create a point.
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
        z - z coordinate of the point.
        Returns:
        the point.
      • newPoint

        @Pure
        P newPoint​(int x,
                   int y,
                   int z)
        Create a point.
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
        z - z coordinate of the point.
        Returns:
        the point.
      • newVector

        @Pure
        V newVector()
        Create a vector.
        Returns:
        the vector.
      • newVector

        @Pure
        V newVector​(double x,
                    double y,
                    double z)
        Create a vector.
        Parameters:
        x - x coordinate of the vector.
        y - y coordinate of the vector.
        z - z coordinate of the vector.
        Returns:
        the vector.
      • newVector

        @Pure
        V newVector​(int x,
                    int y,
                    int z)
        Create a vector.
        Parameters:
        x - x coordinate of the vector.
        y - y coordinate of the vector.
        z - z coordinate of the vector.
        Returns:
        the vector.
      • newQuaternion

        @Pure
        Quaternion newQuaternion​(Vector3D<?,​?> axis,
                                 double angle)
        Creates a Quaternion.
        Parameters:
        axis - the axis of the quaternion.
        angle - the angle of the quaternion.
        Returns:
        the quaternion.
      • newQuaternion

        @Pure
        Quaternion newQuaternion​(double attitude,
                                 double bank,
                                 double heading)
        Creates a Quaternion.
        Parameters:
        attitude - the attitude of the quaternion
        bank - the bank of the quaternion
        heading - the heading of the quaternion
        Returns:
        the quaternion