From: "Andrew J Robb" Newsgroups: comp.lang.c++,comp.os.msdos.djgpp Subject: Re: How to implement "They are all Vectors, but different realities?" Date: Thu, 21 Jan 1999 09:12:09 -0000 Organization: Customer of Planet Online Lines: 16 Message-ID: <786qut$t6r$1@newsreader2.core.theplanet.net> References: <36A68B87 DOT FFBA110C AT ohriki DOT t DOT u-tokyo DOT ac DOT jp> NNTP-Posting-Host: host12.x-tension.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: newsreader2.core.theplanet.net 916909853 29915 195.92.139.14 (21 Jan 1999 09:10:53 GMT) NNTP-Posting-Date: 21 Jan 1999 09:10:53 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You can use dimensional analysis where units have powers of mass, length and time. velocity -> L-T acceleration -> L-2T mass -> M f=ma gives force = ML-2T There are issues including: work = force * distance (OK - its actually an integral) torque = force * distance Thus different values can have the same dimensions. I have seen this handled by having instance numbers to differentiate between them. You might want to look at quaternion values to hold the vectors.