apihelp.chm, select the MathVector topic, check the "accessors" link :
you get MathUtility::CreateVector.
a MathVector is a COM object which contains 3 doubles, but also methods.
Those Math... beasts were introduced in SW2003 only
Many older APIs use variants of 3 doubles instead.
Sorry for taking so long to reply.
I was wrong above.
Fourth & fourth? It's usually a 3 X 4 matrix. For geometry ...
"The canonial form of the matrix which scales the units in the
coordinate system is obtained by multiplying the unit vectors
the secondary axes by the scale factor"(s).
Each axes can have a different scale applied.
Hope I got something right <g>. The memory fades ....
I have used:
Dim MathUtil As MathUtility
Dim MathP As MathPoint
Dim MathV0 As MathVector
Dim PointCoords(2) As Double 'Remember that "0" is the first
coordinate so I have 3 values
Set MathUtil = swApp.GetMathUtility
Set MathP = MathUtil.CreatePoint(PointCoords)
Set MathV0 = MathP.ConvertToVector
It is probably not the bedst way, but it was effektive for my purpose.
Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here.
All logos and trade names are the property of their respective owners.