class to hold 2 double values representing the x and y coordinates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • horace1
    Recognized Expert Top Contributor
    • Nov 2006
    • 1510

    #16
    Originally posted by nickyeng
    Here i have next question, related to question above i think.
    ----------------


    Now this time i stuck here with "...compris es a Point and ....". What does it means to you?

    I know those question should be easy but sometimes it does confusing ppl with unclear definition or explanation.

    any ideas?
    (i think it should similar to the code i posted before.)
    I would have thought a vector would have two Points for the vector start and end or does Vector mean something else in this context?

    Comment

    • nickyeng
      Contributor
      • Nov 2006
      • 252

      #17
      Originally posted by horace1
      I would have thought a vector would have two Points for the vector start and end or does Vector mean something else in this context?
      vector class is unrelated to STL vector. It just a simple class.

      actually the answer wont be the compiled-well code. What to do is just write the code for each questions. Forget it about compiled-well mind..!

      i'm not sure my code is correct, and there is no other ppl here can provide me with the better one, so i just follow my code.

      thanks for the help anyway.

      Comment

      • horace1
        Recognized Expert Top Contributor
        • Nov 2006
        • 1510

        #18
        Originally posted by nickyeng
        vector class is unrelated to STL vector. It just a simple class.

        thanks for the help anyway.
        I am not talking about STL vectors but about a vector in 2D coordinate space - one would have a x1, y1 start Point and a x2, y2 end Point
        I am not sure what you mean by a vector?

        Comment

        • nickyeng
          Contributor
          • Nov 2006
          • 252

          #19
          Originally posted by horace1
          I am not talking about STL vectors but about a vector in 2D coordinate space - one would have a x1, y1 start Point and a x2, y2 end Point
          I am note what you mean by a vector?
          no idea. cos teacher wont say and i have the question only.

          forget about this question.


          End of thread.

          Comment

          • RedSon
            Recognized Expert Expert
            • Jan 2007
            • 4980

            #20
            Vectors in the mathematical sense have an origin (x,y) a direction (maybe a slope or something to that effect) and a magnitude. You can give the origin and another point in the line of the vector and a magnitude but you can choose any other point on the vector line. Vectors don't have end points, they are rays of a certain magnitude.

            Comment

            Working...