|
-
Mar 7th, 2012, 05:43 PM
#1
Thread Starter
New Member
Javascript to VBA.net: creating new 3d point
Hi,
I'm trying to translate code written in javascript to vba.net so that i can put the code into a program written in vba.
I'm having trouble with a part where I have to define a new 3d point in vba. The javascript code is:
function Vertex (x, y, z)
{
this.x = x;
this.y = y;
this.z = z;
this.f = new Point(0, 0, 0);
this.v = new Point(0, 0, 0);
this.px = 0;
this.py = 0;
}
In vba, I'm having trouble figuring out how to define a new Point with x, y, and z coordinates. I figured that I could just type "dim f as new Point3D (0,0,0)", but that didn't work.
Thanks for the help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|