Class Vector2D.PowerResult<T extends Vector2D<? super T,​?>>

  • Type Parameters:
    T - the type of the vector.
    Enclosing interface:
    Vector2D<RV extends Vector2D<? super RV,​? super RP>,​RP extends Point2D<? super RP,​? super RV>>

    public static final class Vector2D.PowerResult<T extends Vector2D<? super T,​?>>
    extends Object
    Result of the power of a Vector2D.
    Since:
    13.0
    Version:
    17.0 2020-01-04 14:41:43
    Author:
    Stéphane GALLAND
    Maven Group Id:
    org.arakhne.afc.core
    Maven Artifact Id:
    mathgeom
    • Constructor Detail

      • PowerResult

        PowerResult​(double scalar)
        Construct a result for even power.
        Parameters:
        scalar - the scalar result.
      • PowerResult

        PowerResult​(T vector)
        Construct a result for the odd power.
        Parameters:
        vector - the vector result.
    • Method Detail

      • equals

        @Pure
        public boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • hashCode

        @Pure
        public int hashCode()
        Overrides:
        hashCode in class Object
      • getScalar

        @Pure
        public double getScalar()
        Replies the scalar result.
        Returns:
        the scalar result.
      • getVector

        @Pure
        public T getVector()
        Replies the vector result.
        Returns:
        the vector result.
      • isVectorial

        @Pure
        public boolean isVectorial()
        Replies if the result is vectorial.
        Returns:
        true if the result is vectorial. false if the result if scalar.