public class Vec4f extends Object
| Modifier and Type | Field and Description |
|---|---|
private float |
w |
private float |
x |
private float |
y |
private float |
z |
| Constructor and Description |
|---|
Vec4f() |
Vec4f(float x,
float y,
float z,
float w) |
Vec4f(Vec4f arg) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Vec4f b)
this = this + b
|
void |
add(Vec4f a,
Vec4f b)
this = a + b
|
Vec4f |
addScaled(float s,
Vec4f arg)
Returns this + s * arg; creates new vector
|
void |
addScaled(Vec4f a,
float s,
Vec4f b)
this = a + s * b
|
void |
componentMul(Vec4f arg)
Sets each component of this vector to the product of the
component with the corresponding component of the argument
vector.
|
Vec4f |
copy() |
float |
dot(Vec4f arg) |
float |
get(int i)
Gets the ith component, 0 <= i < 4
|
float |
length() |
float |
lengthSquared() |
Vec4f |
minus(Vec4f arg)
Returns this - arg; creates new vector
|
void |
normalize() |
Vec4f |
plus(Vec4f arg)
Returns this + arg; creates new vector
|
void |
scale(float val)
this = this * val
|
void |
set(float x,
float y,
float z,
float w) |
void |
set(int i,
float val)
Sets the ith component, 0 <= i < 4
|
void |
set(Vec4f arg) |
void |
setW(float w) |
void |
setX(float x) |
void |
setY(float y) |
void |
setZ(float z) |
void |
sub(Vec4f b)
this = this - b
|
void |
sub(Vec4f a,
Vec4f b)
this = a - b
|
Vec4f |
times(float val)
Returns this * val; creates new vector
|
String |
toString() |
Vecf |
toVecf() |
float |
w() |
float |
x() |
float |
y() |
float |
z() |
public Vec4f()
public Vec4f(Vec4f arg)
public Vec4f(float x,
float y,
float z,
float w)
public Vec4f copy()
public void set(Vec4f arg)
public void set(float x,
float y,
float z,
float w)
public void set(int i,
float val)
public float get(int i)
public float x()
public float y()
public float z()
public float w()
public void setX(float x)
public void setY(float y)
public void setZ(float z)
public void setW(float w)
public float dot(Vec4f arg)
public float length()
public float lengthSquared()
public void normalize()
public Vec4f times(float val)
public void scale(float val)
public void add(Vec4f b)
public void sub(Vec4f b)
public void componentMul(Vec4f arg)
public Vecf toVecf()
Copyright © 2007–2017 Gephi Consortium. All rights reserved.