Пример #1
0
 public EllipseObject(
     PointF position,
     float radius,
     float frictionCoefficient = 0.8f
     )
 {
     positionX   = new AnimationFloat(position.X, frictionCoefficient);
     positionY   = new AnimationFloat(position.Y, frictionCoefficient);
     this.radius = new AnimationFloat(radius, frictionCoefficient);
 }
Пример #2
0
 public RectObject(
     PointF position,
     PointF size,
     float radian = 0.0f,
     float frictionCoefficient = 0.9f
     )
 {
     target       = position;
     positionX    = new AnimationFloat(position.X, frictionCoefficient);
     positionY    = new AnimationFloat(position.Y, frictionCoefficient);
     sizeX        = new AnimationFloat(size.X, frictionCoefficient);
     sizeY        = new AnimationFloat(size.Y, frictionCoefficient);
     targetSize   = size;
     this.radian  = new AnimationFloat(radian, frictionCoefficient);
     targetRadian = radian;
 }