ComputeBinaryCurveVector2 Class
Namespace: Stride.AnimationsAssembly: Stride.Engine.dll
Binary operator Vector2 value for the IComputeCurve interface
Derived from ComputeBinaryCurveVector2:
[DataContract("ComputeBinaryCurveVector2")]
[Display("Binary Operation", null)]
public class ComputeBinaryCurveVector2 : ComputeBinaryCurve<Vector2>, IComputeCurve<Vector2>, IComputeCurve
Name | Description | |
---|---|---|
Methods | ||
Add(Vector2, Vector2) | Adds the left value to the right value and retuns their sum |
|
Multiply(Vector2, Vector2) | Multiplies the left value to the right value and retuns the result |
|
Subtract(Vector2, Vector2) | Subtracts the right value from the left value and retuns the result |
Methods
Add(Vector2, Vector2)
Adds the left value to the right value and retuns their sum
protected override Vector2 Add(Vector2 a, Vector2 b)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | a | |
Vector2 | b |
Returns
Type | Description |
---|---|
Vector2 | The sum A + B |
Overrides
Stride.Animations.ComputeBinaryCurve<Stride.Core.Mathematics.Vector2>.Add(Stride.Core.Mathematics.Vector2, Stride.Core.Mathematics.Vector2)
Multiply(Vector2, Vector2)
Multiplies the left value to the right value and retuns the result
protected override Vector2 Multiply(Vector2 a, Vector2 b)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | a | |
Vector2 | b |
Returns
Type | Description |
---|---|
Vector2 | The result A * B |
Overrides
Stride.Animations.ComputeBinaryCurve<Stride.Core.Mathematics.Vector2>.Multiply(Stride.Core.Mathematics.Vector2, Stride.Core.Mathematics.Vector2)
Subtract(Vector2, Vector2)
Subtracts the right value from the left value and retuns the result
protected override Vector2 Subtract(Vector2 a, Vector2 b)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | a | |
Vector2 | b |
Returns
Type | Description |
---|---|
Vector2 | The result A - B |
Overrides
Stride.Animations.ComputeBinaryCurve<Stride.Core.Mathematics.Vector2>.Subtract(Stride.Core.Mathematics.Vector2, Stride.Core.Mathematics.Vector2)