public QueryTraitExpression Where <T>(NativeString64 debugName, T value) where T : struct { return (QueryTraitExpression.Create( ref binary.Ref, debugName).And(value)); }
/// <summary> /// Introduces a tag trait expression that selects based on a "where" clause. /// </summary> /// <remarks> /// A "where" clause matches all intervals from the motion library /// that contain the trait passed as argument. /// <example> /// <code> /// synthesizer.Query.Where(Climbing.Create(Climbing.Type.Wall)); /// </code> /// </example> /// </remarks> /// <param name="value">The trait values to be used as constraint.</param> /// <seealso cref="MotionSynthesizer.Query"/> public QueryTraitExpression Where <T>(T value) where T : struct { return (QueryTraitExpression.Create( ref binary.Ref).And(value)); }