|
@@ -3,7 +3,7 @@ return {
|
|
description = 'Multiplies the vector by a vector or a number.',
|
|
description = 'Multiplies the vector by a vector or a number.',
|
|
arguments = {
|
|
arguments = {
|
|
u = {
|
|
u = {
|
|
- type = 'vec3',
|
|
|
|
|
|
+ type = 'Vec3',
|
|
description = 'The other vector to multiply the components by.'
|
|
description = 'The other vector to multiply the components by.'
|
|
},
|
|
},
|
|
x = {
|
|
x = {
|
|
@@ -13,7 +13,7 @@ return {
|
|
},
|
|
},
|
|
returns = {
|
|
returns = {
|
|
v = {
|
|
v = {
|
|
- type = 'vec3',
|
|
|
|
|
|
+ type = 'Vec3',
|
|
description = 'The original vector.'
|
|
description = 'The original vector.'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -27,20 +27,9 @@ return {
|
|
returns = { 'v' }
|
|
returns = { 'v' }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- notes = [[
|
|
|
|
- This function modifies `v` and sets the values to equal the multiplied values. When multiplying
|
|
|
|
- by a vector, the multiplication is component-wise, like this:
|
|
|
|
-
|
|
|
|
- v.x, v.y, v.z = v.x * u.x, v.y * u.y, v.z * u.z
|
|
|
|
-
|
|
|
|
- Multiplying by a number scales each component of the vector by that number:
|
|
|
|
-
|
|
|
|
- v.x, v.y, v.z = v.x * x, v.y * x, v.z * x
|
|
|
|
- ]],
|
|
|
|
related = {
|
|
related = {
|
|
- 'vec3:__mul',
|
|
|
|
- 'vec3:add',
|
|
|
|
- 'vec3:sub',
|
|
|
|
- 'vec3:div'
|
|
|
|
|
|
+ 'Vec3:add',
|
|
|
|
+ 'Vec3:sub',
|
|
|
|
+ 'Vec3:div'
|
|
}
|
|
}
|
|
}
|
|
}
|