public class Step { float x; float y; float direction; float deviation; public Step(float x, float y) { this.x = x; this.y = y; this.direction = 0; this.deviation = 0; } public void Set(Step step) { this.x = step.x; this.y = step.y; this.direction = step.direction; this.deviation = 0; } public void SetDirection(float direction) { this.direction = direction; } public void SetDeviation(float deviation) { this.deviation = deviation; } }