internal HandleMeasurements(CoursePassImage image) { this.parent = image; //maxHandleSpeed = this.parent._pass.Measurements.Max(v => v.HandleSpeedMps); maxHandleSpeed = 1.0d; lastBall = 0; }
public void TestDraw() { CoursePassFactory factory = new CoursePassFactory(); factory.RopeLengthOff = 32; factory.CenterLineDegreeOffset = 19; CoursePass pass = factory.FromFile("./Video/GOPR0565.json"); CoursePassImage image = new CoursePassImage(pass); Bitmap bitmap = image.Draw(); bitmap.Save("pass.png", ImageFormat.Png); }