* Returns an initializer that configures a particle with a constant transform.
*/
public static Initializer constant (float scale, float rot, final float tx, final float ty) {
float sina = FloatMath.sin(rot), cosa = FloatMath.cos(rot);
final float m00 = cosa * scale, m01 = sina * scale, m10 = -sina * scale, m11 = cosa * scale;
return new Initializer() {
@Override public void init (int index, float[] data, int start) {
data[start + ParticleBuffer.M00] = m00;
data[start + ParticleBuffer.M01] = m01;
data[start + ParticleBuffer.M10] = m10;
data[start + ParticleBuffer.M11] = m11;