Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.Vector3.Clamp

Malware edited this page Dec 13, 2025 · 18 revisions

DEPRECATION NOTICE

This API documentation is out of date and no longer maintained.

Please visit the new documentation at: https://malforge.github.io/spaceengineers/pbapi

IndexNamespace IndexVector3

Summary

public static Vector3 Clamp(Vector3 value1, Vector3 min, Vector3 max)

Restricts a value to be within a specified range.

Returns

Vector3

Parameters

Summary

public static Vector3 Clamp(Vector3 value1, Vector3 min, Vector3 max, out Vector3 clampedBy, out Vector3 minRemaining, out Vector3 maxRemaining)

Restricts a value to be within a specified range.

Returns

Vector3

Parameters

Summary

public static void Clamp(ref Vector3 value1, ref Vector3 min, ref Vector3 max, out Vector3 result)

Restricts a value to be within a specified range.

Parameters

Clone this wiki locally