Package | Description |
---|---|
com.threed.jpct | |
com.threed.jpct.util |
Modifier and Type | Field and Description |
---|---|
static SimpleVector |
SimpleVector.ORIGIN
A SimpleVector representing the origin (0,0,0)
|
Modifier and Type | Method and Description |
---|---|
SimpleVector |
SimpleVector.calcAdd(SimpleVector vec)
Add two SimpleVectors to a new 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.
|
static SimpleVector |
SimpleVector.create(SimpleVector sv)
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[] |
IVertexController.getDestinationMesh()
Returns the destination mesh's vertex data.
|
SimpleVector[] |
GenericVertexController.getDestinationMesh() |
SimpleVector[] |
IVertexController.getDestinationNormals()
Returns the destination mesh's normals.
|
SimpleVector[] |
GenericVertexController.getDestinationNormals() |
SimpleVector |
Camera.getDirection()
Returns the direction vector of the camera in world space.
|
SimpleVector |
Camera.getDirection(SimpleVector toFill)
Returns the direction vector of the camera in world space and fills the
given SimpleVector with the result.
|
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 |
Camera.getPosition()
Gets the current position of the camera.
|
SimpleVector |
Light.getPosition()
Returns the position of this light in world space.
|
SimpleVector |
Camera.getPosition(SimpleVector toFill)
Gets the current position of the camera and fills the given SimpleVector
with the result.
|
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[] |
IVertexController.getSourceMesh()
Returns the source mesh's vertex data, i.e. the vertex-data that needs
modification.
|
SimpleVector[] |
GenericVertexController.getSourceMesh() |
SimpleVector[] |
IVertexController.getSourceNormals()
Returns the source mesh's normals, i.e. the normals that need
modification.
|
SimpleVector[] |
GenericVertexController.getSourceNormals() |
SimpleVector |
PolygonManager.getTextureUV(int polyID,
int vertexNumber)
Returns the normalized texture coordinates mapped to a SimpleVector's x
and y component.
|
SimpleVector |
PolygonManager.getTextureUV(int polyID,
int vertexNumber,
SimpleVector toFill)
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.getTransformedNormal(int polyID,
Matrix worldTransformationMatrix,
SimpleVector toFill)
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 |
PolygonManager.getTransformedVertex(int polyID,
int vertexNumber,
Matrix worldTransformationMatrix,
SimpleVector toFill)
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 |
Matrix.getTranslation(SimpleVector toFill)
Returns the translation this matrix would represent when viewed as a
translation matrix.
|
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 |
Camera.getXAxis()
Returns the (virtual) x-axis of the camera.
|
SimpleVector |
Object3D.getXAxis()
Returns the x-axis of the object.
|
SimpleVector |
Matrix.getXAxis(SimpleVector toFill)
Returns the x-axis this matrix would represent when viewed as a rotation
matrix.
|
SimpleVector |
Object3D.getXAxis(SimpleVector toFill)
Returns the x-axis of the object.
|
SimpleVector |
Matrix.getYAxis()
Returns the y-axis this matrix would represent when viewed as a rotation
matrix.
|
SimpleVector |
Camera.getYAxis()
Returns the (virtual) y-axis of the camera.
|
SimpleVector |
Object3D.getYAxis()
Returns the y-axis of the object.
|
SimpleVector |
Matrix.getYAxis(SimpleVector toFill)
Returns the y-axis this matrix would represent when viewed as a rotation
matrix.
|
SimpleVector |
Object3D.getYAxis(SimpleVector toFill)
Returns the y-axis of the object.
|
SimpleVector |
Matrix.getZAxis()
Returns the z-axis this matrix would represent when viewed as a rotation
matrix.
|
SimpleVector |
Camera.getZAxis()
Returns the (virtual) z-axis of the camera.
|
SimpleVector |
Object3D.getZAxis()
Returns the z-axis of the object.
|
SimpleVector |
Matrix.getZAxis(SimpleVector toFill)
Returns the z-axis this matrix would represent when viewed as a rotation
matrix.
|
SimpleVector |
Object3D.getZAxis(SimpleVector toFill)
Returns the z-axis of the object.
|
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.
|
SimpleVector |
SimpleVector.reflect(SimpleVector faceNormal)
Reflects this vector on a plane with the given normal.
|
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,
float z)
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,
float z,
SimpleVector toFill)
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.
|
SimpleVector |
Camera.transform(SimpleVector vertex,
SimpleVector toFill)
Transforms a vertex from world into camera space.
|
Modifier and Type | Method and Description |
---|---|
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.
|
SimpleVector |
SimpleVector.calcAdd(SimpleVector vec)
Add two SimpleVectors to a new SimpleVector.
|
float |
SimpleVector.calcAngle(SimpleVector vec)
Calculates the angle between this SimpleVector and another one.
|
float |
SimpleVector.calcAngleFast(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 |
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.
|
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.
|
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.
|
static SimpleVector |
SimpleVector.create(SimpleVector sv)
Another way to create a SimpleVector.
|
float |
SimpleVector.distance(SimpleVector pos)
Returns the distance between this SimpleVector and another position
vector.
|
boolean |
Object3D.ellipsoidIntersectsAABB(float orgx,
float orgy,
float orgz,
SimpleVector ellipsoid) |
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 |
Camera.getDirection(SimpleVector toFill)
Returns the direction vector of the camera in world space and fills the
given SimpleVector with the result.
|
SimpleVector |
Camera.getPosition(SimpleVector toFill)
Gets the current position of the camera and fills the given SimpleVector
with the result.
|
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 |
PolygonManager.getTextureUV(int polyID,
int vertexNumber,
SimpleVector toFill)
Returns the normalized texture coordinates mapped to a SimpleVector's x
and y component.
|
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,
Matrix worldTransformationMatrix,
SimpleVector toFill)
Returns a polygon's face normal transformed into world space.
|
SimpleVector |
PolygonManager.getTransformedVertex(int polyID,
int vertexNumber,
Matrix worldTransformationMatrix,
SimpleVector toFill)
Returns a polygon's vertex transformed into world space.
|
SimpleVector |
Matrix.getTranslation(SimpleVector toFill)
Returns the translation this matrix would represent when viewed as a
translation matrix.
|
SimpleVector |
Object3D.getTranslation(SimpleVector trns)
Returns the translation of the object.
|
SimpleVector |
Matrix.getXAxis(SimpleVector toFill)
Returns the x-axis this matrix would represent when viewed as a rotation
matrix.
|
SimpleVector |
Object3D.getXAxis(SimpleVector toFill)
Returns the x-axis of the object.
|
SimpleVector |
Matrix.getYAxis(SimpleVector toFill)
Returns the y-axis this matrix would represent when viewed as a rotation
matrix.
|
SimpleVector |
Object3D.getYAxis(SimpleVector toFill)
Returns the y-axis of the object.
|
SimpleVector |
Matrix.getZAxis(SimpleVector toFill)
Returns the z-axis this matrix would represent when viewed as a rotation
matrix.
|
SimpleVector |
Object3D.getZAxis(SimpleVector toFill)
Returns the z-axis 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.
|
SimpleVector |
SimpleVector.reflect(SimpleVector faceNormal)
Reflects this vector on a plane with the given normal.
|
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,
float z,
SimpleVector toFill)
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.
|
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 |
Camera.rotateAxis(SimpleVector axis,
float angle)
Rotates the backbuffer matrix around an arbitrary axis.
|
void |
Object3D.rotateAxis(SimpleVector axis,
float angle)
Rotates the object's rotation matrix around an arbitrary axis.
|
void |
SimpleVector.rotateAxis(SimpleVector axis,
float angle)
Rotates the vector 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 |
Camera.setOrientation(SimpleVector dir,
SimpleVector up)
Sets the orientation of the camera 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 |
Object3D.setOrigin(SimpleVector origin)
Sets the origin of the object.
|
void |
Camera.setPosition(SimpleVector pos)
Sets the camera to a position in worldspace.
|
void |
Light.setPosition(SimpleVector pos)
Sets the position of this light in world space.
|
void |
Object3D.setRotationPivot(SimpleVector pivot)
Sets the rotation pivot of the object.
|
void |
GLSLShader.setStaticUniform(java.lang.String name,
SimpleVector val)
Sets a new SimpleVector uniform.
|
void |
GLSLShader.setStaticUniform(java.lang.String name,
SimpleVector[] vals)
Sets a new array of SimpleVector uniform.
|
void |
GLSLShader.setUniform(java.lang.String name,
SimpleVector val)
Sets a new SimpleVector uniform.
|
void |
GLSLShader.setUniform(java.lang.String name,
SimpleVector[] vals)
Sets a new array of SimpleVectors uniform.
|
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.
|
SimpleVector |
Camera.transform(SimpleVector vertex,
SimpleVector toFill)
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.
|
void |
Polyline.update(SimpleVector[] newPoints)
Updates the line strip.
|
Constructor and Description |
---|
Polyline(SimpleVector[] points,
RGBColor color)
Creates a new, static Polyline.
|
SimpleVector(SimpleVector s)
Creates a new SimpleVector from an existing one
|
Modifier and Type | Method and Description |
---|---|
static Object3D |
ExtendedPrimitives.createBox(SimpleVector size)
Creates a cuboid with width, height and depth given as components of a SimpleVector.
|
static Object3D |
ExtendedPrimitives.createEllipsoid(SimpleVector size,
int quads)
Creates an ellipsoid with given width, height and depth.
|
static Object3D |
ExtendedPrimitives.createEllipsoid(SimpleVector size,
int quads,
float uScale,
float vScale)
Creates an ellipsoid with given width, height and depth.
|
void |
SkyBox.setCenter(SimpleVector trans)
Sets the center of the skybox.
|
void |
LensFlare.setLightPosition(SimpleVector lightPos)
Sets a new light position.
|
Constructor and Description |
---|
LensFlare(SimpleVector lightPos,
java.lang.String burst,
java.lang.String halo1,
java.lang.String halo2,
java.lang.String halo3)
Create a new lens flare for a light source.
|