A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Quadratic vector extrapolation

Threaded View

  1. #1
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    923

    Quadratic vector extrapolation

    Hi, I need to extrapolate vector v_1 from v0, v1 and v2 (see attached pic), so that if v2 is on the right/left (2D case for simplicity) of v1-v0, v_1 would also be on the right/left.

    My initial solution was like this:
    v2 - v1 = v1 - v0 + some dv,
    v1 - v0 = v0 - v_1 + dv,
    and from there
    v_1 = 3(v0 - v1) + v2.

    This, however, produces ugly results when abs (v2-v1) < abs (v1-v0) - point v_1 is placed very far from v0. So I need a better formula for this.

    Any help?
    Attached Images Attached Images
    Last edited by realMakc; 09-26-2007 at 09:38 AM.
    who is this? a word of friendly advice: FFS stop using AS2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center