Uses of Class
pslib.PSVector

Uses of PSVector in pslib
 

Fields in pslib declared as PSVector
static PSVector PSConstants.CAM2D_LOOK
          Default 2D camera look vector (0, 0, 1)
static PSVector PSConstants.CAM2D_RIGHT
          Default 2D camera right vector (1, 0, 0)
static PSVector PSConstants.CAM2D_UP
          Default 2D camera up vector (0, -1, 0)
 PSVector PSVertex.position
           
 PSVector StaticParticle.position
           
 PSVector PSVertex.uvcoord
           
 

Methods in pslib that return PSVector
static PSVector PSVector.add(PSVector v1, PSVector v2)
          Add the two specified vectors and return the result
 PSVector PSVector.copy()
          Return a copy of this vector
 PSVector PSVector.cross(PSVector v)
          Return the cross product of this vector and that specified
protected  PSVector[] BufferedParticle.getCumulativePositions()
          Return an array containing the positions of each buffered element relative to the preceding element
 PSVector GenericEmitter.getDimensionScalars()
          Return a reference to the emitter dimension scalar vector
 PSVector PSForce.getDimensionScalars()
          Return the dimension scalar vector
protected  PSVector GenericEmitter.getEmissionVector(PSVector d, float s)
           
protected  PSVector PSForce.getMagnitude(DynamicParticle p)
          Return the force magnitude vector for the specified particle
 PSVector PSVector.getPerpendicular()
          Return a normalised vector perpendicular to this one
 PSVector AttractiveForce.getPosition()
          Return the force position
 PSVector GenericParticle.getPosition()
          Return a reference to the particle position vector
protected  PSVector GenericEmitter.getRadialVector()
           
protected  PSVector[] BufferedParticle.getRelativePositions()
          Return an array containing the positions of each buffered element relative to the current particle position
 PSVector TextParticle.getTextBounds()
          Return a vector containing the size of the text bounding box
 PSVector GenericParticle.getVelocity()
          Return a reference to the particle velocity vector
static PSVector PSVector.limit(PSVector v, float m)
          Limit a vector to the specified magnitude and return the result as a new vector
static PSVector PSVector.normalise(PSVector v)
          Normalise a vector and return the result as a new vector
static PSVector PSVector.normaliseTo(PSVector v, float m)
          Normalise a vector to the specified magnitude and return the result as a new vector
static PSVector PSTools.randomVector()
          Return a normalised PSVector object with random component values
static PSVector PSTools.randomVector(float r)
          Return a PSVector object with random component values within the specified radius about the point (0, 0, 0)
static PSVector PSTools.randomVector(float rmi, float rma)
          Return a PSVector object with random component values within the specified radii about the point (0, 0, 0)
static PSVector PSTools.randomVector(PSVector r)
          Return a PSVector object with random component values within +/- the specified range about the point (0, 0, 0)
static PSVector PSVector.rotateAboutOrigin(PSVector v, float a, PSVector av)
          Rotate a vector the origin on the specified axis and return the result as a new vector
static PSVector PSVector.scale(PSVector v, float s)
          Multiply a vector by the specified scalar and return the result as a new vector
static PSVector PSVector.scale(PSVector v1, PSVector v2)
          Multiply two vectors and return the result as a new vector
static PSVector PSVector.sub(PSVector v1, PSVector v2)
          Subtract one vector from another and return the result
 

Methods in pslib with parameters of type PSVector
 void PSVector.add(PSVector v)
          Add the specified vector to this vector
static PSVector PSVector.add(PSVector v1, PSVector v2)
          Add the two specified vectors and return the result
 float PSVector.angleBetween(PSVector v)
          Return the angle between this vector and that specified
