AntTweakBar.VectorVariable.IsValid C# (CSharp) Method

IsValid() private method

Checks if this variable can hold this value.
private IsValid ( float x, float y, float z ) : bool
x float
y float
z float
return bool
        private bool IsValid(float x, float y, float z)
        {
            ThrowIfDisposed();

            return !Validating.GetInvocationList().Select(h => {
                var check = new VectorValidationEventArgs(x, y, z);
                h.DynamicInvoke(new object[] { this, check });
                return !check.Valid;
            }).Any(failed => failed);
        }