org.ode4j.math
Interface DVector4C
- All Known Implementing Classes:
- DVector4
public interface DVector4C
Constant (unmodifiable) interface for dVector3.
This returns an unmodifiable view of an (most likely) modifiable object.
WARNING: This is only unmodifiable for the user. The class that returned
this object may continue to modify it, these changes will also reflect in
the 'unmodifiable view' that the user has.
If the user requires a lasting immutable object, then the object needs to
be cloned.
This interface should only be implemented by DVector3.
This allows efficient optimisation by the JVM, which is not
possible with 2 (still somewhat efficient) or more (slow)
sub-classes.
- Author:
- Tilmann Zaeschke
get
double get(int i)
- Parameters:
i
- The row to return [0, 1, 2].
get0
double get0()
get1
double get1()
get2
double get2()
get3
double get3()
lengthSquared
double lengthSquared()
length
double length()
dot
double dot(DVector4C b)
- See Also:
DVector4.dot(DVector4C)