The stPolar and stRectan structures

Home Forums Programming & Development Programming The headers The stPolar and stRectan structures

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #263

    Math_wam.h includes two different structures wich represents rectangular and polar coordinates. They are two different ways of using two numbers to locate a point in a plane. Both structures have two different constructors, one to create an empty structure and the other to give values converted from the other type of coordinates.
    stPolar

    • stPolar() – Empty constructor
    • stPolar(double X,double Y) – Constructor which generates polar coordinates converted from (X,Y) rectangular coordinates
    • Operator(double X,double Y) – Convert (X,Y) rectangular coordinates in polar coordinates and save them into the structure
    • Ang – Angle of the polar coordinate
    • Mod – Distance

    stRectan

    • stRectan() – Empty constructor
    • stRectan(double Ang,double Mod) – Constructor which generates rectangular coordinates converted from (Ang,Mod) polar coordinates
    • Operator(double Ang,double Mod) – Convert (Ang,Mod) polar coordinates in rectangular coordinates and save them into the structure
    • X – X coordinate
    • Y – Y coordinate
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Comments are closed.