private void Spawn() { Vector2f position = RandomGenerator.GetRandomVector2fInRect(_shape); Vector2f velocity = new Vector2f(); if (!_initialParticleVelocity.Equals(new FloatRect())) { velocity = RandomGenerator.GetRandomVector2fInRect(_initialParticleVelocity); } ParticleManager.SpawnParticle(_properties, position, velocity); }
/// <inheritdoc /> public bool Equals(GlyphInfo other) { return(BearingX.Equals(other.BearingX) && BearingY.Equals(other.BearingY) && Advance.Equals(other.Advance) && SourceRect.Equals(other.SourceRect)); }