Reflecting the ball off of a polyline, Computer Graphics

To reflect the ball off of the polyline, we need to re?ect it off of the segment that had the minimum thit. But the reflection computation depends only on thit, n, P and v, so there is actually no need to keep track of which segment was hit. Save thit and n as member variables of the polyline, updating ˆ n in thit at the same time as thit. These will then be the appropriate values when the polyline's reflect is called.

Posted Date: 3/14/2013 1:16:26 AM | Location : United States







Related Discussions:- Reflecting the ball off of a polyline, Assignment Help, Ask Question on Reflecting the ball off of a polyline, Get Answer, Expert's Help, Reflecting the ball off of a polyline Discussions

Write discussion on Reflecting the ball off of a polyline
Your posts are moderated
Related Questions

Types of Touch panels 1) Electrical TSS: Wire grid or the other conductive coating is utilized to specify a voltage drop at the point touched point from that the position ma

Newspapers exchange news by using news agencies (such as Reuters and ITARTASS). A newspaper registers at a news agency and sends all its news to the agency. The news agency collect

Scan Line Algorithm A scan line algorithm determines the overlap intervals of the polygon with each scan line to obtain interior points of the polygon for assigning those point

Uniform B - spline curve: When the spacing between Knot values is constant, the resulting curve is called a uniform B- spline. Blending function for B- spline curves are defined b

File Formats that are used for Vector Data This data can be saved in a wide variety of file formats are as: •EPS: the most well-accepted file format to exchange vector dra

Common Steps of Designing the Animation Sequence Common Steps of designing the animation sequence are as given: 1) Layout of Storyboard: Storyboard layout is the action ou

Amiga - Hardware for computer animation Originally owned through Commodore, Amiga computers have conduct a position in the computer animation industry for many years. This is

Basic Tests - Producing Polygon Surface A few basic tests that must be performed before producing a polygon surface through any graphic package as: 1) All vertexes are list

boundary-fill algorithm or flood-fill algorithm As you saw the implementation of scan line polygon fill requires that boundaries should be straight line segments.  The seed fi