MaxstARSDK
com.maxst.ar.Vector4f Class Reference
Inheritance diagram for com.maxst.ar.Vector4f:
Inheritance graph
Collaboration diagram for com.maxst.ar.Vector4f:
Collaboration graph

Public Member Functions

 Vector4f (float x, float y, float z, float w)
 
 Vector4f ()
 
 Vector4f (Vector3f vector3f, float w)
 
float[] array ()
 
void copyVec4 (Vector4f vec)
 
void add (Vector4f vector)
 
void add (Vector3f vector, float w)
 
void subtract (Vector4f vector)
 
void subtract (Vector4f vector, Vector4f output)
 
void subdivide (Vector4f vector)
 
void multiplyByScalar (float scalar)
 
float dotProduct (Vector4f input)
 
void lerp (Vector4f input, Vector4f output, float t)
 
void normalize ()
 
float getX ()
 
float getY ()
 
float getZ ()
 
float getW ()
 
void setX (float x)
 
void setY (float y)
 
void setZ (float z)
 
void setW (float w)
 
float x ()
 
float y ()
 
float z ()
 
float w ()
 
void x (float x)
 
void y (float y)
 
void z (float z)
 
void w (float w)
 
void setXYZW (float x, float y, float z, float w)
 
boolean compareTo (Vector4f rhs)
 
void copyFromV3f (Vector3f input, float w)
 
String toString ()
 

Protected Attributes

float points [] = { 0, 0, 0, 0 }
 

Detailed Description

Representation of a four-dimensional float-vector

Constructor & Destructor Documentation

◆ Vector4f() [1/3]

com.maxst.ar.Vector4f.Vector4f ( float  x,
float  y,
float  z,
float  w 
)

Instantiates a new vector4f.

Parameters
xthe x
ythe y
zthe z
wthe w
Here is the call graph for this function:

◆ Vector4f() [2/3]

com.maxst.ar.Vector4f.Vector4f ( )

Instantiates a new vector4f.

◆ Vector4f() [3/3]

com.maxst.ar.Vector4f.Vector4f ( Vector3f  vector3f,
float  w 
)
Here is the call graph for this function:

Member Function Documentation

◆ add() [1/2]

void com.maxst.ar.Vector4f.add ( Vector3f  vector,
float  w 
)
Here is the call graph for this function:

◆ add() [2/2]

void com.maxst.ar.Vector4f.add ( Vector4f  vector)

Adds the.

Parameters
vectorthe vector

◆ array()

float [] com.maxst.ar.Vector4f.array ( )

To array.

Returns
the float[]
Here is the caller graph for this function:

◆ compareTo()

boolean com.maxst.ar.Vector4f.compareTo ( Vector4f  rhs)

Compare this vector4f to the supplied one

Parameters
rhsTrue if they match, false other wise.
Returns

◆ copyFromV3f()

void com.maxst.ar.Vector4f.copyFromV3f ( Vector3f  input,
float  w 
)

Copies the data from the supplied vec3 into this vec4 plus the supplied w.

Parameters
inputThe x y z values to copy in.
wThe extra w element to copy in
Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyVec4()

void com.maxst.ar.Vector4f.copyVec4 ( Vector4f  vec)
Here is the caller graph for this function:

◆ dotProduct()

float com.maxst.ar.Vector4f.dotProduct ( Vector4f  input)
Here is the caller graph for this function:

◆ getW()

float com.maxst.ar.Vector4f.getW ( )

Gets the w.

Returns
the w
Here is the caller graph for this function:

◆ getX()

float com.maxst.ar.Vector4f.getX ( )

Gets the x.

Returns
the x
Here is the caller graph for this function:

◆ getY()

float com.maxst.ar.Vector4f.getY ( )

Gets the y.

Returns
the y
Here is the caller graph for this function:

◆ getZ()

float com.maxst.ar.Vector4f.getZ ( )

Gets the z.

Returns
the z
Here is the caller graph for this function:

◆ lerp()

void com.maxst.ar.Vector4f.lerp ( Vector4f  input,
Vector4f  output,
float  t 
)

Linear interpolation between two vectors storing the result in the output variable.

Parameters
input
output
t

◆ multiplyByScalar()

void com.maxst.ar.Vector4f.multiplyByScalar ( float  scalar)

Multiply by scalar.

Parameters
scalarthe scalar

Reimplemented in com.maxst.ar.Quaternion.

◆ normalize()

void com.maxst.ar.Vector4f.normalize ( )

Normalize.

Reimplemented in com.maxst.ar.Quaternion.

◆ setW()

void com.maxst.ar.Vector4f.setW ( float  w)

Sets the w.

Parameters
wthe new w
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setX()

void com.maxst.ar.Vector4f.setX ( float  x)

Sets the x.

Parameters
xthe new x
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setXYZW()

void com.maxst.ar.Vector4f.setXYZW ( float  x,
float  y,
float  z,
float  w 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setY()

void com.maxst.ar.Vector4f.setY ( float  y)

Sets the y.

Parameters
ythe new y
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setZ()

void com.maxst.ar.Vector4f.setZ ( float  z)

Sets the z.

Parameters
zthe new z
Here is the call graph for this function:
Here is the caller graph for this function:

◆ subdivide()

void com.maxst.ar.Vector4f.subdivide ( Vector4f  vector)

◆ subtract() [1/2]

void com.maxst.ar.Vector4f.subtract ( Vector4f  vector)

◆ subtract() [2/2]

void com.maxst.ar.Vector4f.subtract ( Vector4f  vector,
Vector4f  output 
)
Here is the call graph for this function:

◆ toString()

String com.maxst.ar.Vector4f.toString ( )

Reimplemented in com.maxst.ar.Quaternion.

◆ w() [1/2]

float com.maxst.ar.Vector4f.w ( )
Here is the caller graph for this function:

◆ w() [2/2]

void com.maxst.ar.Vector4f.w ( float  w)
Here is the call graph for this function:

◆ x() [1/2]

float com.maxst.ar.Vector4f.x ( )
Here is the caller graph for this function:

◆ x() [2/2]

void com.maxst.ar.Vector4f.x ( float  x)
Here is the call graph for this function:

◆ y() [1/2]

float com.maxst.ar.Vector4f.y ( )
Here is the caller graph for this function:

◆ y() [2/2]

void com.maxst.ar.Vector4f.y ( float  y)
Here is the call graph for this function:

◆ z() [1/2]

float com.maxst.ar.Vector4f.z ( )
Here is the caller graph for this function:

◆ z() [2/2]

void com.maxst.ar.Vector4f.z ( float  z)
Here is the call graph for this function:

Member Data Documentation

◆ points

float com.maxst.ar.Vector4f.points[] = { 0, 0, 0, 0 }
protected

The points.


The documentation for this class was generated from the following file: