Jump to content
Developer Wiki and Function Reference Links ×

VWPluginLibraryRoutines


Ben624

Recommended Posts

They are undocumented routines that currently work, but have yet to be added to the VS Function Reference. Perhaps they are not fully tested, so use them with an open mind. The intent of some are quite obvious, while others are more obtuse. As well, the interfaces are not always accurate, but the compiler will usually give you clues as to what it is looking for. Take this call as listed:

function CircleCircleIntersec(cenPt1X, cenPt1Y, cenPt1Z : REAL; 
				cenPt2X, cenPt2Y, cenPt2Z : REAL; 
				radius1: REAL; 
				radius2 : REAL; 
			VAR pt1X, pt1Y, pt1Z : REAL; 
			VAR pt2X, pt2Y, pt2Z : REAL) : BOOLEAN;

which looks like it could be simplified to:

function CircleCircleIntersec(cenPt1X, cenPt1Y, cenPt1Z, cenPt2X, cenPt2Y, cenPt2Z, radius1, radius2 : REAL; 
			VAR pt1X, pt1Y, pt1Z, pt2X, pt2Y, pt2Z : REAL) : BOOLEAN;

but, with help from the compiler, really needs to look like:

function CircleCircleIntersect(CenterPt1, CenterPt2 : VECTOR;
				Radius1, Radius2 : REAL;
			VAR Point1, Point2 : VECTOR) : BOOLEAN;

Trial and error is your best teacher.

You can also peruse the VCOR Wiki for insight @ http://vcor.net/wiki/index.php/Category:VectorScript

Don't forget to add to the Wiki when you discover useful tips.

HTH,

Raymond

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...