-
1. Re: Who can explain in detail some of the functions AIRealBezierSuite
A. Patterson Jan 25, 2011 7:23 AM (in response to starnight1981)I'm not sure what you find confusing. The AIRealBezier is the four points representing a curve. t is the point along that curve. In both cases, v is the vector springing from the point at t on the curve. Granted, you should probably be using Evaluate() as well to find the point along the curve (unless you're using t=0 or t=1, in which case you don't need to) or PointAndTangent() to get both at the same time.
As for IntersectsRect(), I'm not sure how much I'd trust it anyways. The documentation basically says it draws the curve & the rect and then sees if the pixels intersect. That seems kind of dicey to me (it's probably fine for where its used internally of course). There are ways to calculate the intersection of a bezier with a line; personally, I'd trust those methods more (and we wrote our own code to do just that).


