A 4-dimensional vector/point.
| IsInfinity |
Returns true if x, y, z or w are infinity |
| IsNaN |
Returns true if x, y, z or w are NaN |
| IsNearZeroLength |
Whether length of this vector is nearly zero. |
| Item |
|
| Length |
The length (or magnitude) of the vector (Distance from 0,0,0). |
| LengthSquared |
Squared length of the vector. This is faster than Vector4.Length, and can be used for things like comparing distances, as long as only squared values are used. |
| w |
The W component of this Vector. |
| x |
The X component of this Vector. |
| y |
The Y component of this Vector. |
| z |
The Z component of this Vector. |
| AlmostEqual |
Returns true if we're nearly equal to the passed vector. |
| Clamp |
Returns a vector each axis of which is clamped to between the 2 given vectors. |
| ComponentMax |
Returns a vector that has the maximum values on each axis between this vector and given vector. |
| ComponentMin |
Returns a vector that has the minimum values on each axis between this vector and given vector. |
| Distance |
Returns distance between this vector to given vector. |
| DistanceSquared |
Returns squared distance between this vector to given vector. This is faster than <see cref="M:Vector4.Distance(Vector4@)">Distance</see>,
and can be used for things like comparing distances, as long as only squared values are used. |
| IsNearlyZero |
Returns true if value on every axis is less than tolerance away from zero |
| LerpTo |
Performs linear interpolation between this and given vectors. |
| Min |
Returns a vector that has the minimum values on each axis between the 2 given vectors. |
| SnapToGrid |
Snap to grid along any of the 4 axes. |
| WithW |
Returns this vector with given W component. |
| WithX |
Returns this vector with given X component. |
| WithY |
Returns this vector with given Y component. |
| WithZ |
Returns this vector with given Z component. |
| DistanceBetween |
|
| DistanceBetweenSquared |
Returns squared distance between the 2 given vectors. This is faster than <see cref="M:Vector4.DistanceBetween(Vector4@,Vector4@)">DistanceBetween</see>,
and can be used for things like comparing distances, as long as only squared values are used. |
| Dot |
Returns the scalar/dot product of the 2 given vectors |
| Lerp |
Performs linear interpolation between 2 given vectors. |
| Max |
Returns a vector that has the maximum values on each axis between the 2 given vectors. |
| Parse |
Given a string, try to convert this into a vector4. The format is "x,y,z,w". |
| Sort |
Sort these two vectors into min and max. This doesn't just swap the vectors, it sorts each component.
So that min will come out containing the minimum x, y, z and w values. |
| TryParse |
|