Class Vector3Extensions
Namespace: i5.Toolkit.Core.Utilities
Assembly: cs.temp.dll.dll
Syntax
public static class Vector3Extensions
Methods
DivideComponentWiseBy(Vector3, Vector3)
Divides the values of the vector component-wise by the given divisor
Declaration
public static Vector3 DivideComponentWiseBy(this Vector3 divident, Vector3 divisor)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | divident | The divident of the division |
Vector3 | divisor | The divisor of the division |
Returns
Type | Description |
---|---|
Vector3 | Returns the component-wise division of the two vectors, so (v.x / divisor.x, v.y / divisor.y, v.z / divisor.z) |
MaximumComponent(Vector3)
Gets the largest component in the vector
Declaration
public static float MaximumComponent(this Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | The vector to inspect |
Returns
Type | Description |
---|---|
Single | Returns the maximum component of the vector |
MinimumComponent(Vector3)
Gets teh smallest component in the vector
Declaration
public static float MinimumComponent(this Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | The vector to inspect |
Returns
Type | Description |
---|---|
Single | Returns the minimum component of the vector |
MultiplyComponentWise(Vector3, Vector3)
Multiplies the values of the vector component-wise
Declaration
public static Vector3 MultiplyComponentWise(this Vector3 vector, Vector3 other)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | The first vector of the multiplication |
Vector3 | other | The second vector of the multiplication |
Returns
Type | Description |
---|---|
Vector3 | Returns the component-wise product of the two vectors, so (v1.x * v2.x, v1.y * v2.y, v1.z * v2.z) |