Package org.arakhne.afc.math.geometry.d3
Class Vector3D.PowerResult<T extends Vector3D<? super T,?>>
- java.lang.Object
-
- org.arakhne.afc.math.geometry.d3.Vector3D.PowerResult<T>
-
- Type Parameters:
T
- the type of the vector.
- Enclosing interface:
- Vector3D<RV extends Vector3D<? super RV,? super RP>,RP extends Point3D<? super RP,? super RV>>
public static final class Vector3D.PowerResult<T extends Vector3D<? super T,?>> extends Object
Result of the power of a Vector3D.- Since:
- 13.0
- Version:
- 17.0 2020-01-04 14:41:43
- Author:
- Thomas PIOTROWSKI, 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 boolean
equals(Object obj)
double
getScalar()
Replies the scalar result.T
getVector()
Replies the vector result.int
hashCode()
boolean
isVectorial()
Replies if the result is vectorial.String
toString()
-
-
-
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:
true
if the result is vectorial.false
if the result if scalar.
-
-