Class Distance<T>
Inherited Members
Namespace: Unity.VisualScripting
Syntax
[UnitOrder(402)]
public abstract class Distance<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 |
distance
The distance between A and B.
Declaration
[DoNotSerialize]
public ValueOutput distance { 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 |