SCNVector3.Clamp Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Clamp(SCNVector3, SCNVector3, SCNVector3) |
Clamps the components of |
Clamp(SCNVector3, SCNVector3, SCNVector3, SCNVector3) |
Clamps the components of |
Clamp(SCNVector3, SCNVector3, SCNVector3)
Clamps the components of vec
to be between min
and max
.
public static SceneKit.SCNVector3 Clamp (SceneKit.SCNVector3 vec, SceneKit.SCNVector3 min, SceneKit.SCNVector3 max);
static member Clamp : SceneKit.SCNVector3 * SceneKit.SCNVector3 * SceneKit.SCNVector3 -> SceneKit.SCNVector3
Parameters
- vec
- SCNVector3
- min
- SCNVector3
- max
- SCNVector3
Returns
Applies to
Clamp(SCNVector3, SCNVector3, SCNVector3, SCNVector3)
Clamps the components of vec
to be between min
and max
and stores the result in result
.
public static void Clamp (ref SceneKit.SCNVector3 vec, ref SceneKit.SCNVector3 min, ref SceneKit.SCNVector3 max, out SceneKit.SCNVector3 result);
static member Clamp : * * * -> unit
Parameters
- vec
- SCNVector3
- min
- SCNVector3
- max
- SCNVector3
- result
- SCNVector3