Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

What does the multiply of vectors do?

Asked by 8 years ago

What does the multiply of vectors do?
Like if it were to be placed ona graph with the multiplication of the vectors what would the result of it be based off of mathematically.

1 answer

Log in to vote
2
Answered by
Goulstem 8144 Badge of Merit Moderation Voter Administrator Community Moderator
8 years ago

As opposed to CFrames, where mutliplying is basically adding.. Multiplying vectors actually multiplies them, according to each X, Y, and Z members of the Vectors you're multiplying.

print(Vector3.new(1,5,10) * Vector3.new(2,3,1)) --> 2, 15, 10

--[[
    1 * 2 = 2,
    5 * 3 = 15,
    10 * 1 = 10
]]
2
Multiplying CFrames isn't "basically adding" -- it's directly multiplying them, as matrices. Multiplying vectors isn't anything like "actually multiplying" them because that isn't defined for vectors. BlueTaslem 18071 — 8y
0
Thanks for pointing that out, I was just stating what outcome that mutliplying CFrames / Vectors has. Goulstem 8144 — 8y
Ad

Answer this question