Class DotProduct<T>
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitOrder(404)]
public abstract class DotProduct<T> : Unit, IUnit, IGraphElementWithDebugData, IGraphElement, IGraphItem, INotifiedCollectionItem, IDisposable, IPrewarmable, IAotStubbable, IIdentifiable
Type Parameters
Name | Description |
---|---|
T |
Properties
a
The first vector.
Declaration
[DoNotSerialize]
public ValueInput a { get; }
Property Value
Type | Description |
---|---|
ValueInput |
b
The second vector.
Declaration
[DoNotSerialize]
public ValueInput b { get; }
Property Value
Type | Description |
---|---|
ValueInput |
dotProduct
The dot product of A and B.
Declaration
[DoNotSerialize]
[PortLabel("A∙B")]
public ValueOutput dotProduct { get; }
Property Value
Type | Description |
---|---|
ValueOutput |
Methods
Definition()
Declaration
protected override void Definition()
Overrides
Operation(T, T)
Declaration
public abstract float Operation(T a, T b)
Parameters
Type | Name | Description |
---|---|---|
T | a | |
T | b |
Returns
Type | Description |
---|---|
Single |