com.jhlabs.vecmath

Class Point4f


public class Point4f
extends Tuple4f

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

Field Summary

Fields inherited from class com.jhlabs.vecmath.Tuple4f

w, x, y, z

Constructor Summary

Point4f()
Point4f(Point4f t)
Point4f(Tuple4f t)
Point4f(float x, float y, float z, float w)
Point4f(float[] x)

Method Summary

float
distance(Point4f p)
float
distanceL1(Point4f p)
float
distanceSquared(Point4f p)

Methods inherited from class com.jhlabs.vecmath.Tuple4f

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

Constructor Details

Point4f

public Point4f()

Point4f

public Point4f(Point4f t)

Point4f

public Point4f(Tuple4f t)

Point4f

public Point4f(float x,
               float y,
               float z,
               float w)

Point4f

public Point4f(float[] x)

Method Details

distance

public float distance(Point4f p)

distanceL1

public float distanceL1(Point4f p)

distanceSquared

public float distanceSquared(Point4f p)