setToScalarProduct

vector3d:setToScalarProduct(vec: Vector3d, val: numero) --> nil

Imposta questo vettore sul prodotto scalare del vettore vec e del valore val (double).

Esempio 1. Esempio setToScalarProduct

local ssp = Vector3d()
ssp:setToScalarProduct(Vector3d(1, 2, 3), 2)
print("\nsetToScalarProduct((1,2,3),2) = (" .. tostring(ssp:getX()) .. "," .. tostring(ssp:getY()) .. "," .. tostring(ssp:getZ()) .. ")")

Created with the Personal Edition of HelpNDoc: 5 Reasons Why a Help Authoring Tool is Better than Microsoft Word for Documentation