|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SimpleVector | |
---|---|
com.threed.jpct |
Uses of SimpleVector in com.threed.jpct |
---|
Fields in com.threed.jpct declared as SimpleVector | |
---|---|
static SimpleVector |
SimpleVector.ORIGIN
A SimpleVector representing the origin (0,0,0) |
Methods in com.threed.jpct that return SimpleVector | |
---|---|
SimpleVector |
SimpleVector.calcCross(SimpleVector vec)
Calculates the cross product of two SimpleVectors. |
SimpleVector |
SimpleVector.calcSub(SimpleVector vec)
Calculates the difference vector of two SimpleVectors. |
SimpleVector |
World.checkCollisionEllipsoid(SimpleVector org,
SimpleVector translation,
SimpleVector ellipsoid,
int recursionDepth)
Checks if a collision between "something" and an object would take place if this "something" would move step units from its position into a given direction. |
SimpleVector |
World.checkCollisionSpherical(SimpleVector org,
SimpleVector translation,
float radius)
Checks if a collision between "something" and an object would take place if this "something" would move step units from its position into a given direction. |
SimpleVector |
Object3D.checkForCollisionEllipsoid(SimpleVector translation,
SimpleVector ellipsoid,
int recursionDepth)
Checks if the current object collides with something when moving into a particular direction. |
SimpleVector |
Object3D.checkForCollisionSpherical(SimpleVector translation,
float radius)
Checks if the current object collides with something when moving into a particular direction. |
static SimpleVector |
SimpleVector.create()
Another way to create a SimpleVector. |
static SimpleVector |
SimpleVector.create(float x,
float y,
float z)
Another way to create a SimpleVector. |
SimpleVector |
Object3D.getCenter()
Returns the center of the object (in object-space, i.e. unaffected by any transformation). |
SimpleVector[] |
GenericVertexController.getDestinationMesh()
|
SimpleVector[] |
IVertexController.getDestinationMesh()
Returns the destination mesh's vertex data. |
SimpleVector[] |
GenericVertexController.getDestinationNormals()
|
SimpleVector[] |
IVertexController.getDestinationNormals()
Returns the destination mesh's normals. |
SimpleVector |
Camera.getDirection()
Returns the direction vector of the camera in world space. |
SimpleVector |
CollisionEvent.getFirstContact()
Returns the position in world space of the first contact, if the event is of type TARGET. |
SimpleVector |
Light.getIntensity()
Sets the light's intensity. |
SimpleVector |
Object3D.getOrigin()
Returns the origin of the object (as set by setOrigin()). |
SimpleVector |
Light.getPosition()
Returns the position of this light in world space. |
SimpleVector |
Camera.getPosition()
Gets the current position of the camera. |
SimpleVector |
Light.getPosition(SimpleVector store)
Returns the position of this light in world space. |
SimpleVector |
Object3D.getRotationPivot()
Returns the rotation pivot of the object |
SimpleVector |
Camera.getSideVector()
Returns the side vector of the camera in world space. |
SimpleVector[] |
GenericVertexController.getSourceMesh()
|
SimpleVector[] |
IVertexController.getSourceMesh()
Returns the source mesh's vertex data, i.e. the vertex-data that needs modification. |
SimpleVector[] |
GenericVertexController.getSourceNormals()
|
SimpleVector[] |
IVertexController.getSourceNormals()
Returns the source mesh's normals, i.e. the normals that need modification. |
SimpleVector |
PolygonManager.getTextureUV(int polyID,
int vertexNumber)
Returns the normalized texture coordinates mapped to a SimpleVector's x and y component. |
SimpleVector |
Object3D.getTransformedCenter()
Returns the center of the object in worldspace, i.e. after the object's current transformations have been applied to it. |
SimpleVector |
Object3D.getTransformedCenter(SimpleVector toFill)
Returns the center of the object in worldspace, i.e. after the object's current transformations have been applied to it. |
SimpleVector |
PolygonManager.getTransformedNormal(int polyID)
Returns a polygon's face normal transformed into world space. |
SimpleVector |
PolygonManager.getTransformedVertex(int polyID,
int vertexNumber)
Returns a polygon's vertex transformed into world space. |
SimpleVector |
Matrix.getTranslation()
Returns the translation this matrix would represent when viewed as a translation matrix. |
SimpleVector |
Object3D.getTranslation()
Returns the translation of the object (from its origin to its current position) |
SimpleVector |
Object3D.getTranslation(SimpleVector trns)
Returns the translation of the object. |
SimpleVector |
Camera.getUpVector()
Returns the up vector of the camera in world space. |
SimpleVector |
Matrix.getXAxis()
Returns the x-axis this matrix would represent when viewed as a rotation matrix. |
SimpleVector |
Object3D.getXAxis()
Returns the x-axis of the object. |
SimpleVector |
Camera.getXAxis()
Returns the (virtual) x-axis of the camera. |
SimpleVector |
Matrix.getYAxis()
Returns the y-axis this matrix would represent when viewed as a rotation matrix. |
SimpleVector |
Object3D.getYAxis()
Returns the y-axis of the object. |
SimpleVector |
Camera.getYAxis()
Returns the (virtual) y-axis of the camera. |
SimpleVector |
Matrix.getZAxis()
Returns the z-axis this matrix would represent when viewed as a rotation matrix. |
SimpleVector |
Object3D.getZAxis()
Returns the z-axis of the object. |
SimpleVector |
Camera.getZAxis()
Returns the (virtual) z-axis of the camera. |
SimpleVector |
SimpleVector.normalize()
Normalizes a SimpleVector and returns a normalized vector as a new SimpleVector. |
SimpleVector |
SimpleVector.normalize(SimpleVector sv)
Normalizes a SimpleVector and returns a normalized vector as a new SimpleVector. |
static SimpleVector |
Interact2D.project3D2D(Camera camera,
FrameBuffer buffer,
SimpleVector vertex)
Projects a vertex from world space into screen space. |
static SimpleVector |
Interact2D.project3D2D(Camera camera,
FrameBuffer buffer,
SimpleVector vertex,
SimpleVector toFill)
Projects a vertex from world space into screen space. |
static SimpleVector |
Interact2D.projectCenter3D2D(Camera camera,
FrameBuffer buffer,
Object3D obj)
Gets the center of the object in screen-coordinates (2D) by transforming and projecting it from 3D objectspace into 2D screenspace. |
static SimpleVector |
Interact2D.projectCenter3D2D(FrameBuffer buffer,
Object3D obj)
Gets the center of the object in screen-coordinates (2D) by transforming and projecting it from 3D objectspace into 2D screenspace. |
static SimpleVector |
Interact2D.reproject2D3D(Camera camera,
FrameBuffer buffer,
int x,
int y)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases) back into 3D. |
static SimpleVector |
Interact2D.reproject2D3D(Camera camera,
FrameBuffer buffer,
int x,
int y,
float z)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases) back into 3D with a given z (in 3D). |
static SimpleVector |
Interact2D.reproject2D3D(Camera camera,
FrameBuffer buffer,
int x,
int y,
float z,
SimpleVector toFill)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases) back into 3D with a given z (in 3D). |
static SimpleVector |
Interact2D.reproject2D3D(Camera camera,
FrameBuffer buffer,
int x,
int y,
SimpleVector toFill)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases) back into 3D. |
static SimpleVector |
Interact2D.reproject2D3DWS(Camera camera,
FrameBuffer buffer,
int x,
int y)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases) back into 3D (world space). |
static SimpleVector |
Interact2D.reproject2D3DWS(Camera camera,
FrameBuffer buffer,
int x,
int y,
SimpleVector toFill)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases) back into 3D (world space). |
SimpleVector |
SimpleVector.rotate(SimpleVector rotVector)
Rotates this SimpleVector using the angles (x,y,z) of rotVector. |
SimpleVector |
Camera.transform(SimpleVector vertex)
Transforms a vertex from world into camera space. |
Methods in com.threed.jpct with parameters of type SimpleVector | |
---|---|
void |
SimpleVector.add(SimpleVector vec)
Adds another SimpleVector to this SimpleVector without creating a new instance. |
int |
Object3D.addTriangle(SimpleVector vert1,
float u,
float v,
SimpleVector vert2,
float u2,
float v2,
SimpleVector vert3,
float u3,
float v3)
Adds a triangle to the object. |
int |
Object3D.addTriangle(SimpleVector vert1,
float u,
float v,
SimpleVector vert2,
float u2,
float v2,
SimpleVector vert3,
float u3,
float v3,
int textureID)
Adds a triangle to the object. |
int |
Object3D.addTriangle(SimpleVector vert1,
float u,
float v,
SimpleVector vert2,
float u2,
float v2,
SimpleVector vert3,
float u3,
float v3,
int textureID,
int sec)
Adds a triangle to the object. |
int |
Object3D.addTriangle(SimpleVector vert1,
SimpleVector vert2,
SimpleVector vert3)
Adds a triangle to the object. |
int |
Object3D.addTriangle(SimpleVector vert1,
SimpleVector vert2,
SimpleVector vert3,
TextureInfo tInf)
Adds a triangle to the object. |
float |
SimpleVector.calcAngle(SimpleVector vec)
Calculates the angle between this SimpleVector and another one. |
SimpleVector |
SimpleVector.calcCross(SimpleVector vec)
Calculates the cross product of two SimpleVectors. |
float |
SimpleVector.calcDot(SimpleVector vec)
Calculates the dot product of two SimpleVectors. |
float |
Object3D.calcMinDistance(SimpleVector org,
SimpleVector dr)
Returns the minimal distance to some polygon of the object from a particular position vector looking into a specific direction. |
float |
World.calcMinDistance(SimpleVector orig,
SimpleVector dir,
float ignoreIfLarger)
Returns the minimal distance to some polygon of the world's objects (have to be colliders) from a particular position vector looking into a specific direction. |
float |
Object3D.calcMinDistance(SimpleVector org,
SimpleVector dr,
float ignoreIfLarger)
Returns the minimal distance to some polygon of the object from a particular position vector looking into a specific direction. |
java.lang.Object[] |
World.calcMinDistanceAndObject3D(SimpleVector orig,
SimpleVector dir,
float ignoreIfLarger)
Returns the minimal distance to some polygon of the world's objects (have to be colliders) from a particular position vector looking into a specific direction. |
SimpleVector |
SimpleVector.calcSub(SimpleVector vec)
Calculates the difference vector of two SimpleVectors. |
boolean |
World.checkCameraCollision(SimpleVector direction,
float moveSpeed,
float distance,
boolean slideMode)
Moves the camera moveSpeed units from its current position into an arbitrary direction, if this is possible. |
boolean |
World.checkCameraCollisionEllipsoid(int mode,
SimpleVector ellipsoid,
float moveSpeed,
int recursionDepth)
Moves the camera moveSpeed units from its current position into an arbitrary direction, if this is possible. |
boolean |
World.checkCameraCollisionEllipsoid(SimpleVector direction,
SimpleVector ellipsoid,
float moveSpeed,
int recursionDepth)
Moves the camera moveSpeed units from its current position into an arbitrary direction, if this is possible. |
boolean |
World.checkCameraCollisionSpherical(SimpleVector direction,
float radius,
float moveSpeed,
boolean slideMode)
Moves the camera moveSpeed units from its current position into an arbitrary direction, if this is possible. |
int |
World.checkCollision(SimpleVector org,
SimpleVector dr,
float step)
Checks if a collision between "something" and an object would take place if this "something" would move step units from its position into a given direction. |
SimpleVector |
World.checkCollisionEllipsoid(SimpleVector org,
SimpleVector translation,
SimpleVector ellipsoid,
int recursionDepth)
Checks if a collision between "something" and an object would take place if this "something" would move step units from its position into a given direction. |
SimpleVector |
World.checkCollisionSpherical(SimpleVector org,
SimpleVector translation,
float radius)
Checks if a collision between "something" and an object would take place if this "something" would move step units from its position into a given direction. |
int |
Object3D.checkForCollision(SimpleVector dirVec,
float step)
Checks if the current object collides with something when moving into a particular direction. |
SimpleVector |
Object3D.checkForCollisionEllipsoid(SimpleVector translation,
SimpleVector ellipsoid,
int recursionDepth)
Checks if the current object collides with something when moving into a particular direction. |
SimpleVector |
Object3D.checkForCollisionSpherical(SimpleVector translation,
float radius)
Checks if the current object collides with something when moving into a particular direction. |
float |
SimpleVector.distance(SimpleVector pos)
Returns the distance between this SimpleVector and another position vector. |
boolean |
Object3D.ellipsoidIntersectsAABB(SimpleVector org,
SimpleVector ellipsoid)
Checks if a given ellipsoid intersects the axis aligned bounding box (in object-space) of this object. |
SimpleVector |
Light.getPosition(SimpleVector store)
Returns the position of this light in world space. |
Matrix |
SimpleVector.getRotationMatrix(Matrix mat,
SimpleVector up)
Creates a rotation matrix that can be used to rotate a vector pointing to (0,0,1) to match the direction of this vector. |
Matrix |
SimpleVector.getRotationMatrix(SimpleVector up)
Creates a rotation matrix that can be used to rotate a vector pointing to (0,0,1) to match the direction of this vector. |
SimpleVector |
Object3D.getTransformedCenter(SimpleVector toFill)
Returns the center of the object in worldspace, i.e. after the object's current transformations have been applied to it. |
SimpleVector |
Object3D.getTranslation(SimpleVector trns)
Returns the translation of the object. |
void |
Camera.lookAt(SimpleVector lookAt)
Rotates the camera so that is looks at the given position in world-space. |
void |
SimpleVector.makeEqualLength(SimpleVector vec)
Makes this SimpleVector the length of another SimpleVector, but only if its longer than this. |
void |
Camera.moveCamera(SimpleVector direction,
float speed)
Moves (translates) the camera with a given speed in an arbitrary direction (should be a normalized vector). |
SimpleVector |
SimpleVector.normalize(SimpleVector sv)
Normalizes a SimpleVector and returns a normalized vector as a new SimpleVector. |
static SimpleVector |
Interact2D.project3D2D(Camera camera,
FrameBuffer buffer,
SimpleVector vertex)
Projects a vertex from world space into screen space. |
static SimpleVector |
Interact2D.project3D2D(Camera camera,
FrameBuffer buffer,
SimpleVector vertex,
SimpleVector toFill)
Projects a vertex from world space into screen space. |
float |
Object3D.rayIntersectsAABB(SimpleVector org,
SimpleVector dr)
Checks if a given ray intersects with the axis aligned bounding box (in object-space) of this object. |
float |
Object3D.rayIntersectsAABB(SimpleVector org,
SimpleVector dr,
boolean isNormalized)
Checks if a given ray intersects with the axis aligned bounding box (in object-space) of this object. |
static SimpleVector |
Interact2D.reproject2D3D(Camera camera,
FrameBuffer buffer,
int x,
int y,
float z,
SimpleVector toFill)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases) back into 3D with a given z (in 3D). |
static SimpleVector |
Interact2D.reproject2D3D(Camera camera,
FrameBuffer buffer,
int x,
int y,
SimpleVector toFill)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases) back into 3D. |
static SimpleVector |
Interact2D.reproject2D3DWS(Camera camera,
FrameBuffer buffer,
int x,
int y,
SimpleVector toFill)
Reprojects a 2D vector (a screen/framebuffer coordinate in most cases) back into 3D (world space). |
SimpleVector |
SimpleVector.rotate(SimpleVector rotVector)
Rotates this SimpleVector using the angles (x,y,z) of rotVector. |
void |
Light.rotate(SimpleVector degrees,
SimpleVector pivot)
Rotates the light around a rotation pivot. |
void |
Matrix.rotateAxis(SimpleVector axis,
float angle)
Rotates the matrix around an arbitrary axis. |
void |
Object3D.rotateAxis(SimpleVector axis,
float angle)
Rotates the object's rotation matrix around an arbitrary axis. |
void |
Camera.rotateCameraAxis(SimpleVector axis,
float angle)
Rotates the camera around an arbitrary axis. |
void |
SimpleVector.set(SimpleVector s)
Sets the x,y and z values of this SimpleVector to the ones of the given SimpleVector. |
void |
Object3D.setCenter(SimpleVector center)
Sets the center of the object (in object-space). |
void |
Light.setIntensity(SimpleVector inty)
Sets the light's intensity. |
void |
Matrix.setOrientation(SimpleVector dir,
SimpleVector up)
Sets the orientation of a rotation matrix by giving a direction and an up-vector. |
void |
Object3D.setOrientation(SimpleVector dir,
SimpleVector up)
Sets the orientation of this object by giving a direction and an up-vector. |
void |
Camera.setOrientation(SimpleVector dir,
SimpleVector up)
Sets the orientation of the camera by giving a direction and an up-vector. |
void |
Object3D.setOrigin(SimpleVector origin)
Sets the origin of the object. |
void |
Light.setPosition(SimpleVector pos)
Sets the position of this light in world space. |
void |
Camera.setPosition(SimpleVector pos)
Sets the camera to a position in worldspace. |
void |
Object3D.setRotationPivot(SimpleVector pivot)
Sets the rotation pivot of the object. |
boolean |
Object3D.sphereIntersectsAABB(SimpleVector org,
float radius)
Checks if a given sphere intersects the axis aligned bounding box (in object-space) of this object. |
void |
SimpleVector.sub(SimpleVector vec)
Subtracts another SimpleVector from this SimpleVector without creating a new instance. |
SimpleVector |
Camera.transform(SimpleVector vertex)
Transforms a vertex from world into camera space. |
void |
Matrix.translate(SimpleVector trans)
Applies a translation to this matrix. |
void |
Object3D.translate(SimpleVector trans)
Translates ("moves") the object in worldspace by modifying the translation matrix. |
Constructors in com.threed.jpct with parameters of type SimpleVector | |
---|---|
SimpleVector(SimpleVector s)
Creates a new SimpleVector from an existing one |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |