pslib
Class StaticParticle

java.lang.Object
  extended by pslib.StaticParticle

public class StaticParticle
extends java.lang.Object

StaticParticle Class

The StaticParticle object allows the storage of position, colour and size particle values.

This library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library. If not, see http://www.gnu.org/licenses/.


Field Summary
 float alpha
           
 PSColour colour
           
 int decay
           
 PSVector position
           
 float size
           
 
Constructor Summary
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
 
Method Summary
 StaticParticle copy()
          Return a deep copy of this object
 void map(DynamicParticle p)
          Map the values of this particle upon to that specified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

public final PSVector position

colour

public final PSColour colour

size

public final float size

alpha

public final float alpha

decay

public final int decay
Constructor Detail

StaticParticle

public StaticParticle(PSVector p,
                      PSColour c)
Create a new object instance with the specified values

Parameters:
p - position
c - colour

StaticParticle

public StaticParticle(PSVector p,
                      PSColour c,
                      float a)
Create a new object instance with the specified values

Parameters:
p - position
c - colour
a - alpha

StaticParticle

public StaticParticle(PSVector p,
                      PSColour c,
                      float a,
                      float s,
                      int d)
Create a new object instance with the specified values

Parameters:
p - position
c - colour
a - alpha
s - size
d - decay
Method Detail

copy

public StaticParticle copy()
Return a deep copy of this object

Returns:
a deep copy of this object

map

public final void map(DynamicParticle p)
Map the values of this particle upon to that specified

Parameters:
p - particle to map values to