Results 1 to 5 of 5

Thread: Math

  1. #1
    Guest

    Math

    Consider the clipping of a line segment defined by the latter's two endpoints. Show that you require only the endpoints to determine whether the line segment is not clipped, is partially visible, or is clipped out completely.

    Thanks

  2. #2
    Member Newbie
    Join Date
    Mar 2001
    Location
    New Zealand
    Posts
    39

    Re: Math

    If I understand you correctly you could use the Plane equation Ax + By + Cz + D = 0 to work out if one or both of the end points are infront of the clipping plane or behind it. If each end point is on a different side of the plane then the line segment is partially visible, otherwise it is either completely visible or completely invisible.

    Hope that helps

  3. #3
    Senior Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    763

    Re: Math

    Does the question not sound amazingly like someone's homework?! =)

  4. #4
    Guest

    Re: Math

    Originally posted by john:
    Does the question not sound amazingly like someone's homework?! =)
    Who wants to turn in the wrong answer? Veerification is always nice.

  5. #5

    Re: Math

    Or even worse....a test!
    /*
    Cinematix Studios (www.cinematix.com)
    Engine/game programmer
    */

Similar Threads

  1. 3D-Math
    By fobru in forum OpenGL: Advanced Coding
    Replies: 10
    Last Post: 08-06-2003, 03:03 AM
  2. Math help
    By el_flipis in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 05-28-2002, 03:57 AM
  3. math
    By in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 04-10-2002, 05:18 AM
  4. Math help
    By fLIPIS in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-01-2002, 07:30 AM
  5. Math API?
    By in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 09-07-2001, 01:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean