|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpslib.StaticParticle
public class StaticParticle
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 |
---|
public final PSVector position
public final PSColour colour
public final float size
public final float alpha
public final int decay
Constructor Detail |
---|
public StaticParticle(PSVector p, PSColour c)
p
- positionc
- colourpublic StaticParticle(PSVector p, PSColour c, float a)
p
- positionc
- coloura
- alphapublic StaticParticle(PSVector p, PSColour c, float a, float s, int d)
p
- positionc
- coloura
- alphas
- sized
- decayMethod Detail |
---|
public StaticParticle copy()
public final void map(DynamicParticle p)
p
- particle to map values to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |