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

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

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

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

Author:
Marvin Froehlich (aka Qudus)

Method Summary
 float distance(P that)
           
 float distanceSquared(P that)
           
 
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, getSize, getValue, interpolate, interpolate, isDirty, isReadOnly, mul, mulValue, negate, negate, round, round, scale, scale, scaleAdd, scaleAdd, 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