[]
Initializes a new instance of the Vector3 struct.
public Vector3(float value)
| Type | Name | Description |
|---|---|---|
| float | value | The value that will be assigned to all components. |
Initializes a new instance of the Vector3 struct.
public Vector3(float x, float y, float z)
| Type | Name | Description |
|---|---|---|
| float | x | Initial value for the X component of the vector. |
| float | y | Initial value for the Y component of the vector. |
| float | z | Initial value for the Z component of the vector. |
Initializes a new instance of the Vector3 struct.
public Vector3(Vector2 value, float z)
| Type | Name | Description |
|---|---|---|
| Vector2 | value | A vector containing the values with which to initialize the X and Y components. |
| float | z | Initial value for the Z component of the vector. |
Initializes a new instance of the Vector3 struct.
public Vector3(float[] values)
| Type | Name | Description |
|---|---|---|
| float[] | values | The values to assign to the X, Y, and Z components of the vector. This must be an array with three elements. |
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |
| ArgumentOutOfRangeException | Thrown when |