Class ImmutableGeomFactory3D

    • Method Detail

      • convertToPoint

        public ImmutablePoint3D convertToPoint​(Point3D<?,​?> pt)
        Description copied from interface: GeomFactory3D
        Convert the given point if it is not of the right type.
        Parameters:
        pt - the point to convert.
        Returns:
        p if it is of type P, or a copy of p.
      • convertToPoint

        public ImmutablePoint3D convertToPoint​(Vector3D<?,​?> v)
        Description copied from interface: GeomFactory3D
        Convert the given vector.
        Parameters:
        v - the vector to convert.
        Returns:
        the point.
      • convertToVector

        public ImmutableVector3D convertToVector​(Point3D<?,​?> pt)
        Description copied from interface: GeomFactory3D
        Convert the given point.
        Parameters:
        pt - the point to convert.
        Returns:
        the vector.
      • convertToVector

        public ImmutableVector3D convertToVector​(Vector3D<?,​?> v)
        Description copied from interface: GeomFactory3D
        Convert the given vector.
        Parameters:
        v - the vector to convert.
        Returns:
        the vector.
      • newPoint

        public ImmutablePoint3D newPoint​(double x,
                                         double y,
                                         double z)
        Description copied from interface: GeomFactory3D
        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

        public ImmutablePoint3D newPoint​(int x,
                                         int y,
                                         int z)
        Description copied from interface: GeomFactory3D
        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

        public ImmutableVector3D newVector​(double x,
                                           double y,
                                           double z)
        Description copied from interface: GeomFactory3D
        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

        public ImmutableVector3D newVector​(int x,
                                           int y,
                                           int z)
        Description copied from interface: GeomFactory3D
        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

        public Quaternion newQuaternion​(Vector3D<?,​?> axis,
                                        double angle)
        Description copied from interface: GeomFactory3D
        Creates a Quaternion.
        Parameters:
        axis - the axis of the quaternion.
        angle - the angle of the quaternion.
        Returns:
        the quaternion.
      • newQuaternion

        public Quaternion newQuaternion​(double attitude,
                                        double bank,
                                        double heading)
        Description copied from interface: GeomFactory3D
        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