Author Topic: passing vectors to a function  (Read 10433 times)

0 Members and 1 Guest are viewing this topic.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: passing vectors to a function
« Reply #45 on: July 11, 2014, 10:07:12 AM »
I would like to book passage on the next trip please. 8)

Great job Kerry.
 
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Shay Gaghe

  • Newt
  • Posts: 89
Re: passing vectors to a function
« Reply #46 on: July 12, 2014, 05:52:20 AM »
hi

is there any reason why i would express location and angles with vectors rather than coordinates?

and i notice the Line command is represented only by vectors , why?
« Last Edit: July 12, 2014, 05:58:22 AM by Shay Gaghe »

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: passing vectors to a function
« Reply #47 on: July 12, 2014, 07:45:17 AM »
yes.
UCS.
Adding vectors is quicker than the polar function.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: passing vectors to a function
« Reply #48 on: July 14, 2014, 07:19:33 AM »
hi

is there any reason why i would express location and angles with vectors rather than coordinates?

and i notice the Line command is represented only by vectors , why?
90% (or even more) you'd draw by using vectors. It's extremely seldom that you'd calculate the exact coordinate on all the points of linework. At worst you'd think of the start position of a line (ITO the full coordinate), then the vector for its 2nd point (i.e. how long and in what direction for polar vectors, and how much X and Y and Z to "move" for coordinate vector). Only for things where the coordinates are already calculated for you would you prefer to fill in the XYZ as a full coordinate (e.g. the X/Y's of property lines).

Think of this as using the @ prefix to the line command as opposed to using the # prefix when typing in the X,Y,Z values. I.e. how far from the previous point instead of at which global point irrespective of what's gone before it.
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: passing vectors to a function
« Reply #49 on: July 28, 2014, 10:23:40 PM »
I would like to book passage on the next trip please. 8)

Great job Kerry.

Speaking of Vector Trips, today I was reminded of this:

Vectors in Linear Algebra
1.1 Opening Remarks
1.1.1 Take Off
Co-Pilot Roger Murdock (to Captain Clarence Oveur):  We have clearance, Clarence.
Captain Oveur:                                                             Roger, Roger. What’s our vector, Victor?”

https://www.youtube.com/watch?v=fVq4_HhBK8Y

From Airplane. Dir. David Zucker, Jim Abrahams, and Jerry Zucker. Perf. Robert
Hays, Julie Hagerty, Leslie Nielsen, Robert Stack, Lloyd Bridges, Peter Graves,
Kareem Abdul-Jabbar, and Lorna Patterson. Paramount Pictures, 1980. Film.

From the same movie source, for perspective:
Rumack:      I won't deceive you, Mr. Striker. We're running out of time.
Ted Striker: Surely there must be something you can do.
Rumack:      I'm doing everything I can... and stop calling me Shirley!


Operator: [Captain Oveur is on the phone with the Mayo Clinic] Excuse me, Captain Oveur, but I have an emergency call on line five from a Mr. Hamm.
Captain Oveur: Alright, give me a Hamm on five, hold the Mayo.
« Last Edit: July 28, 2014, 10:29:12 PM by Kerry »
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.