Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Vector3D simple question

Vector3D simple question

Scheduled Pinned Locked Moved WPF
question
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yoyosch
    wrote on last edited by
    #1

    Why does Vector3D have only 3 coordinate properties X,Y,Z? Does every Vector3D start in point (0,0,0)?

    A G T 3 Replies Last reply
    0
    • Y Yoyosch

      Why does Vector3D have only 3 coordinate properties X,Y,Z? Does every Vector3D start in point (0,0,0)?

      A Offline
      A Offline
      AghaKhan
      wrote on last edited by
      #2

      If you are living in 3D then yes every vector should have 3 coordinates. This is true also for 2D and 2D only have 2D vector. This implies to all dimensions. If you studding theory of relativity then you need 4D vectors where time is also one of the components. Let’s make life simple, and only worry from 1D to 3D which we are dealing with WPF. LOL :laugh:

      1 Reply Last reply
      0
      • Y Yoyosch

        Why does Vector3D have only 3 coordinate properties X,Y,Z? Does every Vector3D start in point (0,0,0)?

        G Offline
        G Offline
        Gideon Engelberth
        wrote on last edited by
        #3

        The short answer is if you want to say so. (Normally, I would not say that vectors "start" anywhere per se.) The long answer is that you are brushing up against one of the hardest things about programming, "Data doesn't mean anything until you say it does." Take for example, the Point and Size classes. Both have 2 integer (or double or float or whatever) components. Both could be used to store the exact same data, but the different structures exist because that is how we assign meaning to the data. So, the implicit assumption made by the designers of Vector3D is either that all vectors "start" at (0,0,0) or that the vector is the more abstract concept of an amount of travel in a direction.

        1 Reply Last reply
        0
        • Y Yoyosch

          Why does Vector3D have only 3 coordinate properties X,Y,Z? Does every Vector3D start in point (0,0,0)?

          T Offline
          T Offline
          Timmy Kokke
          wrote on last edited by
          #4

          A vector is like an arrow pointing in a direction, with a particular length. Here is some more information about vectors in 3D: http://www.nondot.org/sabre/graphpro/3d2.html[^]

          Dawn is nature's way of telling you to go to bed.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups