[math.dot]
math.dot is a slot in the math namespace, in Hyperlambda, the language of Magic Cloud. Calculates the dot product of two vectors from child nodes.
- Returns: Resolves to the dot product of the two supplied vectors
Arguments
Required arguments come first, then the optional ones in the order they are declared.
| Argument | Type | Required | Description |
|---|---|---|---|
| any node name | lambda | yes | Vector operand evaluated before calculating the dot product. |
Guide: How to use [math.dot]
JSON declaration
This is the complete declaration of math.dot, as the running system describes it. It is also published as slot.json.
JSON declaration
{
"name": "math.dot",
"description": "Calculates the dot product of two vectors from child nodes",
"signature": {
"children": {
"*": {
"type": "lambda",
"description": "Vector operand evaluated before calculating the dot product",
"required": true,
"mode": "ExecutableLambda",
"cardinality": "ExactlyTwo",
"role": "OperandPaired",
"evaluation": "EvalSelf",
"projection": "Children"
}
},
"output": {
"mode": "Value",
"kind": "number",
"description": "Resolves to the dot product of the two supplied vectors"
}
}
}
← math.divide |
all math.* slots |
math.floor → |