Top Description Fields Constructors Methods
com.jogamp.audio.windows.waveout

pack-priv Class Vec3f

extends Object
Class Inheritance

3-element single-precision vector

Field Summary

Modifier and TypeField and Description
public static final Vec3f
public static final Vec3f
public static final Vec3f
private float
x

public static final Vec3f
private float
y

public static final Vec3f
private float
z

public static final Vec3f

Constructor Summary

AccessConstructor and Description
public
public
Vec3f(final Vec3f arg)

public
Vec3f(final float x, final float y, final float z)

Method Summary

Modifier and TypeMethod and Description
public void
add(final Vec3f b)

this = this + b

public void
add(final Vec3f a, final Vec3f b)

this = a + b

public Vec3f
addScaled(final float s, final Vec3f arg)

Returns this + s * arg; creates new vector

public void
addScaled(final Vec3f a, final float s, final Vec3f b)

this = a + s * b

public void
componentMul(final Vec3f arg)

Sets each component of this vector to the product of the component with the corresponding component of the argument vector.

public Vec3f
copy()

public Vec3f
cross(final Vec3f arg)

Returns this cross arg; creates new vector

public void
cross(final Vec3f a, final Vec3f b)

this = a cross b.

public float
dot(final Vec3f arg)

public float
get(final int i)

Gets the ith component, 0 <= i < 3

public float
public float
public Vec3f
minus(final Vec3f arg)

Returns this - arg; creates new vector

public void
public Vec3f
plus(final Vec3f arg)

Returns this + arg; creates new vector

public void
scale(final float val)

this = this * val

public void
set(final Vec3f arg)

public void
set(final float x, final float y, final float z)

public void
set(final int i, final float val)

Sets the ith component, 0 <= i < 3

public void
setX(final float x)

public void
setY(final float y)

public void
setZ(final float z)

public void
sub(final Vec3f b)

this = this - b

public void
sub(final Vec3f a, final Vec3f b)

this = a - b

public Vec3f
times(final float val)

Returns this * val; creates new vector

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public float
x()

public float
y()

public float
z()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

NEG_X_AXISback to summary
public static final Vec3f NEG_X_AXIS
NEG_Y_AXISback to summary
public static final Vec3f NEG_Y_AXIS
NEG_Z_AXISback to summary
public static final Vec3f NEG_Z_AXIS
xback to summary
private float x
X_AXISback to summary
public static final Vec3f X_AXIS
yback to summary
private float y
Y_AXISback to summary
public static final Vec3f Y_AXIS
zback to summary
private float z
Z_AXISback to summary
public static final Vec3f Z_AXIS

Constructor Detail

Vec3fback to summary
public Vec3f()
Vec3fback to summary
public Vec3f(final Vec3f arg)
Vec3fback to summary
public Vec3f(final float x, final float y, final float z)

Method Detail

addback to summary
public void add(final Vec3f b)

this = this + b

addback to summary
public void add(final Vec3f a, final Vec3f b)

this = a + b

addScaledback to summary
public Vec3f addScaled(final float s, final Vec3f arg)

Returns this + s * arg; creates new vector

addScaledback to summary
public void addScaled(final Vec3f a, final float s, final Vec3f b)

this = a + s * b

componentMulback to summary
public void componentMul(final Vec3f arg)

Sets each component of this vector to the product of the component with the corresponding component of the argument vector.

copyback to summary
public Vec3f copy()
crossback to summary
public Vec3f cross(final Vec3f arg)

Returns this cross arg; creates new vector

crossback to summary
public void cross(final Vec3f a, final Vec3f b)

this = a cross b.

Note

"this" must be a different vector than both a and b.

dotback to summary
public float dot(final Vec3f arg)
getback to summary
public float get(final int i)

Gets the ith component, 0 <= i < 3

lengthback to summary
public float length()
lengthSquaredback to summary
public float lengthSquared()
minusback to summary
public Vec3f minus(final Vec3f arg)

Returns this - arg; creates new vector

normalizeback to summary
public void normalize()
plusback to summary
public Vec3f plus(final Vec3f arg)

Returns this + arg; creates new vector

scaleback to summary
public void scale(final float val)

this = this * val

setback to summary
public void set(final Vec3f arg)
setback to summary
public void set(final float x, final float y, final float z)
setback to summary
public void set(final int i, final float val)

Sets the ith component, 0 <= i < 3

setXback to summary
public void setX(final float x)
setYback to summary
public void setY(final float y)
setZback to summary
public void setZ(final float z)
subback to summary
public void sub(final Vec3f b)

this = this - b

subback to summary
public void sub(final Vec3f a, final Vec3f b)

this = a - b

timesback to summary
public Vec3f times(final float val)

Returns this * val; creates new vector

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override
xback to summary
public float x()
yback to summary
public float y()
zback to summary
public float z()