VS:Products3D: Difference between revisions

From Vectorworks Developer
Jump to navigation Jump to search
m (1 revision)
(Shorten OBJECT, reserved word)
 
Line 11: Line 11:
<def>
<def>
<funcDef lang="vs">
<funcDef lang="vs">
FUNCTION Products3D(object:HANDLE; VAR lxy:REAL; VAR lyz:REAL; VAR lzx:REAL) : BOOLEAN;
FUNCTION Products3D(obj:HANDLE; VAR lxy:REAL; VAR lyz:REAL; VAR lzx:REAL) : BOOLEAN;
</funcDef>
</funcDef>
<funcDef lang="py">
<funcDef lang="py">
def vs.Products3D(object):
def vs.Products3D(obj):
     return (BOOLEAN, lxy, lyz, lzx)
     return (BOOLEAN, lxy, lyz, lzx)
</funcDef>
</funcDef>
Line 23: Line 23:
<lineList ident=1>
<lineList ident=1>
<line>
<line>
object
obj
HANDLE
HANDLE
The object from which to calculate the Products
The object from which to calculate the Products

Latest revision as of 20:04, 10 February 2016

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Returns the products of inertia of a 3D object for the xy, yz, and zx planes passing through a point at the center of gravity of the object.

FUNCTION Products3D(
obj :HANDLE;
VAR lxy :REAL;
VAR lyz :REAL;
VAR lzx :REAL) : BOOLEAN;
def vs.Products3D(obj):
    return (BOOLEAN, lxy, lyz, lzx)

Parameters

obj HANDLE The object from which to calculate the Products
lxy REAL Theh product of inertia with respect to the YZ and XZ planes passing through the center of mass of object.
lyz REAL Theh product of inertia with respect to the XZ and XY planes passing through the center of mass of object.
lzx REAL Theh product of inertia with respect to the XY and YZ planes passing through the center of mass of object.

Return Value

Returns true if the function succeeds.

Version

Availability: from VectorWorks10.1