Class GeomFactory3ifx

    • Field Detail

      • SINGLETON

        public static final GeomFactory3ifx SINGLETON
        The singleton of the factory.
    • Constructor Detail

      • GeomFactory3ifx

        public GeomFactory3ifx()
    • Method Detail

      • newPoint

        public Point3ifx newPoint​(int x,
                                  int y,
                                  int z)
        Description copied from interface: GeomFactory3D
        Create a point.
        Specified by:
        newPoint in interface GeomFactory3D<Vector3ifx,​Point3ifx>
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
        z - z coordinate of the point.
        Returns:
        the point.
      • newPoint

        public Point3ifx newPoint​(double x,
                                  double y,
                                  double z)
        Description copied from interface: GeomFactory3D
        Create a point.
        Specified by:
        newPoint in interface GeomFactory3D<Vector3ifx,​Point3ifx>
        Parameters:
        x - x coordinate of the point.
        y - y coordinate of the point.
        z - z coordinate of the point.
        Returns:
        the point.
      • newPoint

        public Point3ifx newPoint​(javafx.beans.property.IntegerProperty x,
                                  javafx.beans.property.IntegerProperty y,
                                  javafx.beans.property.IntegerProperty z)
        Create a point with properties.
        Parameters:
        x - the x property.
        y - the y property.
        z - the z property.
        Returns:
        the vector.
      • newVector

        public Vector3ifx newVector​(int x,
                                    int y,
                                    int z)
        Description copied from interface: GeomFactory3D
        Create a vector.
        Specified by:
        newVector in interface GeomFactory3D<Vector3ifx,​Point3ifx>
        Parameters:
        x - x coordinate of the vector.
        y - y coordinate of the vector.
        z - z coordinate of the vector.
        Returns:
        the vector.
      • newVector

        public Vector3ifx newVector​(double x,
                                    double y,
                                    double z)
        Description copied from interface: GeomFactory3D
        Create a vector.
        Specified by:
        newVector in interface GeomFactory3D<Vector3ifx,​Point3ifx>
        Parameters:
        x - x coordinate of the vector.
        y - y coordinate of the vector.
        z - z coordinate of the vector.
        Returns:
        the vector.
      • newBox

        public RectangularPrism3ifx newBox​(int x,
                                           int y,
                                           int z,
                                           int width,
                                           int height,
                                           int depth)
        Description copied from interface: GeomFactory3ai
        Create a bounding box.
        Specified by:
        newBox in interface GeomFactory3ai<PathElement3ifx,​Point3ifx,​Vector3ifx,​RectangularPrism3ifx>
        Parameters:
        x - the x coordinate of the lower corner.
        y - the y coordinate of the lower corner.
        z - the z coordinate of the lower corner.
        width - the width of the box.
        height - the height of the box.
        depth - the depth of the box.
        Returns:
        the box.
      • newLinePathElement

        public PathElement3ifx newLinePathElement​(int startX,
                                                  int startY,
                                                  int startZ,
                                                  int targetX,
                                                  int targetY,
                                                  int targetZ)
        Description copied from interface: GeomFactory3ai
        Create a line-to path element to the given point.
        Specified by:
        newLinePathElement in interface GeomFactory3ai<PathElement3ifx,​Point3ifx,​Vector3ifx,​RectangularPrism3ifx>
        Parameters:
        startX - x coordinate of the start point.
        startY - y coordinate of the start point.
        startZ - z coordinate of the start point.
        targetX - x coordinate of the target point.
        targetY - y coordinate of the target point.
        targetZ - z coordinate of the target point.
        Returns:
        the path element.
      • newClosePathElement

        public PathElement3ifx newClosePathElement​(int lastPointX,
                                                   int lastPointY,
                                                   int lastPointZ,
                                                   int firstPointX,
                                                   int firstPointY,
                                                   int firstPointZ)
        Description copied from interface: GeomFactory3ai
        Create a close path element.
        Specified by:
        newClosePathElement in interface GeomFactory3ai<PathElement3ifx,​Point3ifx,​Vector3ifx,​RectangularPrism3ifx>
        Parameters:
        lastPointX - x coordinate of the last point on the path
        lastPointY - y coordinate of the last point on the path
        lastPointZ - z coordinate of the last point on the path
        firstPointX - x coordinate of the first point on the path.
        firstPointY - y coordinate of the first point on the path.
        firstPointZ - z coordinate of the first point on the path.
        Returns:
        the path element.
      • newCurvePathElement

        public PathElement3ifx newCurvePathElement​(int startX,
                                                   int startY,
                                                   int startZ,
                                                   int controlX,
                                                   int controlY,
                                                   int controlZ,
                                                   int targetX,
                                                   int targetY,
                                                   int targetZ)
        Description copied from interface: GeomFactory3ai
        Create a quadratic curve path element to the given point through the given control point.
        Specified by:
        newCurvePathElement in interface GeomFactory3ai<PathElement3ifx,​Point3ifx,​Vector3ifx,​RectangularPrism3ifx>
        Parameters:
        startX - x coordinate of the start point.
        startY - y coordinate of the start point.
        startZ - z coordinate of the start point.
        controlX - x coordinate of the control point.
        controlY - y coordinate of the control point.
        controlZ - z coordinate of the control point.
        targetX - x coordinate of the target point.
        targetY - y coordinate of the target point.
        targetZ - z coordinate of the target point.
        Returns:
        the path element.
      • newCurvePathElement

        public PathElement3ifx newCurvePathElement​(int startX,
                                                   int startY,
                                                   int startZ,
                                                   int controlX1,
                                                   int controlY1,
                                                   int controlZ1,
                                                   int controlX2,
                                                   int controlY2,
                                                   int controlZ2,
                                                   int targetX,
                                                   int targetY,
                                                   int targetZ)
        Description copied from interface: GeomFactory3ai
        Create a curve path element to the given point through the two given control points.
        Specified by:
        newCurvePathElement in interface GeomFactory3ai<PathElement3ifx,​Point3ifx,​Vector3ifx,​RectangularPrism3ifx>
        Parameters:
        startX - x coordinate of the start point.
        startY - y coordinate of the start point.
        startZ - z coordinate of the start point.
        controlX1 - x coordinate of the control point.
        controlY1 - y coordinate of the control point.
        controlZ1 - z coordinate of the control point.
        controlX2 - x coordinate of the control point.
        controlY2 - y coordinate of the control point.
        controlZ2 - z coordinate of the control point.
        targetX - x coordinate of the target point.
        targetY - y coordinate of the target point.
        targetZ - z coordinate of the target point.
        Returns:
        the path element.
      • newSegment

        public Segment3ifx newSegment​(int x1,
                                      int y1,
                                      int z1,
                                      int x2,
                                      int y2,
                                      int z2)
        Description copied from interface: GeomFactory3ai
        Create a segment.
        Specified by:
        newSegment in interface GeomFactory3ai<PathElement3ifx,​Point3ifx,​Vector3ifx,​RectangularPrism3ifx>
        Parameters:
        x1 - the x coordinate of the first point of the segment.
        y1 - the y coordinate of the first point of the segment.
        z1 - the y coordinate of the first point of the segment.
        x2 - the x coordinate of the second point of the segment.
        y2 - the y coordinate of the second point of the segment.
        z2 - the y coordinate of the second point of the segment.
        Returns:
        the new segment.
      • newQuaternion

        public Quaternion newQuaternion​(double attitude,
                                        double bank,
                                        double heading)
        Description copied from interface: GeomFactory3D
        Creates a Quaternion.
        Specified by:
        newQuaternion in interface GeomFactory3D<Vector3ifx,​Point3ifx>
        Parameters:
        attitude - the attitude of the quaternion
        bank - the bank of the quaternion
        heading - the heading of the quaternion
        Returns:
        the quaternion