static void PSShapes.circle(processing.opengl.PGraphicsOpenGL glc, int seg, float rad, PSVector cpv, PSVector ctv, PSVector cuv)
          Render a circle as a 3D billboard to the specified rendering context
 PSVector PSVector.cross(PSVector v)
          Return the cross product of this vector and that specified
 void DynamicParticle.debug(processing.opengl.PGraphicsOpenGL pgl, PSVector cpv, PSVector ctv, PSVector cuv)
          Render the particle location to the specified OpenGL renderer
 void GenericEmitter.debug(processing.opengl.PGraphicsOpenGL pgl, PSVector cpv, PSVector ctv, PSVector cuv)
          Render the emitter location to the specified OpenGL renderer
 void ParentParticle.debug(processing.opengl.PGraphicsOpenGL pgl, PSVector cpv, PSVector ctv, PSVector cuv)
          Render the particle location to the specified OpenGL renderer
 float PSVector.distance(PSVector v)
          Return the distance between this vector and that specified
 float PSVector.dot(PSVector v)
          Return the dot product of this vector and that specified
static void PSShapes.doughnut(processing.opengl.PGraphicsOpenGL glc, int seg, float rad_i, float rad_o, PSVector cpv, PSVector ctv, PSVector cuv)
          Render a doughnut as a 3D billboard to the specified rendering context
static void PSShapes.fan(processing.opengl.PGraphicsOpenGL glc, int seg, float rad, float spd, PSVector cpv, PSVector ctv, PSVector cuv)
          Render a fan as a 3D billboard to the specified rendering context
protected  PSVector GenericEmitter.getEmissionVector(PSVector d, float s)
           
 float[] AudioParticle.getRelativeAudioData(PSVector lpv, PSVector llv, PSVector luv)
          Return an array containing audio data relative to the specified listener position
 float AudioParticle.getRelativeFBPan(PSVector lpv, PSVector llv)
          Return the front/back pan value relative to the specified listener position
 float AudioParticle.getRelativeLRPan(PSVector lpv, PSVector llv, PSVector luv)
          Return the left/right pan value relative to the specified listener position
 float AudioParticle.getRelativeUDPan(PSVector lpv, PSVector luv)
          Return the up/down pan value relative to the specified listener position
 float AudioParticle.getRelativeVolume(PSVector lpv)
          Return the volume value relative to the specified listener position
protected  PSVertex[] RibbonParticle.getRibbonVertices(PSVector cpv)
          Calculate the ribbon vertices and return as an array of PSVertex objects
static void PSShapes.grid(processing.opengl.PGraphicsOpenGL glc, float w, float h, float xs, float ys, PSVector cpv, PSVector ctv, PSVector cuv)
          Render a grid as 3D billboard to the specified OpenGL renderer
static PSVector PSVector.limit(PSVector v, float m)
          Limit a vector to the specified magnitude and return the result as a new vector
static PSVector PSVector.normalise(PSVector v)
          Normalise a vector and return the result as a new vector
static PSVector PSVector.normaliseTo(PSVector v, float m)
          Normalise a vector to the specified magnitude and return the result as a new vector
static PSVector PSTools.randomVector(PSVector r)
          Return a PSVector object with random component values within +/- the specified range about the point (0, 0, 0)
 void DynamicParticle.render(processing.opengl.PGraphicsOpenGL pgl, PSVector cpv, PSVector ctv, PSVector cuv)
          Render the particle to the specified OpenGL renderer
 void GenericEmitter.render(processing.opengl.PGraphicsOpenGL pgl, PSVector cpv, PSVector ctv, PSVector cuv)
          Render all attached particles to the specified OpenGL renderer
 void GenericParticle.render(processing.opengl.PGraphicsOpenGL pgl, PSVector cpv, PSVector ctv, PSVector cuv)
          Render the particle within three-dimensional space to the specified rendering context
 void ImageParticle.render(processing.opengl.PGraphicsOpenGL glc, PSVector cpv, PSVector ctv, PSVector cuv)
          Render the particle to the specified renderer
 void ParentParticle.render(processing.opengl.PGraphicsOpenGL pgl, PSVector cpv, PSVector ctv, PSVector cuv)
          Render all attached particles to the specified OpenGL renderer
 void RibbonParticle.render(processing.opengl.PGraphicsOpenGL pgl, PSVector cpv, PSVector ctv, PSVector cuv)
          Render the ribbon to the specified OpenGL renderer
 void TextParticle.render(processing.opengl.PGraphicsOpenGL pgl, PSVector cpv, PSVector ctv, PSVector cuv)
          Render the text to the specified OpenGL renderer
 void PSVector.rotateAboutOrigin(float a, PSVector av)
          Rotate this vector about the origin on the specified axis
