 | Vector2FLimit Method |
Creates a new vector which is limited to the specified length.
If the vector is longer it is truncated, otherwise it stays the same.
Namespace: Slash.Math.Algebra.VectorsAssembly: Slash.Math (in Slash.Math.dll) Version: 1.0.6018.40177
Syntaxpublic Vector2F Limit(
float limit
)
Public Function Limit (
limit As Single
) As Vector2F
public:
Vector2F Limit(
float limit
)
member Limit :
limit : float32 -> Vector2F
Parameters
- limit
- Type: SystemSingle
Maximum magnitude.
Return Value
Type:
Vector2FVector with the same orientation as this vector, limited to the specified length.
See Also