com.jhlabs.vecmath

Class Point3f


public class Point3f
extends Tuple3f

Vector math package, converted to look similar to javax.vecmath.

Field Summary

Fields inherited from class com.jhlabs.vecmath.Tuple3f

x, y, z

Constructor Summary

Point3f()
Point3f(Point3f t)
Point3f(Tuple3f t)
Point3f(float x, float y, float z)
Point3f(float[] x)

Method Summary

float
distance(Point3f p)
float
distanceL1(Point3f p)
float
distanceSquared(Point3f p)

Methods inherited from class com.jhlabs.vecmath.Tuple3f

absolute, absolute, add, add, clamp, get, get, interpolate, negate, negate, scale, scaleAdd, scaleAdd, set, set, set, sub, sub, toString

Constructor Details

Point3f

public Point3f()

Point3f

public Point3f(Point3f t)

Point3f

public Point3f(Tuple3f t)

Point3f

public Point3f(float x,
               float y,
               float z)

Point3f

public Point3f(float[] x)

Method Details

distance

public float distance(Point3f p)

distanceL1

public float distanceL1(Point3f p)

distanceSquared

public float distanceSquared(Point3f p)