Package wprover

Class GeoPoly


  • public class GeoPoly
    extends PolyBasic
    GeoPoly is a singleton class that provides methods for constructing polynomial expressions related to geometric properties and relationships. It extends the PolyBasic class and provides various methods for creating polynomial terms, performing arithmetic operations on them, and checking conditions related to geometry.
    • Method Detail

      • addZeroN

        public static boolean addZeroN​(int n)
        Adds a non-zero integer to the zeron array if it is not already present.
        Parameters:
        n - the integer to add
        Returns:
        true if the integer was added, false if it was already present or zero
      • clearZeroN

        public static void clearZeroN()
        Clears the zeron array by setting all elements to zero.
      • getZeron

        public static int[] getZeron()
        Returns the zeron array.
        Returns:
        the zeron array
      • getPoly

        public static GeoPoly getPoly()
        Returns the singleton instance of GeoPoly.
        Returns:
        the singleton instance of GeoPoly
      • vzero

        public static boolean vzero​(int n)
        Checks if a given integer is present in the zeron array.
        Parameters:
        n - the integer to check
        Returns:
        true if the integer is present, false otherwise
      • mm_poly

        public TMono mm_poly​(CNdg c,
                             DrawProcess dp)
        Constructs a TMono representing a non-degenerate geometric condition.
        Parameters:
        c - the CNdg object representing the condition
        dp - the DrawProcess object
        Returns:
        the TMono representing the non-degenerate condition