Assimp  v3.1.1 (June 2014)
jassimp.AiVector Class Reference

Wrapper for 3-dimensional vectors. More...

Public Member Functions

 AiVector (ByteBuffer buffer, int offset, int numComponents)
 Constructor. More...
 
int getNumComponents ()
 Returns the number of components in this vector. More...
 
float getX ()
 Returns the x value. More...
 
float getY ()
 Returns the y value. More...
 
float getZ ()
 Returns the z value. More...
 
void setX (float x)
 Sets the x component. More...
 
void setY (float y)
 Sets the y component. More...
 
void setZ (float z)
 Sets the z component. More...
 
String toString ()
 

Detailed Description

Wrapper for 3-dimensional vectors.

This wrapper is also used to represent 1- and 2-dimensional vectors. In these cases only the x (or the x and y coordinate) will be used. Accessing unused components will throw UnsupportedOperationExceptions.

The wrapper is writable, i.e., changes performed via the set-methods will modify the underlying mesh.

Constructor & Destructor Documentation

◆ AiVector()

jassimp.AiVector.AiVector ( ByteBuffer  buffer,
int  offset,
int  numComponents 
)
inline

Constructor.

Parameters
bufferthe buffer to wrap
offsetoffset into buffer
numComponentsnumber vector of components

Member Function Documentation

◆ getNumComponents()

int jassimp.AiVector.getNumComponents ( )
inline

Returns the number of components in this vector.

Returns
the number of components

◆ getX()

float jassimp.AiVector.getX ( )
inline

Returns the x value.

Returns
the x value

◆ getY()

float jassimp.AiVector.getY ( )
inline

Returns the y value.

May only be called on 2- or 3-dimensional vectors.

Returns
the y value

◆ getZ()

float jassimp.AiVector.getZ ( )
inline

Returns the z value.

May only be called on 3-dimensional vectors.

Returns
the z value

◆ setX()

void jassimp.AiVector.setX ( float  x)
inline

Sets the x component.

Parameters
xthe new value

◆ setY()

void jassimp.AiVector.setY ( float  y)
inline

Sets the y component.

May only be called on 2- or 3-dimensional vectors.

Parameters
ythe new value

◆ setZ()

void jassimp.AiVector.setZ ( float  z)
inline

Sets the z component.

May only be called on 3-dimensional vectors.

Parameters
zthe new value

◆ toString()

String jassimp.AiVector.toString ( )
inline

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