svec2d_interpolate.bmx 268 B

1234567891011
  1. SuperStrict
  2. Framework brl.standardio
  3. Import brl.vector
  4. Local a:SVec2D = New SVec2D(-6, 8)
  5. Local b:SVec2D = New SVec2D(5, 12)
  6. Print a.Interpolate(b, 0).ToString() ' -6, 8
  7. Print a.Interpolate(b, 1).ToString() ' 5, 12
  8. Print a.Interpolate(b, 0.5).ToString() ' -0.5, 10