(Flash) Orthogonal lines - Math and (Quasi) physics in AS3

| No Comments | No TrackBacks

Try dragging the points A and B. The line perpendicularly intersects(CD) is depicted using normal vector of AB

The normal vector in 2d is obtained by exchanging x and y-components and multiplying -1 to the y-component.

sample movie and scripts

No TrackBacks

TrackBack URL: http://www.kynd.info/cp-bin/mt/mt-tb.cgi/43

Leave a comment