Names of vector operations

Started by
25 comments, last by Advanced Bug 21 years, 5 months ago
my eyes hurt. blah blah blah blah blah.

"We are what we repeatedly do. Excellence, then, is not an act, but a habit." - Aristotle
http://fusi.basscut.net"We are what we repeatedly do. Excellence, then, is not an act, but a habit." - Aristotle
Advertisement
quote:Original post by Paradigm Shifter
Can we all agree that vector / vector doesn''t make sense?


Depends on what kind of algebra you''re talking about. In geometric algebra, it''s all good.


---- --- -- -
Blue programmer needs food badly. Blue programmer is about to die!
We can simply define 1 / Vector as the reciprocal (say, Vector'') of that vector. Then Vector / Vector = Vector * Vector'' = Scalar.

Personnally, I''d use the ^ operator to represent what you call cross-product or whatever, and * for the scalar product.

As a side question, which one do you use most:

A.B = ||A|| * ||B|| * cos(A, B) or
A^B = k * ||A|| * ||B|| * sin(A, B)
(k being normal to the plane defined by A and B)

And C.x = A.x * B.x is what I would call "scaling a vector by a different along each axis"...

Cheers, ToohrVyk

Extatica is coming soon!
Check it out on:
http://www.extatica.com02.com
Nexeruza Studios:
http://nexeruza.ionichost.com/home.html
quote:Original post by Anonymous Poster
I do? Interesting interpretation...

Then, what are you doing here, except pointing out that my examples are *dumb*?

quote:By Paradigm_Shifter
Can we all agree that vector / vector doesn''t make sense? Only vector / scalar.

I do

Cédric
I think a component-wise division or multiplication would be useful in doing vector space conversion (i.e. ellipsoid collision detection)
______________________________________________________________________________________The Phoenix shall arise from the ashes... ThunderHawk -- ¦þ"So. Any n00bs need some pointers? I have a std::vector<n00b*> right here..." - ZahlmanMySite | Forum FAQ | File Formats______________________________________________________________________________________
quote:Original post by synopsis

Making matters worse, operators cannot always return error values, which might occur for example with matrix inversion.


What you want in that case is an exception .

[edited by - doc on November 5, 2002 7:29:27 PM]
My stuff.Shameless promotion: FreePop: The GPL god-sim.
quote:Original post by Zipster
AP, It''s blatently odvious you''ve never worked on a project with more than person, because otherwise you would value the importance of making operators clear and clean-cut.

One more person that has yet to learn how to read. Tragical, but I hope things work out for you nonetheless. And yes, I have worked on projects involving several people, even using such horrible things as xor operators denoting cross products and bitshift operators applied to streams. Really confusing stuff, don''t you think.

This topic is closed to new replies.

Advertisement