Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Math::Vector - request for comments

by Masem (Monsignor)
on Dec 17, 2001 at 07:43 UTC ( #132460=note: print w/ replies, xml ) Need Help??


in reply to Math::Vector - request for comments

One thing that I would consider, but that would require a bit of a rewrite, is to keep "Math::Vector" general to n dimensions, and create "Math::Vector::3D" for the specific 3-dimensional extentions that you have (eg x(), y(), z()). You'd have to add some size checks on the operations that take two vectors, of course.

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important


Comment on Re: Math::Vector - request for comments
Re: Re: Math::Vector - request for comments
by count0 (Friar) on Dec 17, 2001 at 09:18 UTC
    Thanks for the input. =)

    I considered that when rewriting bits of this. The main reason it isn't implemented is because personally I had only needed 3d vectors (physics fun =).

    I think I will definitely consider this before making it more widely available.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://132460]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2014-07-30 08:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls