Package org.arakhne.afc.math.geometry.d2
Class Vector2D.PowerResult<T extends Vector2D<? super T,?>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d2.Vector2D.PowerResult<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 Summary
Constructors Constructor Description PowerResult(double scalar)Construct a result for even power.PowerResult(T vector)Construct a result for the odd power.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)doublegetScalar()Replies the scalar result.TgetVector()Replies the vector result.inthashCode()booleanisVectorial()Replies if the result is vectorial.StringtoString()
-
-
-
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
-
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:
trueif the result is vectorial.falseif the result if scalar.
-
-