AntTweakBar.QuaternionVariable.IsValid C# (CSharp) Method

IsValid() private method

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

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