static PSVector PSVector.rotateAboutOrigin(PSVector v, float a, PSVector av)
          Rotate a vector the origin on the specified axis and return the result as a new vector
 void PSVector.scale(PSVector v)
          Multiply the component values of this vector by those within the specified vector
static PSVector PSVector.scale(PSVector v, float s)
          Multiply a vector by the specified scalar and return the result as a new vector
static PSVector PSVector.scale(PSVector v1, PSVector v2)
          Multiply two vectors and return the result as a new vector
 void PSVector.set(PSVector v)
          Set the component values using values from the specified vector
 void BoidParticle.setBoundToPlace(PSVector c, float r)
          Set the bound-to-place location and radius
 void GenericEmitter.setDimensionScalars(PSVector v)
          Set the emitter dimension scalars
 void PSForce.setDimensionScalars(PSVector d)
          Set the dimension scalar vector
 void GenericEmitter.setDirection(PSVector d)
          Set the particle emission direction
 void TextParticle.setOffset(PSVector v)
          Set the text offset vector
 void AttractiveForce.setPosition(PSVector p)
          Set the force position
 void BufferedParticle.setPosition(PSVector p)
          Set the current particle position and update the buffer
 void GenericParticle.setPosition(PSVector position)
          Set the particle position
 void ParentParticle.setPosition(PSVector v)
          Set the position of this particle and any attached particles
 void GenericParticle.setVelocity(PSVector velocity)
          Set the particle velocity
 void ParentParticle.setVelocity(PSVector v)
          Set the velocity of this particle and any attached particles
static void PSShapes.star(processing.opengl.PGraphicsOpenGL glc, int seg, float rad_i, float rad_o, PSVector cpv, PSVector ctv, PSVector cuv)
          Render a star as a 3D billboard to the specified rendering context
 void PSVector.sub(PSVector v)
          Subtract the specified vector from this vector
static PSVector PSVector.sub(PSVector v1, PSVector v2)
          Subtract one vector from another and return the result
 

Constructors in pslib with parameters of type PSVector
AttractiveForce(PSVector p, float m)
          Create a static object instance with the specified values
AttractiveForce(PSVector p, float r, float m)
          Create a static object instance with the specified values
AttractiveForce(PSVector p, float r, float mi, float ma, int m, float c)
          Create a dynamic object instance with the specified values
AttractiveForce(PSVector p, float mi, float ma, int m, float c)
          Create a dynamic object instance with the specified values
LateralForce(PSVector a, float m)
          Create a static object instance with the specified values
LateralForce(PSVector a, float mi, float ma, int m, float c)
          Create a dynamic object instance with the specified values
LinearForce(PSVector v, float m)
           
LinearForce(PSVector v, float mi, float ma, int m, float c)
          Create a new object instance with the specified values
PSVector(PSVector v)
          Create a new object instance using values from the specified vector
PSVertex(int i, PSVector p, PSColour c)
          Create a new object instance with the specified values
PSVertex(int i, PSVector p, PSVector uv, PSColour c)
          Create a new object instance with the specified values
StaticParticle(PSVector p, PSColour c)
          Create a new object instance with the specified values
StaticParticle(PSVector p, PSColour c, float a)
          Create a new object instance with the specified values
StaticParticle(PSVector p, PSColour c, float a, float s, int d)
          Create a new object instance with the specified values