MinMaxScaleConstraint.ApplyConstraint(MixedRealityTransform) 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.
Clamps the transform scale to the scale limits set by Microsoft.MixedReality.Toolkit.UI.MinMaxScaleConstraint.SetScaleLimits such that:
- No one component of the returned vector will be greater than the max scale.
- No one component of the returned vector will be less than the min scale.
- The returned vector's direction will be the same as the given vector
public:
override void ApplyConstraint(Microsoft::MixedReality::Toolkit::Utilities::MixedRealityTransform % transform);
public override void ApplyConstraint (ref Microsoft.MixedReality.Toolkit.Utilities.MixedRealityTransform transform);
override this.ApplyConstraint : MixedRealityTransform -> unit
Public Overrides Sub ApplyConstraint (ByRef transform As MixedRealityTransform)
Parameters
- transform
- MixedRealityTransform