com.aspose.html.drawing

Class Angle

  • All Implemented Interfaces:
    com.aspose.ms.System.IEquatable<Unit>


    public final class Angle
    extends Dimension

    The angle data type

    • Constructor Detail

      • Angle

        public Angle(double value,
                     UnitType type)

        Initializes a new instance of the Angle class.

        Parameters:
        value - The value.
        type - The angle type.
    • Method Detail

      • op_Addition

        public static Angle op_Addition(Angle a,
                                        Angle b)

        Implements the operator +.

        Parameters:
        a - Parameter a.
        b - Parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Arguments are null
        com.aspose.ms.System.ArgumentException - Arguments have different types or Arguments have different resolution or
      • op_Subtraction

        public static Angle op_Subtraction(Angle a,
                                           Angle b)

        Implements the operator -.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Arguments are null
        com.aspose.ms.System.ArgumentException - Arguments have different types or Arguments have different resolutions or
      • op_LessThan

        public static boolean op_LessThan(Angle a,
                                          Angle b)

        Implements the operator <.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentException - Arguments have different types
        com.aspose.ms.System.ArgumentNullException - An argument is null
      • op_GreaterThan

        public static boolean op_GreaterThan(Angle a,
                                             Angle b)

        Implements the operator >.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentException - Arguments have different types
        com.aspose.ms.System.ArgumentNullException - An argument is null
      • op_LessThanOrEqual

        public static boolean op_LessThanOrEqual(Angle a,
                                                 Angle b)

        Implements the operator <=.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentException - Arguments have different types
        com.aspose.ms.System.ArgumentNullException - An argument is null
      • op_GreaterThanOrEqual

        public static boolean op_GreaterThanOrEqual(Angle a,
                                                    Angle b)

        Implements the operator >=.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
        Throws:
        com.aspose.ms.System.ArgumentException - Arguments have different types
        com.aspose.ms.System.ArgumentNullException - An argument is null
      • op_Equality

        public static boolean op_Equality(Angle a,
                                          Angle b)

        Implements the operator ==.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.
      • op_Inequality

        public static boolean op_Inequality(Angle a,
                                            Angle b)

        Implements the operator !=.

        Parameters:
        a - The parameter a.
        b - The parameter b.
        Returns:
        The result of the operator.