org.openmali.vecmath2
Interface PointInterface<T extends TupleNf<T>,P extends TupleNf<?>>

All Superinterfaces:
TupleInterface<T>
All Known Implementing Classes:
Point2f, Point3f

public interface PointInterface<T extends TupleNf<T>,P extends TupleNf<?>>
extends TupleInterface<T>

Common interface for all vector types.
Using it may slow down execution time because of prevented inlining.


Method Summary
 float distance(P that)
           
 float distanceSquared(P that)
           
 float distanceToOrigin()
           
 float distanceToOriginSquared()
           
 
Methods inherited from interface org.openmali.vecmath2.TupleInterface
absolute, absolute, add, add, addValue, clamp, clamp, clampMax, clampMax, clampMin, clampMin, div, divValue, epsilonEquals, fill, get, get, get, getSize, getValue, interpolate, interpolate, isDirty, isReadOnly, mul, mulValue, negate, negate, round, round, scale, scale, scaleAdd, scaleAdd, set, set, set, setClean, setValue, setZero, sub, sub, subValue
 

Method Detail

distanceSquared

float distanceSquared(P that)
Returns:
the squared distance betweeen this point and the other one

distance

float distance(P that)
Returns:
the distance betweeen this point and the other one

distanceToOriginSquared

float distanceToOriginSquared()
Returns:
the squared distance betweeen this point and the origin

distanceToOrigin

float distanceToOrigin()
Returns:
the distance betweeen this point and the origin