content stringlengths 5 1.04M | avg_line_length float64 1.75 12.9k | max_line_length int64 2 244k | alphanum_fraction float64 0 0.98 | licenses list | repository_name stringlengths 7 92 | path stringlengths 3 249 | size int64 5 1.04M | lang stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|
using System;
using FakeBt.Data;
using FakeBt.Resources;
using Microsoft.Extensions.Logging;
using Nancy;
using Nancy.ModelBinding;
namespace FakeBt
{
public class PhoneLineOrdersModule : NancyModule
{
private readonly ILogger logger;
public PhoneLineOrdersModule(IBtOrdersDataStore btOrdersStore, ILoggerFactory loggerFactory)
{
this.logger = loggerFactory.CreateLogger<PhoneLineOrdersModule>();
Get("/Status", x => {
return HttpStatusCode.OK;
});
Post("/PhoneLineOrders", x =>
{
try
{
var phoneLineOrder = this.Bind<BtOrderInbound>();
btOrdersStore.Receive(phoneLineOrder);
return HttpStatusCode.Accepted;
}
catch (Exception ex)
{
this.logger.LogError(ex.ToString());
throw;
}
});
}
}
}
| 24.97561 | 100 | 0.52832 | [
"Apache-2.0"
] | JonQuxBurton/MicroservicesSample | src/FakeBt/PhoneLineOrdersModule.cs | 1,026 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace SeaQuail.Data
{
public enum SQLogicOperators { AND, OR }
public enum SQRelationOperators { Equal, GreaterThan, LessThan, GreaterThanOrEqual, LessThanOrEqual, StartsWith, Like, EndsWith, Contains, Before, After, In, Is }
public abstract class SQConditionBase
{
/// <summary>
/// The And or Or logic operator
/// </summary>
public SQLogicOperators Connective { get; private set; }
/// <summary>
/// The subsequent condition
/// </summary>
public SQConditionBase NextCondition { get; private set; }
/// <summary>
/// Set to true to invert the meaning of the condition. For
/// example, if the condition is a == b, then when set to
/// true the condition becomes a != b
/// </summary>
public bool InvertMeaning { get; set; }
/// <summary>
/// Append a condition with a connective "or" to this condition chain and return this.
/// </summary>
/// <param name="nextCondition"></param>
/// <returns>The current condition</returns>
public SQConditionBase Or(SQConditionBase nextCondition)
{
AppendCondition(nextCondition, SQLogicOperators.OR);
return this;
}
/// <summary>
/// Append an "or" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase Or(string operandA, SQRelationOperators op, string operandB)
{
return Or(new SQCondition(operandA, op, operandB, false));
}
/// <summary>
/// Append an "or" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase Or(string operandA, SQRelationOperators op, string operandB, bool invert)
{
return Or(new SQCondition(operandA, op, operandB, invert));
}
/// <summary>
/// Append an "or" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase Or(string operandA, SQRelationOperators op, object operandB)
{
return Or(new SQCondition(operandA, op, operandB, false));
}
/// <summary>
/// Append an "or" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase Or(string operandA, SQRelationOperators op, object operandB, bool invert)
{
return Or(new SQCondition(operandA, op, operandB, invert));
}
/// <summary>
/// Append an "or" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase Or(object operandA, SQRelationOperators op, object operandB)
{
return Or(new SQCondition(operandA, op, operandB, false));
}
/// <summary>
/// Append an "or" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase Or(object operandA, SQRelationOperators op, object operandB, bool invert)
{
return Or(new SQCondition(operandA, op, operandB, invert));
}
/// <summary>
/// Append an "or" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase Or(IWriteSQL operandA, SQRelationOperators op, IWriteSQL operandB)
{
return Or(new SQCondition(operandA, op, operandB, false));
}
/// <summary>
/// Append an "or" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase Or(IWriteSQL operandA, SQRelationOperators op, IWriteSQL operandB, bool invert)
{
return Or(new SQCondition(operandA, op, operandB, invert));
}
/// <summary>
/// Append a condition with a connective "and" to this condition chain and return this.
/// </summary>
/// <param name="nextCondition"></param>
/// <returns>The current condition</returns>
public SQConditionBase And(SQConditionBase nextCondition)
{
AppendCondition(nextCondition, SQLogicOperators.AND);
return this;
}
/// <summary>
/// Append an "and" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase And(string operandA, SQRelationOperators op, string operandB)
{
return And(operandA, op, operandB, false);
}
/// <summary>
/// Append an "and" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase And(string operandA, SQRelationOperators op, string operandB, bool invert)
{
return And(new SQCondition(operandA, op, operandB, invert));
}
/// <summary>
/// Append an "and" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase And(string operandA, SQRelationOperators op, object operandB)
{
return And(operandA, op, operandB, false);
}
/// <summary>
/// Append an "and" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase And(string operandA, SQRelationOperators op, object operandB, bool invert)
{
return And(new SQCondition(operandA, op, operandB, invert));
}
/// <summary>
/// Append an "and" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase And(object operandA, SQRelationOperators op, object operandB)
{
return And(operandA, op, operandB, false);
}
/// <summary>
/// Append an "and" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase And(object operandA, SQRelationOperators op, object operandB, bool invert)
{
return And(new SQCondition(operandA, op, operandB, invert));
}
/// <summary>
/// Append an "and" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase And(ISQLWriter operandA, SQRelationOperators op, ISQLWriter operandB)
{
return And(operandA, op, operandB, false);
}
/// <summary>
/// Append an "and" condition. Pass the settings for a SQCondition
/// </summary>
/// <param name="operandA"></param>
/// <param name="op"></param>
/// <param name="operandB"></param>
/// <returns>The current condition</returns>
public SQConditionBase And(ISQLWriter operandA, SQRelationOperators op, ISQLWriter operandB, bool invert)
{
return And(new SQCondition(operandA, op, operandB, invert));
}
private void AppendCondition(SQConditionBase condition, SQLogicOperators connective)
{
if (NextCondition == null)
{
NextCondition = condition;
Connective = connective;
}
else
{
NextCondition.AppendCondition(condition, connective);
}
}
}
}
| 41.570833 | 166 | 0.575223 | [
"MIT"
] | gjcampbell/seaquail-legacy | sourceCode/SeaQuail/Data/SQConditionBase.cs | 9,979 | C# |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AzureNative.Network.V20190701.Outputs
{
/// <summary>
/// Customer error of an application gateway.
/// </summary>
[OutputType]
public sealed class ApplicationGatewayCustomErrorResponse
{
/// <summary>
/// Error page URL of the application gateway customer error.
/// </summary>
public readonly string? CustomErrorPageUrl;
/// <summary>
/// Status code of the application gateway customer error.
/// </summary>
public readonly string? StatusCode;
[OutputConstructor]
private ApplicationGatewayCustomErrorResponse(
string? customErrorPageUrl,
string? statusCode)
{
CustomErrorPageUrl = customErrorPageUrl;
StatusCode = statusCode;
}
}
}
| 28.897436 | 81 | 0.651287 | [
"Apache-2.0"
] | polivbr/pulumi-azure-native | sdk/dotnet/Network/V20190701/Outputs/ApplicationGatewayCustomErrorResponse.cs | 1,127 | C# |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using GlmSharp.Swizzle;
// ReSharper disable InconsistentNaming
namespace GlmSharp.Swizzle
{
/// <summary>
/// Temporary vector of type float with 4 components, used for implementing swizzling for vec4.
/// </summary>
[Serializable]
[StructLayout(LayoutKind.Sequential)]
public struct swizzle_vec4
{
#region Fields
/// <summary>
/// x-component
/// </summary>
internal readonly float x;
/// <summary>
/// y-component
/// </summary>
internal readonly float y;
/// <summary>
/// z-component
/// </summary>
internal readonly float z;
/// <summary>
/// w-component
/// </summary>
internal readonly float w;
#endregion
#region Constructors
/// <summary>
/// Constructor for swizzle_vec4.
/// </summary>
internal swizzle_vec4(float x, float y, float z, float w)
{
this.x = x;
this.y = y;
this.z = z;
this.w = w;
}
#endregion
#region Properties
/// <summary>
/// Returns vec4.xx swizzling.
/// </summary>
public vec2 xx => new vec2(x, x);
/// <summary>
/// Returns vec4.rr swizzling (equivalent to vec4.xx).
/// </summary>
public vec2 rr => new vec2(x, x);
/// <summary>
/// Returns vec4.xxx swizzling.
/// </summary>
public vec3 xxx => new vec3(x, x, x);
/// <summary>
/// Returns vec4.rrr swizzling (equivalent to vec4.xxx).
/// </summary>
public vec3 rrr => new vec3(x, x, x);
/// <summary>
/// Returns vec4.xxxx swizzling.
/// </summary>
public vec4 xxxx => new vec4(x, x, x, x);
/// <summary>
/// Returns vec4.rrrr swizzling (equivalent to vec4.xxxx).
/// </summary>
public vec4 rrrr => new vec4(x, x, x, x);
/// <summary>
/// Returns vec4.xxxxx swizzling.
/// </summary>
public vec5 xxxxx => new vec5(x, x, x, x, x);
/// <summary>
/// Returns vec4.rrrrr swizzling (equivalent to vec4.xxxxx).
/// </summary>
public vec5 rrrrr => new vec5(x, x, x, x, x);
/// <summary>
/// Returns vec4.xxxxy swizzling.
/// </summary>
public vec5 xxxxy => new vec5(x, x, x, x, y);
/// <summary>
/// Returns vec4.rrrrg swizzling (equivalent to vec4.xxxxy).
/// </summary>
public vec5 rrrrg => new vec5(x, x, x, x, y);
/// <summary>
/// Returns vec4.xxxxz swizzling.
/// </summary>
public vec5 xxxxz => new vec5(x, x, x, x, z);
/// <summary>
/// Returns vec4.rrrrb swizzling (equivalent to vec4.xxxxz).
/// </summary>
public vec5 rrrrb => new vec5(x, x, x, x, z);
/// <summary>
/// Returns vec4.xxxxw swizzling.
/// </summary>
public vec5 xxxxw => new vec5(x, x, x, x, w);
/// <summary>
/// Returns vec4.rrrra swizzling (equivalent to vec4.xxxxw).
/// </summary>
public vec5 rrrra => new vec5(x, x, x, x, w);
/// <summary>
/// Returns vec4.xxxy swizzling.
/// </summary>
public vec4 xxxy => new vec4(x, x, x, y);
/// <summary>
/// Returns vec4.rrrg swizzling (equivalent to vec4.xxxy).
/// </summary>
public vec4 rrrg => new vec4(x, x, x, y);
/// <summary>
/// Returns vec4.xxxyx swizzling.
/// </summary>
public vec5 xxxyx => new vec5(x, x, x, y, x);
/// <summary>
/// Returns vec4.rrrgr swizzling (equivalent to vec4.xxxyx).
/// </summary>
public vec5 rrrgr => new vec5(x, x, x, y, x);
/// <summary>
/// Returns vec4.xxxyy swizzling.
/// </summary>
public vec5 xxxyy => new vec5(x, x, x, y, y);
/// <summary>
/// Returns vec4.rrrgg swizzling (equivalent to vec4.xxxyy).
/// </summary>
public vec5 rrrgg => new vec5(x, x, x, y, y);
/// <summary>
/// Returns vec4.xxxyz swizzling.
/// </summary>
public vec5 xxxyz => new vec5(x, x, x, y, z);
/// <summary>
/// Returns vec4.rrrgb swizzling (equivalent to vec4.xxxyz).
/// </summary>
public vec5 rrrgb => new vec5(x, x, x, y, z);
/// <summary>
/// Returns vec4.xxxyw swizzling.
/// </summary>
public vec5 xxxyw => new vec5(x, x, x, y, w);
/// <summary>
/// Returns vec4.rrrga swizzling (equivalent to vec4.xxxyw).
/// </summary>
public vec5 rrrga => new vec5(x, x, x, y, w);
/// <summary>
/// Returns vec4.xxxz swizzling.
/// </summary>
public vec4 xxxz => new vec4(x, x, x, z);
/// <summary>
/// Returns vec4.rrrb swizzling (equivalent to vec4.xxxz).
/// </summary>
public vec4 rrrb => new vec4(x, x, x, z);
/// <summary>
/// Returns vec4.xxxzx swizzling.
/// </summary>
public vec5 xxxzx => new vec5(x, x, x, z, x);
/// <summary>
/// Returns vec4.rrrbr swizzling (equivalent to vec4.xxxzx).
/// </summary>
public vec5 rrrbr => new vec5(x, x, x, z, x);
/// <summary>
/// Returns vec4.xxxzy swizzling.
/// </summary>
public vec5 xxxzy => new vec5(x, x, x, z, y);
/// <summary>
/// Returns vec4.rrrbg swizzling (equivalent to vec4.xxxzy).
/// </summary>
public vec5 rrrbg => new vec5(x, x, x, z, y);
/// <summary>
/// Returns vec4.xxxzz swizzling.
/// </summary>
public vec5 xxxzz => new vec5(x, x, x, z, z);
/// <summary>
/// Returns vec4.rrrbb swizzling (equivalent to vec4.xxxzz).
/// </summary>
public vec5 rrrbb => new vec5(x, x, x, z, z);
/// <summary>
/// Returns vec4.xxxzw swizzling.
/// </summary>
public vec5 xxxzw => new vec5(x, x, x, z, w);
/// <summary>
/// Returns vec4.rrrba swizzling (equivalent to vec4.xxxzw).
/// </summary>
public vec5 rrrba => new vec5(x, x, x, z, w);
/// <summary>
/// Returns vec4.xxxw swizzling.
/// </summary>
public vec4 xxxw => new vec4(x, x, x, w);
/// <summary>
/// Returns vec4.rrra swizzling (equivalent to vec4.xxxw).
/// </summary>
public vec4 rrra => new vec4(x, x, x, w);
/// <summary>
/// Returns vec4.xxxwx swizzling.
/// </summary>
public vec5 xxxwx => new vec5(x, x, x, w, x);
/// <summary>
/// Returns vec4.rrrar swizzling (equivalent to vec4.xxxwx).
/// </summary>
public vec5 rrrar => new vec5(x, x, x, w, x);
/// <summary>
/// Returns vec4.xxxwy swizzling.
/// </summary>
public vec5 xxxwy => new vec5(x, x, x, w, y);
/// <summary>
/// Returns vec4.rrrag swizzling (equivalent to vec4.xxxwy).
/// </summary>
public vec5 rrrag => new vec5(x, x, x, w, y);
/// <summary>
/// Returns vec4.xxxwz swizzling.
/// </summary>
public vec5 xxxwz => new vec5(x, x, x, w, z);
/// <summary>
/// Returns vec4.rrrab swizzling (equivalent to vec4.xxxwz).
/// </summary>
public vec5 rrrab => new vec5(x, x, x, w, z);
/// <summary>
/// Returns vec4.xxxww swizzling.
/// </summary>
public vec5 xxxww => new vec5(x, x, x, w, w);
/// <summary>
/// Returns vec4.rrraa swizzling (equivalent to vec4.xxxww).
/// </summary>
public vec5 rrraa => new vec5(x, x, x, w, w);
/// <summary>
/// Returns vec4.xxy swizzling.
/// </summary>
public vec3 xxy => new vec3(x, x, y);
/// <summary>
/// Returns vec4.rrg swizzling (equivalent to vec4.xxy).
/// </summary>
public vec3 rrg => new vec3(x, x, y);
/// <summary>
/// Returns vec4.xxyx swizzling.
/// </summary>
public vec4 xxyx => new vec4(x, x, y, x);
/// <summary>
/// Returns vec4.rrgr swizzling (equivalent to vec4.xxyx).
/// </summary>
public vec4 rrgr => new vec4(x, x, y, x);
/// <summary>
/// Returns vec4.xxyxx swizzling.
/// </summary>
public vec5 xxyxx => new vec5(x, x, y, x, x);
/// <summary>
/// Returns vec4.rrgrr swizzling (equivalent to vec4.xxyxx).
/// </summary>
public vec5 rrgrr => new vec5(x, x, y, x, x);
/// <summary>
/// Returns vec4.xxyxy swizzling.
/// </summary>
public vec5 xxyxy => new vec5(x, x, y, x, y);
/// <summary>
/// Returns vec4.rrgrg swizzling (equivalent to vec4.xxyxy).
/// </summary>
public vec5 rrgrg => new vec5(x, x, y, x, y);
/// <summary>
/// Returns vec4.xxyxz swizzling.
/// </summary>
public vec5 xxyxz => new vec5(x, x, y, x, z);
/// <summary>
/// Returns vec4.rrgrb swizzling (equivalent to vec4.xxyxz).
/// </summary>
public vec5 rrgrb => new vec5(x, x, y, x, z);
/// <summary>
/// Returns vec4.xxyxw swizzling.
/// </summary>
public vec5 xxyxw => new vec5(x, x, y, x, w);
/// <summary>
/// Returns vec4.rrgra swizzling (equivalent to vec4.xxyxw).
/// </summary>
public vec5 rrgra => new vec5(x, x, y, x, w);
/// <summary>
/// Returns vec4.xxyy swizzling.
/// </summary>
public vec4 xxyy => new vec4(x, x, y, y);
/// <summary>
/// Returns vec4.rrgg swizzling (equivalent to vec4.xxyy).
/// </summary>
public vec4 rrgg => new vec4(x, x, y, y);
/// <summary>
/// Returns vec4.xxyyx swizzling.
/// </summary>
public vec5 xxyyx => new vec5(x, x, y, y, x);
/// <summary>
/// Returns vec4.rrggr swizzling (equivalent to vec4.xxyyx).
/// </summary>
public vec5 rrggr => new vec5(x, x, y, y, x);
/// <summary>
/// Returns vec4.xxyyy swizzling.
/// </summary>
public vec5 xxyyy => new vec5(x, x, y, y, y);
/// <summary>
/// Returns vec4.rrggg swizzling (equivalent to vec4.xxyyy).
/// </summary>
public vec5 rrggg => new vec5(x, x, y, y, y);
/// <summary>
/// Returns vec4.xxyyz swizzling.
/// </summary>
public vec5 xxyyz => new vec5(x, x, y, y, z);
/// <summary>
/// Returns vec4.rrggb swizzling (equivalent to vec4.xxyyz).
/// </summary>
public vec5 rrggb => new vec5(x, x, y, y, z);
/// <summary>
/// Returns vec4.xxyyw swizzling.
/// </summary>
public vec5 xxyyw => new vec5(x, x, y, y, w);
/// <summary>
/// Returns vec4.rrgga swizzling (equivalent to vec4.xxyyw).
/// </summary>
public vec5 rrgga => new vec5(x, x, y, y, w);
/// <summary>
/// Returns vec4.xxyz swizzling.
/// </summary>
public vec4 xxyz => new vec4(x, x, y, z);
/// <summary>
/// Returns vec4.rrgb swizzling (equivalent to vec4.xxyz).
/// </summary>
public vec4 rrgb => new vec4(x, x, y, z);
/// <summary>
/// Returns vec4.xxyzx swizzling.
/// </summary>
public vec5 xxyzx => new vec5(x, x, y, z, x);
/// <summary>
/// Returns vec4.rrgbr swizzling (equivalent to vec4.xxyzx).
/// </summary>
public vec5 rrgbr => new vec5(x, x, y, z, x);
/// <summary>
/// Returns vec4.xxyzy swizzling.
/// </summary>
public vec5 xxyzy => new vec5(x, x, y, z, y);
/// <summary>
/// Returns vec4.rrgbg swizzling (equivalent to vec4.xxyzy).
/// </summary>
public vec5 rrgbg => new vec5(x, x, y, z, y);
/// <summary>
/// Returns vec4.xxyzz swizzling.
/// </summary>
public vec5 xxyzz => new vec5(x, x, y, z, z);
/// <summary>
/// Returns vec4.rrgbb swizzling (equivalent to vec4.xxyzz).
/// </summary>
public vec5 rrgbb => new vec5(x, x, y, z, z);
/// <summary>
/// Returns vec4.xxyzw swizzling.
/// </summary>
public vec5 xxyzw => new vec5(x, x, y, z, w);
/// <summary>
/// Returns vec4.rrgba swizzling (equivalent to vec4.xxyzw).
/// </summary>
public vec5 rrgba => new vec5(x, x, y, z, w);
/// <summary>
/// Returns vec4.xxyw swizzling.
/// </summary>
public vec4 xxyw => new vec4(x, x, y, w);
/// <summary>
/// Returns vec4.rrga swizzling (equivalent to vec4.xxyw).
/// </summary>
public vec4 rrga => new vec4(x, x, y, w);
/// <summary>
/// Returns vec4.xxywx swizzling.
/// </summary>
public vec5 xxywx => new vec5(x, x, y, w, x);
/// <summary>
/// Returns vec4.rrgar swizzling (equivalent to vec4.xxywx).
/// </summary>
public vec5 rrgar => new vec5(x, x, y, w, x);
/// <summary>
/// Returns vec4.xxywy swizzling.
/// </summary>
public vec5 xxywy => new vec5(x, x, y, w, y);
/// <summary>
/// Returns vec4.rrgag swizzling (equivalent to vec4.xxywy).
/// </summary>
public vec5 rrgag => new vec5(x, x, y, w, y);
/// <summary>
/// Returns vec4.xxywz swizzling.
/// </summary>
public vec5 xxywz => new vec5(x, x, y, w, z);
/// <summary>
/// Returns vec4.rrgab swizzling (equivalent to vec4.xxywz).
/// </summary>
public vec5 rrgab => new vec5(x, x, y, w, z);
/// <summary>
/// Returns vec4.xxyww swizzling.
/// </summary>
public vec5 xxyww => new vec5(x, x, y, w, w);
/// <summary>
/// Returns vec4.rrgaa swizzling (equivalent to vec4.xxyww).
/// </summary>
public vec5 rrgaa => new vec5(x, x, y, w, w);
/// <summary>
/// Returns vec4.xxz swizzling.
/// </summary>
public vec3 xxz => new vec3(x, x, z);
/// <summary>
/// Returns vec4.rrb swizzling (equivalent to vec4.xxz).
/// </summary>
public vec3 rrb => new vec3(x, x, z);
/// <summary>
/// Returns vec4.xxzx swizzling.
/// </summary>
public vec4 xxzx => new vec4(x, x, z, x);
/// <summary>
/// Returns vec4.rrbr swizzling (equivalent to vec4.xxzx).
/// </summary>
public vec4 rrbr => new vec4(x, x, z, x);
/// <summary>
/// Returns vec4.xxzxx swizzling.
/// </summary>
public vec5 xxzxx => new vec5(x, x, z, x, x);
/// <summary>
/// Returns vec4.rrbrr swizzling (equivalent to vec4.xxzxx).
/// </summary>
public vec5 rrbrr => new vec5(x, x, z, x, x);
/// <summary>
/// Returns vec4.xxzxy swizzling.
/// </summary>
public vec5 xxzxy => new vec5(x, x, z, x, y);
/// <summary>
/// Returns vec4.rrbrg swizzling (equivalent to vec4.xxzxy).
/// </summary>
public vec5 rrbrg => new vec5(x, x, z, x, y);
/// <summary>
/// Returns vec4.xxzxz swizzling.
/// </summary>
public vec5 xxzxz => new vec5(x, x, z, x, z);
/// <summary>
/// Returns vec4.rrbrb swizzling (equivalent to vec4.xxzxz).
/// </summary>
public vec5 rrbrb => new vec5(x, x, z, x, z);
/// <summary>
/// Returns vec4.xxzxw swizzling.
/// </summary>
public vec5 xxzxw => new vec5(x, x, z, x, w);
/// <summary>
/// Returns vec4.rrbra swizzling (equivalent to vec4.xxzxw).
/// </summary>
public vec5 rrbra => new vec5(x, x, z, x, w);
/// <summary>
/// Returns vec4.xxzy swizzling.
/// </summary>
public vec4 xxzy => new vec4(x, x, z, y);
/// <summary>
/// Returns vec4.rrbg swizzling (equivalent to vec4.xxzy).
/// </summary>
public vec4 rrbg => new vec4(x, x, z, y);
/// <summary>
/// Returns vec4.xxzyx swizzling.
/// </summary>
public vec5 xxzyx => new vec5(x, x, z, y, x);
/// <summary>
/// Returns vec4.rrbgr swizzling (equivalent to vec4.xxzyx).
/// </summary>
public vec5 rrbgr => new vec5(x, x, z, y, x);
/// <summary>
/// Returns vec4.xxzyy swizzling.
/// </summary>
public vec5 xxzyy => new vec5(x, x, z, y, y);
/// <summary>
/// Returns vec4.rrbgg swizzling (equivalent to vec4.xxzyy).
/// </summary>
public vec5 rrbgg => new vec5(x, x, z, y, y);
/// <summary>
/// Returns vec4.xxzyz swizzling.
/// </summary>
public vec5 xxzyz => new vec5(x, x, z, y, z);
/// <summary>
/// Returns vec4.rrbgb swizzling (equivalent to vec4.xxzyz).
/// </summary>
public vec5 rrbgb => new vec5(x, x, z, y, z);
/// <summary>
/// Returns vec4.xxzyw swizzling.
/// </summary>
public vec5 xxzyw => new vec5(x, x, z, y, w);
/// <summary>
/// Returns vec4.rrbga swizzling (equivalent to vec4.xxzyw).
/// </summary>
public vec5 rrbga => new vec5(x, x, z, y, w);
/// <summary>
/// Returns vec4.xxzz swizzling.
/// </summary>
public vec4 xxzz => new vec4(x, x, z, z);
/// <summary>
/// Returns vec4.rrbb swizzling (equivalent to vec4.xxzz).
/// </summary>
public vec4 rrbb => new vec4(x, x, z, z);
/// <summary>
/// Returns vec4.xxzzx swizzling.
/// </summary>
public vec5 xxzzx => new vec5(x, x, z, z, x);
/// <summary>
/// Returns vec4.rrbbr swizzling (equivalent to vec4.xxzzx).
/// </summary>
public vec5 rrbbr => new vec5(x, x, z, z, x);
/// <summary>
/// Returns vec4.xxzzy swizzling.
/// </summary>
public vec5 xxzzy => new vec5(x, x, z, z, y);
/// <summary>
/// Returns vec4.rrbbg swizzling (equivalent to vec4.xxzzy).
/// </summary>
public vec5 rrbbg => new vec5(x, x, z, z, y);
/// <summary>
/// Returns vec4.xxzzz swizzling.
/// </summary>
public vec5 xxzzz => new vec5(x, x, z, z, z);
/// <summary>
/// Returns vec4.rrbbb swizzling (equivalent to vec4.xxzzz).
/// </summary>
public vec5 rrbbb => new vec5(x, x, z, z, z);
/// <summary>
/// Returns vec4.xxzzw swizzling.
/// </summary>
public vec5 xxzzw => new vec5(x, x, z, z, w);
/// <summary>
/// Returns vec4.rrbba swizzling (equivalent to vec4.xxzzw).
/// </summary>
public vec5 rrbba => new vec5(x, x, z, z, w);
/// <summary>
/// Returns vec4.xxzw swizzling.
/// </summary>
public vec4 xxzw => new vec4(x, x, z, w);
/// <summary>
/// Returns vec4.rrba swizzling (equivalent to vec4.xxzw).
/// </summary>
public vec4 rrba => new vec4(x, x, z, w);
/// <summary>
/// Returns vec4.xxzwx swizzling.
/// </summary>
public vec5 xxzwx => new vec5(x, x, z, w, x);
/// <summary>
/// Returns vec4.rrbar swizzling (equivalent to vec4.xxzwx).
/// </summary>
public vec5 rrbar => new vec5(x, x, z, w, x);
/// <summary>
/// Returns vec4.xxzwy swizzling.
/// </summary>
public vec5 xxzwy => new vec5(x, x, z, w, y);
/// <summary>
/// Returns vec4.rrbag swizzling (equivalent to vec4.xxzwy).
/// </summary>
public vec5 rrbag => new vec5(x, x, z, w, y);
/// <summary>
/// Returns vec4.xxzwz swizzling.
/// </summary>
public vec5 xxzwz => new vec5(x, x, z, w, z);
/// <summary>
/// Returns vec4.rrbab swizzling (equivalent to vec4.xxzwz).
/// </summary>
public vec5 rrbab => new vec5(x, x, z, w, z);
/// <summary>
/// Returns vec4.xxzww swizzling.
/// </summary>
public vec5 xxzww => new vec5(x, x, z, w, w);
/// <summary>
/// Returns vec4.rrbaa swizzling (equivalent to vec4.xxzww).
/// </summary>
public vec5 rrbaa => new vec5(x, x, z, w, w);
/// <summary>
/// Returns vec4.xxw swizzling.
/// </summary>
public vec3 xxw => new vec3(x, x, w);
/// <summary>
/// Returns vec4.rra swizzling (equivalent to vec4.xxw).
/// </summary>
public vec3 rra => new vec3(x, x, w);
/// <summary>
/// Returns vec4.xxwx swizzling.
/// </summary>
public vec4 xxwx => new vec4(x, x, w, x);
/// <summary>
/// Returns vec4.rrar swizzling (equivalent to vec4.xxwx).
/// </summary>
public vec4 rrar => new vec4(x, x, w, x);
/// <summary>
/// Returns vec4.xxwxx swizzling.
/// </summary>
public vec5 xxwxx => new vec5(x, x, w, x, x);
/// <summary>
/// Returns vec4.rrarr swizzling (equivalent to vec4.xxwxx).
/// </summary>
public vec5 rrarr => new vec5(x, x, w, x, x);
/// <summary>
/// Returns vec4.xxwxy swizzling.
/// </summary>
public vec5 xxwxy => new vec5(x, x, w, x, y);
/// <summary>
/// Returns vec4.rrarg swizzling (equivalent to vec4.xxwxy).
/// </summary>
public vec5 rrarg => new vec5(x, x, w, x, y);
/// <summary>
/// Returns vec4.xxwxz swizzling.
/// </summary>
public vec5 xxwxz => new vec5(x, x, w, x, z);
/// <summary>
/// Returns vec4.rrarb swizzling (equivalent to vec4.xxwxz).
/// </summary>
public vec5 rrarb => new vec5(x, x, w, x, z);
/// <summary>
/// Returns vec4.xxwxw swizzling.
/// </summary>
public vec5 xxwxw => new vec5(x, x, w, x, w);
/// <summary>
/// Returns vec4.rrara swizzling (equivalent to vec4.xxwxw).
/// </summary>
public vec5 rrara => new vec5(x, x, w, x, w);
/// <summary>
/// Returns vec4.xxwy swizzling.
/// </summary>
public vec4 xxwy => new vec4(x, x, w, y);
/// <summary>
/// Returns vec4.rrag swizzling (equivalent to vec4.xxwy).
/// </summary>
public vec4 rrag => new vec4(x, x, w, y);
/// <summary>
/// Returns vec4.xxwyx swizzling.
/// </summary>
public vec5 xxwyx => new vec5(x, x, w, y, x);
/// <summary>
/// Returns vec4.rragr swizzling (equivalent to vec4.xxwyx).
/// </summary>
public vec5 rragr => new vec5(x, x, w, y, x);
/// <summary>
/// Returns vec4.xxwyy swizzling.
/// </summary>
public vec5 xxwyy => new vec5(x, x, w, y, y);
/// <summary>
/// Returns vec4.rragg swizzling (equivalent to vec4.xxwyy).
/// </summary>
public vec5 rragg => new vec5(x, x, w, y, y);
/// <summary>
/// Returns vec4.xxwyz swizzling.
/// </summary>
public vec5 xxwyz => new vec5(x, x, w, y, z);
/// <summary>
/// Returns vec4.rragb swizzling (equivalent to vec4.xxwyz).
/// </summary>
public vec5 rragb => new vec5(x, x, w, y, z);
/// <summary>
/// Returns vec4.xxwyw swizzling.
/// </summary>
public vec5 xxwyw => new vec5(x, x, w, y, w);
/// <summary>
/// Returns vec4.rraga swizzling (equivalent to vec4.xxwyw).
/// </summary>
public vec5 rraga => new vec5(x, x, w, y, w);
/// <summary>
/// Returns vec4.xxwz swizzling.
/// </summary>
public vec4 xxwz => new vec4(x, x, w, z);
/// <summary>
/// Returns vec4.rrab swizzling (equivalent to vec4.xxwz).
/// </summary>
public vec4 rrab => new vec4(x, x, w, z);
/// <summary>
/// Returns vec4.xxwzx swizzling.
/// </summary>
public vec5 xxwzx => new vec5(x, x, w, z, x);
/// <summary>
/// Returns vec4.rrabr swizzling (equivalent to vec4.xxwzx).
/// </summary>
public vec5 rrabr => new vec5(x, x, w, z, x);
/// <summary>
/// Returns vec4.xxwzy swizzling.
/// </summary>
public vec5 xxwzy => new vec5(x, x, w, z, y);
/// <summary>
/// Returns vec4.rrabg swizzling (equivalent to vec4.xxwzy).
/// </summary>
public vec5 rrabg => new vec5(x, x, w, z, y);
/// <summary>
/// Returns vec4.xxwzz swizzling.
/// </summary>
public vec5 xxwzz => new vec5(x, x, w, z, z);
/// <summary>
/// Returns vec4.rrabb swizzling (equivalent to vec4.xxwzz).
/// </summary>
public vec5 rrabb => new vec5(x, x, w, z, z);
/// <summary>
/// Returns vec4.xxwzw swizzling.
/// </summary>
public vec5 xxwzw => new vec5(x, x, w, z, w);
/// <summary>
/// Returns vec4.rraba swizzling (equivalent to vec4.xxwzw).
/// </summary>
public vec5 rraba => new vec5(x, x, w, z, w);
/// <summary>
/// Returns vec4.xxww swizzling.
/// </summary>
public vec4 xxww => new vec4(x, x, w, w);
/// <summary>
/// Returns vec4.rraa swizzling (equivalent to vec4.xxww).
/// </summary>
public vec4 rraa => new vec4(x, x, w, w);
/// <summary>
/// Returns vec4.xxwwx swizzling.
/// </summary>
public vec5 xxwwx => new vec5(x, x, w, w, x);
/// <summary>
/// Returns vec4.rraar swizzling (equivalent to vec4.xxwwx).
/// </summary>
public vec5 rraar => new vec5(x, x, w, w, x);
/// <summary>
/// Returns vec4.xxwwy swizzling.
/// </summary>
public vec5 xxwwy => new vec5(x, x, w, w, y);
/// <summary>
/// Returns vec4.rraag swizzling (equivalent to vec4.xxwwy).
/// </summary>
public vec5 rraag => new vec5(x, x, w, w, y);
/// <summary>
/// Returns vec4.xxwwz swizzling.
/// </summary>
public vec5 xxwwz => new vec5(x, x, w, w, z);
/// <summary>
/// Returns vec4.rraab swizzling (equivalent to vec4.xxwwz).
/// </summary>
public vec5 rraab => new vec5(x, x, w, w, z);
/// <summary>
/// Returns vec4.xxwww swizzling.
/// </summary>
public vec5 xxwww => new vec5(x, x, w, w, w);
/// <summary>
/// Returns vec4.rraaa swizzling (equivalent to vec4.xxwww).
/// </summary>
public vec5 rraaa => new vec5(x, x, w, w, w);
/// <summary>
/// Returns vec4.xy swizzling.
/// </summary>
public vec2 xy => new vec2(x, y);
/// <summary>
/// Returns vec4.rg swizzling (equivalent to vec4.xy).
/// </summary>
public vec2 rg => new vec2(x, y);
/// <summary>
/// Returns vec4.xyx swizzling.
/// </summary>
public vec3 xyx => new vec3(x, y, x);
/// <summary>
/// Returns vec4.rgr swizzling (equivalent to vec4.xyx).
/// </summary>
public vec3 rgr => new vec3(x, y, x);
/// <summary>
/// Returns vec4.xyxx swizzling.
/// </summary>
public vec4 xyxx => new vec4(x, y, x, x);
/// <summary>
/// Returns vec4.rgrr swizzling (equivalent to vec4.xyxx).
/// </summary>
public vec4 rgrr => new vec4(x, y, x, x);
/// <summary>
/// Returns vec4.xyxxx swizzling.
/// </summary>
public vec5 xyxxx => new vec5(x, y, x, x, x);
/// <summary>
/// Returns vec4.rgrrr swizzling (equivalent to vec4.xyxxx).
/// </summary>
public vec5 rgrrr => new vec5(x, y, x, x, x);
/// <summary>
/// Returns vec4.xyxxy swizzling.
/// </summary>
public vec5 xyxxy => new vec5(x, y, x, x, y);
/// <summary>
/// Returns vec4.rgrrg swizzling (equivalent to vec4.xyxxy).
/// </summary>
public vec5 rgrrg => new vec5(x, y, x, x, y);
/// <summary>
/// Returns vec4.xyxxz swizzling.
/// </summary>
public vec5 xyxxz => new vec5(x, y, x, x, z);
/// <summary>
/// Returns vec4.rgrrb swizzling (equivalent to vec4.xyxxz).
/// </summary>
public vec5 rgrrb => new vec5(x, y, x, x, z);
/// <summary>
/// Returns vec4.xyxxw swizzling.
/// </summary>
public vec5 xyxxw => new vec5(x, y, x, x, w);
/// <summary>
/// Returns vec4.rgrra swizzling (equivalent to vec4.xyxxw).
/// </summary>
public vec5 rgrra => new vec5(x, y, x, x, w);
/// <summary>
/// Returns vec4.xyxy swizzling.
/// </summary>
public vec4 xyxy => new vec4(x, y, x, y);
/// <summary>
/// Returns vec4.rgrg swizzling (equivalent to vec4.xyxy).
/// </summary>
public vec4 rgrg => new vec4(x, y, x, y);
/// <summary>
/// Returns vec4.xyxyx swizzling.
/// </summary>
public vec5 xyxyx => new vec5(x, y, x, y, x);
/// <summary>
/// Returns vec4.rgrgr swizzling (equivalent to vec4.xyxyx).
/// </summary>
public vec5 rgrgr => new vec5(x, y, x, y, x);
/// <summary>
/// Returns vec4.xyxyy swizzling.
/// </summary>
public vec5 xyxyy => new vec5(x, y, x, y, y);
/// <summary>
/// Returns vec4.rgrgg swizzling (equivalent to vec4.xyxyy).
/// </summary>
public vec5 rgrgg => new vec5(x, y, x, y, y);
/// <summary>
/// Returns vec4.xyxyz swizzling.
/// </summary>
public vec5 xyxyz => new vec5(x, y, x, y, z);
/// <summary>
/// Returns vec4.rgrgb swizzling (equivalent to vec4.xyxyz).
/// </summary>
public vec5 rgrgb => new vec5(x, y, x, y, z);
/// <summary>
/// Returns vec4.xyxyw swizzling.
/// </summary>
public vec5 xyxyw => new vec5(x, y, x, y, w);
/// <summary>
/// Returns vec4.rgrga swizzling (equivalent to vec4.xyxyw).
/// </summary>
public vec5 rgrga => new vec5(x, y, x, y, w);
/// <summary>
/// Returns vec4.xyxz swizzling.
/// </summary>
public vec4 xyxz => new vec4(x, y, x, z);
/// <summary>
/// Returns vec4.rgrb swizzling (equivalent to vec4.xyxz).
/// </summary>
public vec4 rgrb => new vec4(x, y, x, z);
/// <summary>
/// Returns vec4.xyxzx swizzling.
/// </summary>
public vec5 xyxzx => new vec5(x, y, x, z, x);
/// <summary>
/// Returns vec4.rgrbr swizzling (equivalent to vec4.xyxzx).
/// </summary>
public vec5 rgrbr => new vec5(x, y, x, z, x);
/// <summary>
/// Returns vec4.xyxzy swizzling.
/// </summary>
public vec5 xyxzy => new vec5(x, y, x, z, y);
/// <summary>
/// Returns vec4.rgrbg swizzling (equivalent to vec4.xyxzy).
/// </summary>
public vec5 rgrbg => new vec5(x, y, x, z, y);
/// <summary>
/// Returns vec4.xyxzz swizzling.
/// </summary>
public vec5 xyxzz => new vec5(x, y, x, z, z);
/// <summary>
/// Returns vec4.rgrbb swizzling (equivalent to vec4.xyxzz).
/// </summary>
public vec5 rgrbb => new vec5(x, y, x, z, z);
/// <summary>
/// Returns vec4.xyxzw swizzling.
/// </summary>
public vec5 xyxzw => new vec5(x, y, x, z, w);
/// <summary>
/// Returns vec4.rgrba swizzling (equivalent to vec4.xyxzw).
/// </summary>
public vec5 rgrba => new vec5(x, y, x, z, w);
/// <summary>
/// Returns vec4.xyxw swizzling.
/// </summary>
public vec4 xyxw => new vec4(x, y, x, w);
/// <summary>
/// Returns vec4.rgra swizzling (equivalent to vec4.xyxw).
/// </summary>
public vec4 rgra => new vec4(x, y, x, w);
/// <summary>
/// Returns vec4.xyxwx swizzling.
/// </summary>
public vec5 xyxwx => new vec5(x, y, x, w, x);
/// <summary>
/// Returns vec4.rgrar swizzling (equivalent to vec4.xyxwx).
/// </summary>
public vec5 rgrar => new vec5(x, y, x, w, x);
/// <summary>
/// Returns vec4.xyxwy swizzling.
/// </summary>
public vec5 xyxwy => new vec5(x, y, x, w, y);
/// <summary>
/// Returns vec4.rgrag swizzling (equivalent to vec4.xyxwy).
/// </summary>
public vec5 rgrag => new vec5(x, y, x, w, y);
/// <summary>
/// Returns vec4.xyxwz swizzling.
/// </summary>
public vec5 xyxwz => new vec5(x, y, x, w, z);
/// <summary>
/// Returns vec4.rgrab swizzling (equivalent to vec4.xyxwz).
/// </summary>
public vec5 rgrab => new vec5(x, y, x, w, z);
/// <summary>
/// Returns vec4.xyxww swizzling.
/// </summary>
public vec5 xyxww => new vec5(x, y, x, w, w);
/// <summary>
/// Returns vec4.rgraa swizzling (equivalent to vec4.xyxww).
/// </summary>
public vec5 rgraa => new vec5(x, y, x, w, w);
/// <summary>
/// Returns vec4.xyy swizzling.
/// </summary>
public vec3 xyy => new vec3(x, y, y);
/// <summary>
/// Returns vec4.rgg swizzling (equivalent to vec4.xyy).
/// </summary>
public vec3 rgg => new vec3(x, y, y);
/// <summary>
/// Returns vec4.xyyx swizzling.
/// </summary>
public vec4 xyyx => new vec4(x, y, y, x);
/// <summary>
/// Returns vec4.rggr swizzling (equivalent to vec4.xyyx).
/// </summary>
public vec4 rggr => new vec4(x, y, y, x);
/// <summary>
/// Returns vec4.xyyxx swizzling.
/// </summary>
public vec5 xyyxx => new vec5(x, y, y, x, x);
/// <summary>
/// Returns vec4.rggrr swizzling (equivalent to vec4.xyyxx).
/// </summary>
public vec5 rggrr => new vec5(x, y, y, x, x);
/// <summary>
/// Returns vec4.xyyxy swizzling.
/// </summary>
public vec5 xyyxy => new vec5(x, y, y, x, y);
/// <summary>
/// Returns vec4.rggrg swizzling (equivalent to vec4.xyyxy).
/// </summary>
public vec5 rggrg => new vec5(x, y, y, x, y);
/// <summary>
/// Returns vec4.xyyxz swizzling.
/// </summary>
public vec5 xyyxz => new vec5(x, y, y, x, z);
/// <summary>
/// Returns vec4.rggrb swizzling (equivalent to vec4.xyyxz).
/// </summary>
public vec5 rggrb => new vec5(x, y, y, x, z);
/// <summary>
/// Returns vec4.xyyxw swizzling.
/// </summary>
public vec5 xyyxw => new vec5(x, y, y, x, w);
/// <summary>
/// Returns vec4.rggra swizzling (equivalent to vec4.xyyxw).
/// </summary>
public vec5 rggra => new vec5(x, y, y, x, w);
/// <summary>
/// Returns vec4.xyyy swizzling.
/// </summary>
public vec4 xyyy => new vec4(x, y, y, y);
/// <summary>
/// Returns vec4.rggg swizzling (equivalent to vec4.xyyy).
/// </summary>
public vec4 rggg => new vec4(x, y, y, y);
/// <summary>
/// Returns vec4.xyyyx swizzling.
/// </summary>
public vec5 xyyyx => new vec5(x, y, y, y, x);
/// <summary>
/// Returns vec4.rgggr swizzling (equivalent to vec4.xyyyx).
/// </summary>
public vec5 rgggr => new vec5(x, y, y, y, x);
/// <summary>
/// Returns vec4.xyyyy swizzling.
/// </summary>
public vec5 xyyyy => new vec5(x, y, y, y, y);
/// <summary>
/// Returns vec4.rgggg swizzling (equivalent to vec4.xyyyy).
/// </summary>
public vec5 rgggg => new vec5(x, y, y, y, y);
/// <summary>
/// Returns vec4.xyyyz swizzling.
/// </summary>
public vec5 xyyyz => new vec5(x, y, y, y, z);
/// <summary>
/// Returns vec4.rgggb swizzling (equivalent to vec4.xyyyz).
/// </summary>
public vec5 rgggb => new vec5(x, y, y, y, z);
/// <summary>
/// Returns vec4.xyyyw swizzling.
/// </summary>
public vec5 xyyyw => new vec5(x, y, y, y, w);
/// <summary>
/// Returns vec4.rggga swizzling (equivalent to vec4.xyyyw).
/// </summary>
public vec5 rggga => new vec5(x, y, y, y, w);
/// <summary>
/// Returns vec4.xyyz swizzling.
/// </summary>
public vec4 xyyz => new vec4(x, y, y, z);
/// <summary>
/// Returns vec4.rggb swizzling (equivalent to vec4.xyyz).
/// </summary>
public vec4 rggb => new vec4(x, y, y, z);
/// <summary>
/// Returns vec4.xyyzx swizzling.
/// </summary>
public vec5 xyyzx => new vec5(x, y, y, z, x);
/// <summary>
/// Returns vec4.rggbr swizzling (equivalent to vec4.xyyzx).
/// </summary>
public vec5 rggbr => new vec5(x, y, y, z, x);
/// <summary>
/// Returns vec4.xyyzy swizzling.
/// </summary>
public vec5 xyyzy => new vec5(x, y, y, z, y);
/// <summary>
/// Returns vec4.rggbg swizzling (equivalent to vec4.xyyzy).
/// </summary>
public vec5 rggbg => new vec5(x, y, y, z, y);
/// <summary>
/// Returns vec4.xyyzz swizzling.
/// </summary>
public vec5 xyyzz => new vec5(x, y, y, z, z);
/// <summary>
/// Returns vec4.rggbb swizzling (equivalent to vec4.xyyzz).
/// </summary>
public vec5 rggbb => new vec5(x, y, y, z, z);
/// <summary>
/// Returns vec4.xyyzw swizzling.
/// </summary>
public vec5 xyyzw => new vec5(x, y, y, z, w);
/// <summary>
/// Returns vec4.rggba swizzling (equivalent to vec4.xyyzw).
/// </summary>
public vec5 rggba => new vec5(x, y, y, z, w);
/// <summary>
/// Returns vec4.xyyw swizzling.
/// </summary>
public vec4 xyyw => new vec4(x, y, y, w);
/// <summary>
/// Returns vec4.rgga swizzling (equivalent to vec4.xyyw).
/// </summary>
public vec4 rgga => new vec4(x, y, y, w);
/// <summary>
/// Returns vec4.xyywx swizzling.
/// </summary>
public vec5 xyywx => new vec5(x, y, y, w, x);
/// <summary>
/// Returns vec4.rggar swizzling (equivalent to vec4.xyywx).
/// </summary>
public vec5 rggar => new vec5(x, y, y, w, x);
/// <summary>
/// Returns vec4.xyywy swizzling.
/// </summary>
public vec5 xyywy => new vec5(x, y, y, w, y);
/// <summary>
/// Returns vec4.rggag swizzling (equivalent to vec4.xyywy).
/// </summary>
public vec5 rggag => new vec5(x, y, y, w, y);
/// <summary>
/// Returns vec4.xyywz swizzling.
/// </summary>
public vec5 xyywz => new vec5(x, y, y, w, z);
/// <summary>
/// Returns vec4.rggab swizzling (equivalent to vec4.xyywz).
/// </summary>
public vec5 rggab => new vec5(x, y, y, w, z);
/// <summary>
/// Returns vec4.xyyww swizzling.
/// </summary>
public vec5 xyyww => new vec5(x, y, y, w, w);
/// <summary>
/// Returns vec4.rggaa swizzling (equivalent to vec4.xyyww).
/// </summary>
public vec5 rggaa => new vec5(x, y, y, w, w);
/// <summary>
/// Returns vec4.xyz swizzling.
/// </summary>
public vec3 xyz => new vec3(x, y, z);
/// <summary>
/// Returns vec4.rgb swizzling (equivalent to vec4.xyz).
/// </summary>
public vec3 rgb => new vec3(x, y, z);
/// <summary>
/// Returns vec4.xyzx swizzling.
/// </summary>
public vec4 xyzx => new vec4(x, y, z, x);
/// <summary>
/// Returns vec4.rgbr swizzling (equivalent to vec4.xyzx).
/// </summary>
public vec4 rgbr => new vec4(x, y, z, x);
/// <summary>
/// Returns vec4.xyzxx swizzling.
/// </summary>
public vec5 xyzxx => new vec5(x, y, z, x, x);
/// <summary>
/// Returns vec4.rgbrr swizzling (equivalent to vec4.xyzxx).
/// </summary>
public vec5 rgbrr => new vec5(x, y, z, x, x);
/// <summary>
/// Returns vec4.xyzxy swizzling.
/// </summary>
public vec5 xyzxy => new vec5(x, y, z, x, y);
/// <summary>
/// Returns vec4.rgbrg swizzling (equivalent to vec4.xyzxy).
/// </summary>
public vec5 rgbrg => new vec5(x, y, z, x, y);
/// <summary>
/// Returns vec4.xyzxz swizzling.
/// </summary>
public vec5 xyzxz => new vec5(x, y, z, x, z);
/// <summary>
/// Returns vec4.rgbrb swizzling (equivalent to vec4.xyzxz).
/// </summary>
public vec5 rgbrb => new vec5(x, y, z, x, z);
/// <summary>
/// Returns vec4.xyzxw swizzling.
/// </summary>
public vec5 xyzxw => new vec5(x, y, z, x, w);
/// <summary>
/// Returns vec4.rgbra swizzling (equivalent to vec4.xyzxw).
/// </summary>
public vec5 rgbra => new vec5(x, y, z, x, w);
/// <summary>
/// Returns vec4.xyzy swizzling.
/// </summary>
public vec4 xyzy => new vec4(x, y, z, y);
/// <summary>
/// Returns vec4.rgbg swizzling (equivalent to vec4.xyzy).
/// </summary>
public vec4 rgbg => new vec4(x, y, z, y);
/// <summary>
/// Returns vec4.xyzyx swizzling.
/// </summary>
public vec5 xyzyx => new vec5(x, y, z, y, x);
/// <summary>
/// Returns vec4.rgbgr swizzling (equivalent to vec4.xyzyx).
/// </summary>
public vec5 rgbgr => new vec5(x, y, z, y, x);
/// <summary>
/// Returns vec4.xyzyy swizzling.
/// </summary>
public vec5 xyzyy => new vec5(x, y, z, y, y);
/// <summary>
/// Returns vec4.rgbgg swizzling (equivalent to vec4.xyzyy).
/// </summary>
public vec5 rgbgg => new vec5(x, y, z, y, y);
/// <summary>
/// Returns vec4.xyzyz swizzling.
/// </summary>
public vec5 xyzyz => new vec5(x, y, z, y, z);
/// <summary>
/// Returns vec4.rgbgb swizzling (equivalent to vec4.xyzyz).
/// </summary>
public vec5 rgbgb => new vec5(x, y, z, y, z);
/// <summary>
/// Returns vec4.xyzyw swizzling.
/// </summary>
public vec5 xyzyw => new vec5(x, y, z, y, w);
/// <summary>
/// Returns vec4.rgbga swizzling (equivalent to vec4.xyzyw).
/// </summary>
public vec5 rgbga => new vec5(x, y, z, y, w);
/// <summary>
/// Returns vec4.xyzz swizzling.
/// </summary>
public vec4 xyzz => new vec4(x, y, z, z);
/// <summary>
/// Returns vec4.rgbb swizzling (equivalent to vec4.xyzz).
/// </summary>
public vec4 rgbb => new vec4(x, y, z, z);
/// <summary>
/// Returns vec4.xyzzx swizzling.
/// </summary>
public vec5 xyzzx => new vec5(x, y, z, z, x);
/// <summary>
/// Returns vec4.rgbbr swizzling (equivalent to vec4.xyzzx).
/// </summary>
public vec5 rgbbr => new vec5(x, y, z, z, x);
/// <summary>
/// Returns vec4.xyzzy swizzling.
/// </summary>
public vec5 xyzzy => new vec5(x, y, z, z, y);
/// <summary>
/// Returns vec4.rgbbg swizzling (equivalent to vec4.xyzzy).
/// </summary>
public vec5 rgbbg => new vec5(x, y, z, z, y);
/// <summary>
/// Returns vec4.xyzzz swizzling.
/// </summary>
public vec5 xyzzz => new vec5(x, y, z, z, z);
/// <summary>
/// Returns vec4.rgbbb swizzling (equivalent to vec4.xyzzz).
/// </summary>
public vec5 rgbbb => new vec5(x, y, z, z, z);
/// <summary>
/// Returns vec4.xyzzw swizzling.
/// </summary>
public vec5 xyzzw => new vec5(x, y, z, z, w);
/// <summary>
/// Returns vec4.rgbba swizzling (equivalent to vec4.xyzzw).
/// </summary>
public vec5 rgbba => new vec5(x, y, z, z, w);
/// <summary>
/// Returns vec4.xyzw swizzling.
/// </summary>
public vec4 xyzw => new vec4(x, y, z, w);
/// <summary>
/// Returns vec4.rgba swizzling (equivalent to vec4.xyzw).
/// </summary>
public vec4 rgba => new vec4(x, y, z, w);
/// <summary>
/// Returns vec4.xyzwx swizzling.
/// </summary>
public vec5 xyzwx => new vec5(x, y, z, w, x);
/// <summary>
/// Returns vec4.rgbar swizzling (equivalent to vec4.xyzwx).
/// </summary>
public vec5 rgbar => new vec5(x, y, z, w, x);
/// <summary>
/// Returns vec4.xyzwy swizzling.
/// </summary>
public vec5 xyzwy => new vec5(x, y, z, w, y);
/// <summary>
/// Returns vec4.rgbag swizzling (equivalent to vec4.xyzwy).
/// </summary>
public vec5 rgbag => new vec5(x, y, z, w, y);
/// <summary>
/// Returns vec4.xyzwz swizzling.
/// </summary>
public vec5 xyzwz => new vec5(x, y, z, w, z);
/// <summary>
/// Returns vec4.rgbab swizzling (equivalent to vec4.xyzwz).
/// </summary>
public vec5 rgbab => new vec5(x, y, z, w, z);
/// <summary>
/// Returns vec4.xyzww swizzling.
/// </summary>
public vec5 xyzww => new vec5(x, y, z, w, w);
/// <summary>
/// Returns vec4.rgbaa swizzling (equivalent to vec4.xyzww).
/// </summary>
public vec5 rgbaa => new vec5(x, y, z, w, w);
/// <summary>
/// Returns vec4.xyw swizzling.
/// </summary>
public vec3 xyw => new vec3(x, y, w);
/// <summary>
/// Returns vec4.rga swizzling (equivalent to vec4.xyw).
/// </summary>
public vec3 rga => new vec3(x, y, w);
/// <summary>
/// Returns vec4.xywx swizzling.
/// </summary>
public vec4 xywx => new vec4(x, y, w, x);
/// <summary>
/// Returns vec4.rgar swizzling (equivalent to vec4.xywx).
/// </summary>
public vec4 rgar => new vec4(x, y, w, x);
/// <summary>
/// Returns vec4.xywxx swizzling.
/// </summary>
public vec5 xywxx => new vec5(x, y, w, x, x);
/// <summary>
/// Returns vec4.rgarr swizzling (equivalent to vec4.xywxx).
/// </summary>
public vec5 rgarr => new vec5(x, y, w, x, x);
/// <summary>
/// Returns vec4.xywxy swizzling.
/// </summary>
public vec5 xywxy => new vec5(x, y, w, x, y);
/// <summary>
/// Returns vec4.rgarg swizzling (equivalent to vec4.xywxy).
/// </summary>
public vec5 rgarg => new vec5(x, y, w, x, y);
/// <summary>
/// Returns vec4.xywxz swizzling.
/// </summary>
public vec5 xywxz => new vec5(x, y, w, x, z);
/// <summary>
/// Returns vec4.rgarb swizzling (equivalent to vec4.xywxz).
/// </summary>
public vec5 rgarb => new vec5(x, y, w, x, z);
/// <summary>
/// Returns vec4.xywxw swizzling.
/// </summary>
public vec5 xywxw => new vec5(x, y, w, x, w);
/// <summary>
/// Returns vec4.rgara swizzling (equivalent to vec4.xywxw).
/// </summary>
public vec5 rgara => new vec5(x, y, w, x, w);
/// <summary>
/// Returns vec4.xywy swizzling.
/// </summary>
public vec4 xywy => new vec4(x, y, w, y);
/// <summary>
/// Returns vec4.rgag swizzling (equivalent to vec4.xywy).
/// </summary>
public vec4 rgag => new vec4(x, y, w, y);
/// <summary>
/// Returns vec4.xywyx swizzling.
/// </summary>
public vec5 xywyx => new vec5(x, y, w, y, x);
/// <summary>
/// Returns vec4.rgagr swizzling (equivalent to vec4.xywyx).
/// </summary>
public vec5 rgagr => new vec5(x, y, w, y, x);
/// <summary>
/// Returns vec4.xywyy swizzling.
/// </summary>
public vec5 xywyy => new vec5(x, y, w, y, y);
/// <summary>
/// Returns vec4.rgagg swizzling (equivalent to vec4.xywyy).
/// </summary>
public vec5 rgagg => new vec5(x, y, w, y, y);
/// <summary>
/// Returns vec4.xywyz swizzling.
/// </summary>
public vec5 xywyz => new vec5(x, y, w, y, z);
/// <summary>
/// Returns vec4.rgagb swizzling (equivalent to vec4.xywyz).
/// </summary>
public vec5 rgagb => new vec5(x, y, w, y, z);
/// <summary>
/// Returns vec4.xywyw swizzling.
/// </summary>
public vec5 xywyw => new vec5(x, y, w, y, w);
/// <summary>
/// Returns vec4.rgaga swizzling (equivalent to vec4.xywyw).
/// </summary>
public vec5 rgaga => new vec5(x, y, w, y, w);
/// <summary>
/// Returns vec4.xywz swizzling.
/// </summary>
public vec4 xywz => new vec4(x, y, w, z);
/// <summary>
/// Returns vec4.rgab swizzling (equivalent to vec4.xywz).
/// </summary>
public vec4 rgab => new vec4(x, y, w, z);
/// <summary>
/// Returns vec4.xywzx swizzling.
/// </summary>
public vec5 xywzx => new vec5(x, y, w, z, x);
/// <summary>
/// Returns vec4.rgabr swizzling (equivalent to vec4.xywzx).
/// </summary>
public vec5 rgabr => new vec5(x, y, w, z, x);
/// <summary>
/// Returns vec4.xywzy swizzling.
/// </summary>
public vec5 xywzy => new vec5(x, y, w, z, y);
/// <summary>
/// Returns vec4.rgabg swizzling (equivalent to vec4.xywzy).
/// </summary>
public vec5 rgabg => new vec5(x, y, w, z, y);
/// <summary>
/// Returns vec4.xywzz swizzling.
/// </summary>
public vec5 xywzz => new vec5(x, y, w, z, z);
/// <summary>
/// Returns vec4.rgabb swizzling (equivalent to vec4.xywzz).
/// </summary>
public vec5 rgabb => new vec5(x, y, w, z, z);
/// <summary>
/// Returns vec4.xywzw swizzling.
/// </summary>
public vec5 xywzw => new vec5(x, y, w, z, w);
/// <summary>
/// Returns vec4.rgaba swizzling (equivalent to vec4.xywzw).
/// </summary>
public vec5 rgaba => new vec5(x, y, w, z, w);
/// <summary>
/// Returns vec4.xyww swizzling.
/// </summary>
public vec4 xyww => new vec4(x, y, w, w);
/// <summary>
/// Returns vec4.rgaa swizzling (equivalent to vec4.xyww).
/// </summary>
public vec4 rgaa => new vec4(x, y, w, w);
/// <summary>
/// Returns vec4.xywwx swizzling.
/// </summary>
public vec5 xywwx => new vec5(x, y, w, w, x);
/// <summary>
/// Returns vec4.rgaar swizzling (equivalent to vec4.xywwx).
/// </summary>
public vec5 rgaar => new vec5(x, y, w, w, x);
/// <summary>
/// Returns vec4.xywwy swizzling.
/// </summary>
public vec5 xywwy => new vec5(x, y, w, w, y);
/// <summary>
/// Returns vec4.rgaag swizzling (equivalent to vec4.xywwy).
/// </summary>
public vec5 rgaag => new vec5(x, y, w, w, y);
/// <summary>
/// Returns vec4.xywwz swizzling.
/// </summary>
public vec5 xywwz => new vec5(x, y, w, w, z);
/// <summary>
/// Returns vec4.rgaab swizzling (equivalent to vec4.xywwz).
/// </summary>
public vec5 rgaab => new vec5(x, y, w, w, z);
/// <summary>
/// Returns vec4.xywww swizzling.
/// </summary>
public vec5 xywww => new vec5(x, y, w, w, w);
/// <summary>
/// Returns vec4.rgaaa swizzling (equivalent to vec4.xywww).
/// </summary>
public vec5 rgaaa => new vec5(x, y, w, w, w);
/// <summary>
/// Returns vec4.xz swizzling.
/// </summary>
public vec2 xz => new vec2(x, z);
/// <summary>
/// Returns vec4.rb swizzling (equivalent to vec4.xz).
/// </summary>
public vec2 rb => new vec2(x, z);
/// <summary>
/// Returns vec4.xzx swizzling.
/// </summary>
public vec3 xzx => new vec3(x, z, x);
/// <summary>
/// Returns vec4.rbr swizzling (equivalent to vec4.xzx).
/// </summary>
public vec3 rbr => new vec3(x, z, x);
/// <summary>
/// Returns vec4.xzxx swizzling.
/// </summary>
public vec4 xzxx => new vec4(x, z, x, x);
/// <summary>
/// Returns vec4.rbrr swizzling (equivalent to vec4.xzxx).
/// </summary>
public vec4 rbrr => new vec4(x, z, x, x);
/// <summary>
/// Returns vec4.xzxxx swizzling.
/// </summary>
public vec5 xzxxx => new vec5(x, z, x, x, x);
/// <summary>
/// Returns vec4.rbrrr swizzling (equivalent to vec4.xzxxx).
/// </summary>
public vec5 rbrrr => new vec5(x, z, x, x, x);
/// <summary>
/// Returns vec4.xzxxy swizzling.
/// </summary>
public vec5 xzxxy => new vec5(x, z, x, x, y);
/// <summary>
/// Returns vec4.rbrrg swizzling (equivalent to vec4.xzxxy).
/// </summary>
public vec5 rbrrg => new vec5(x, z, x, x, y);
/// <summary>
/// Returns vec4.xzxxz swizzling.
/// </summary>
public vec5 xzxxz => new vec5(x, z, x, x, z);
/// <summary>
/// Returns vec4.rbrrb swizzling (equivalent to vec4.xzxxz).
/// </summary>
public vec5 rbrrb => new vec5(x, z, x, x, z);
/// <summary>
/// Returns vec4.xzxxw swizzling.
/// </summary>
public vec5 xzxxw => new vec5(x, z, x, x, w);
/// <summary>
/// Returns vec4.rbrra swizzling (equivalent to vec4.xzxxw).
/// </summary>
public vec5 rbrra => new vec5(x, z, x, x, w);
/// <summary>
/// Returns vec4.xzxy swizzling.
/// </summary>
public vec4 xzxy => new vec4(x, z, x, y);
/// <summary>
/// Returns vec4.rbrg swizzling (equivalent to vec4.xzxy).
/// </summary>
public vec4 rbrg => new vec4(x, z, x, y);
/// <summary>
/// Returns vec4.xzxyx swizzling.
/// </summary>
public vec5 xzxyx => new vec5(x, z, x, y, x);
/// <summary>
/// Returns vec4.rbrgr swizzling (equivalent to vec4.xzxyx).
/// </summary>
public vec5 rbrgr => new vec5(x, z, x, y, x);
/// <summary>
/// Returns vec4.xzxyy swizzling.
/// </summary>
public vec5 xzxyy => new vec5(x, z, x, y, y);
/// <summary>
/// Returns vec4.rbrgg swizzling (equivalent to vec4.xzxyy).
/// </summary>
public vec5 rbrgg => new vec5(x, z, x, y, y);
/// <summary>
/// Returns vec4.xzxyz swizzling.
/// </summary>
public vec5 xzxyz => new vec5(x, z, x, y, z);
/// <summary>
/// Returns vec4.rbrgb swizzling (equivalent to vec4.xzxyz).
/// </summary>
public vec5 rbrgb => new vec5(x, z, x, y, z);
/// <summary>
/// Returns vec4.xzxyw swizzling.
/// </summary>
public vec5 xzxyw => new vec5(x, z, x, y, w);
/// <summary>
/// Returns vec4.rbrga swizzling (equivalent to vec4.xzxyw).
/// </summary>
public vec5 rbrga => new vec5(x, z, x, y, w);
/// <summary>
/// Returns vec4.xzxz swizzling.
/// </summary>
public vec4 xzxz => new vec4(x, z, x, z);
/// <summary>
/// Returns vec4.rbrb swizzling (equivalent to vec4.xzxz).
/// </summary>
public vec4 rbrb => new vec4(x, z, x, z);
/// <summary>
/// Returns vec4.xzxzx swizzling.
/// </summary>
public vec5 xzxzx => new vec5(x, z, x, z, x);
/// <summary>
/// Returns vec4.rbrbr swizzling (equivalent to vec4.xzxzx).
/// </summary>
public vec5 rbrbr => new vec5(x, z, x, z, x);
/// <summary>
/// Returns vec4.xzxzy swizzling.
/// </summary>
public vec5 xzxzy => new vec5(x, z, x, z, y);
/// <summary>
/// Returns vec4.rbrbg swizzling (equivalent to vec4.xzxzy).
/// </summary>
public vec5 rbrbg => new vec5(x, z, x, z, y);
/// <summary>
/// Returns vec4.xzxzz swizzling.
/// </summary>
public vec5 xzxzz => new vec5(x, z, x, z, z);
/// <summary>
/// Returns vec4.rbrbb swizzling (equivalent to vec4.xzxzz).
/// </summary>
public vec5 rbrbb => new vec5(x, z, x, z, z);
/// <summary>
/// Returns vec4.xzxzw swizzling.
/// </summary>
public vec5 xzxzw => new vec5(x, z, x, z, w);
/// <summary>
/// Returns vec4.rbrba swizzling (equivalent to vec4.xzxzw).
/// </summary>
public vec5 rbrba => new vec5(x, z, x, z, w);
/// <summary>
/// Returns vec4.xzxw swizzling.
/// </summary>
public vec4 xzxw => new vec4(x, z, x, w);
/// <summary>
/// Returns vec4.rbra swizzling (equivalent to vec4.xzxw).
/// </summary>
public vec4 rbra => new vec4(x, z, x, w);
/// <summary>
/// Returns vec4.xzxwx swizzling.
/// </summary>
public vec5 xzxwx => new vec5(x, z, x, w, x);
/// <summary>
/// Returns vec4.rbrar swizzling (equivalent to vec4.xzxwx).
/// </summary>
public vec5 rbrar => new vec5(x, z, x, w, x);
/// <summary>
/// Returns vec4.xzxwy swizzling.
/// </summary>
public vec5 xzxwy => new vec5(x, z, x, w, y);
/// <summary>
/// Returns vec4.rbrag swizzling (equivalent to vec4.xzxwy).
/// </summary>
public vec5 rbrag => new vec5(x, z, x, w, y);
/// <summary>
/// Returns vec4.xzxwz swizzling.
/// </summary>
public vec5 xzxwz => new vec5(x, z, x, w, z);
/// <summary>
/// Returns vec4.rbrab swizzling (equivalent to vec4.xzxwz).
/// </summary>
public vec5 rbrab => new vec5(x, z, x, w, z);
/// <summary>
/// Returns vec4.xzxww swizzling.
/// </summary>
public vec5 xzxww => new vec5(x, z, x, w, w);
/// <summary>
/// Returns vec4.rbraa swizzling (equivalent to vec4.xzxww).
/// </summary>
public vec5 rbraa => new vec5(x, z, x, w, w);
/// <summary>
/// Returns vec4.xzy swizzling.
/// </summary>
public vec3 xzy => new vec3(x, z, y);
/// <summary>
/// Returns vec4.rbg swizzling (equivalent to vec4.xzy).
/// </summary>
public vec3 rbg => new vec3(x, z, y);
/// <summary>
/// Returns vec4.xzyx swizzling.
/// </summary>
public vec4 xzyx => new vec4(x, z, y, x);
/// <summary>
/// Returns vec4.rbgr swizzling (equivalent to vec4.xzyx).
/// </summary>
public vec4 rbgr => new vec4(x, z, y, x);
/// <summary>
/// Returns vec4.xzyxx swizzling.
/// </summary>
public vec5 xzyxx => new vec5(x, z, y, x, x);
/// <summary>
/// Returns vec4.rbgrr swizzling (equivalent to vec4.xzyxx).
/// </summary>
public vec5 rbgrr => new vec5(x, z, y, x, x);
/// <summary>
/// Returns vec4.xzyxy swizzling.
/// </summary>
public vec5 xzyxy => new vec5(x, z, y, x, y);
/// <summary>
/// Returns vec4.rbgrg swizzling (equivalent to vec4.xzyxy).
/// </summary>
public vec5 rbgrg => new vec5(x, z, y, x, y);
/// <summary>
/// Returns vec4.xzyxz swizzling.
/// </summary>
public vec5 xzyxz => new vec5(x, z, y, x, z);
/// <summary>
/// Returns vec4.rbgrb swizzling (equivalent to vec4.xzyxz).
/// </summary>
public vec5 rbgrb => new vec5(x, z, y, x, z);
/// <summary>
/// Returns vec4.xzyxw swizzling.
/// </summary>
public vec5 xzyxw => new vec5(x, z, y, x, w);
/// <summary>
/// Returns vec4.rbgra swizzling (equivalent to vec4.xzyxw).
/// </summary>
public vec5 rbgra => new vec5(x, z, y, x, w);
/// <summary>
/// Returns vec4.xzyy swizzling.
/// </summary>
public vec4 xzyy => new vec4(x, z, y, y);
/// <summary>
/// Returns vec4.rbgg swizzling (equivalent to vec4.xzyy).
/// </summary>
public vec4 rbgg => new vec4(x, z, y, y);
/// <summary>
/// Returns vec4.xzyyx swizzling.
/// </summary>
public vec5 xzyyx => new vec5(x, z, y, y, x);
/// <summary>
/// Returns vec4.rbggr swizzling (equivalent to vec4.xzyyx).
/// </summary>
public vec5 rbggr => new vec5(x, z, y, y, x);
/// <summary>
/// Returns vec4.xzyyy swizzling.
/// </summary>
public vec5 xzyyy => new vec5(x, z, y, y, y);
/// <summary>
/// Returns vec4.rbggg swizzling (equivalent to vec4.xzyyy).
/// </summary>
public vec5 rbggg => new vec5(x, z, y, y, y);
/// <summary>
/// Returns vec4.xzyyz swizzling.
/// </summary>
public vec5 xzyyz => new vec5(x, z, y, y, z);
/// <summary>
/// Returns vec4.rbggb swizzling (equivalent to vec4.xzyyz).
/// </summary>
public vec5 rbggb => new vec5(x, z, y, y, z);
/// <summary>
/// Returns vec4.xzyyw swizzling.
/// </summary>
public vec5 xzyyw => new vec5(x, z, y, y, w);
/// <summary>
/// Returns vec4.rbgga swizzling (equivalent to vec4.xzyyw).
/// </summary>
public vec5 rbgga => new vec5(x, z, y, y, w);
/// <summary>
/// Returns vec4.xzyz swizzling.
/// </summary>
public vec4 xzyz => new vec4(x, z, y, z);
/// <summary>
/// Returns vec4.rbgb swizzling (equivalent to vec4.xzyz).
/// </summary>
public vec4 rbgb => new vec4(x, z, y, z);
/// <summary>
/// Returns vec4.xzyzx swizzling.
/// </summary>
public vec5 xzyzx => new vec5(x, z, y, z, x);
/// <summary>
/// Returns vec4.rbgbr swizzling (equivalent to vec4.xzyzx).
/// </summary>
public vec5 rbgbr => new vec5(x, z, y, z, x);
/// <summary>
/// Returns vec4.xzyzy swizzling.
/// </summary>
public vec5 xzyzy => new vec5(x, z, y, z, y);
/// <summary>
/// Returns vec4.rbgbg swizzling (equivalent to vec4.xzyzy).
/// </summary>
public vec5 rbgbg => new vec5(x, z, y, z, y);
/// <summary>
/// Returns vec4.xzyzz swizzling.
/// </summary>
public vec5 xzyzz => new vec5(x, z, y, z, z);
/// <summary>
/// Returns vec4.rbgbb swizzling (equivalent to vec4.xzyzz).
/// </summary>
public vec5 rbgbb => new vec5(x, z, y, z, z);
/// <summary>
/// Returns vec4.xzyzw swizzling.
/// </summary>
public vec5 xzyzw => new vec5(x, z, y, z, w);
/// <summary>
/// Returns vec4.rbgba swizzling (equivalent to vec4.xzyzw).
/// </summary>
public vec5 rbgba => new vec5(x, z, y, z, w);
/// <summary>
/// Returns vec4.xzyw swizzling.
/// </summary>
public vec4 xzyw => new vec4(x, z, y, w);
/// <summary>
/// Returns vec4.rbga swizzling (equivalent to vec4.xzyw).
/// </summary>
public vec4 rbga => new vec4(x, z, y, w);
/// <summary>
/// Returns vec4.xzywx swizzling.
/// </summary>
public vec5 xzywx => new vec5(x, z, y, w, x);
/// <summary>
/// Returns vec4.rbgar swizzling (equivalent to vec4.xzywx).
/// </summary>
public vec5 rbgar => new vec5(x, z, y, w, x);
/// <summary>
/// Returns vec4.xzywy swizzling.
/// </summary>
public vec5 xzywy => new vec5(x, z, y, w, y);
/// <summary>
/// Returns vec4.rbgag swizzling (equivalent to vec4.xzywy).
/// </summary>
public vec5 rbgag => new vec5(x, z, y, w, y);
/// <summary>
/// Returns vec4.xzywz swizzling.
/// </summary>
public vec5 xzywz => new vec5(x, z, y, w, z);
/// <summary>
/// Returns vec4.rbgab swizzling (equivalent to vec4.xzywz).
/// </summary>
public vec5 rbgab => new vec5(x, z, y, w, z);
/// <summary>
/// Returns vec4.xzyww swizzling.
/// </summary>
public vec5 xzyww => new vec5(x, z, y, w, w);
/// <summary>
/// Returns vec4.rbgaa swizzling (equivalent to vec4.xzyww).
/// </summary>
public vec5 rbgaa => new vec5(x, z, y, w, w);
/// <summary>
/// Returns vec4.xzz swizzling.
/// </summary>
public vec3 xzz => new vec3(x, z, z);
/// <summary>
/// Returns vec4.rbb swizzling (equivalent to vec4.xzz).
/// </summary>
public vec3 rbb => new vec3(x, z, z);
/// <summary>
/// Returns vec4.xzzx swizzling.
/// </summary>
public vec4 xzzx => new vec4(x, z, z, x);
/// <summary>
/// Returns vec4.rbbr swizzling (equivalent to vec4.xzzx).
/// </summary>
public vec4 rbbr => new vec4(x, z, z, x);
/// <summary>
/// Returns vec4.xzzxx swizzling.
/// </summary>
public vec5 xzzxx => new vec5(x, z, z, x, x);
/// <summary>
/// Returns vec4.rbbrr swizzling (equivalent to vec4.xzzxx).
/// </summary>
public vec5 rbbrr => new vec5(x, z, z, x, x);
/// <summary>
/// Returns vec4.xzzxy swizzling.
/// </summary>
public vec5 xzzxy => new vec5(x, z, z, x, y);
/// <summary>
/// Returns vec4.rbbrg swizzling (equivalent to vec4.xzzxy).
/// </summary>
public vec5 rbbrg => new vec5(x, z, z, x, y);
/// <summary>
/// Returns vec4.xzzxz swizzling.
/// </summary>
public vec5 xzzxz => new vec5(x, z, z, x, z);
/// <summary>
/// Returns vec4.rbbrb swizzling (equivalent to vec4.xzzxz).
/// </summary>
public vec5 rbbrb => new vec5(x, z, z, x, z);
/// <summary>
/// Returns vec4.xzzxw swizzling.
/// </summary>
public vec5 xzzxw => new vec5(x, z, z, x, w);
/// <summary>
/// Returns vec4.rbbra swizzling (equivalent to vec4.xzzxw).
/// </summary>
public vec5 rbbra => new vec5(x, z, z, x, w);
/// <summary>
/// Returns vec4.xzzy swizzling.
/// </summary>
public vec4 xzzy => new vec4(x, z, z, y);
/// <summary>
/// Returns vec4.rbbg swizzling (equivalent to vec4.xzzy).
/// </summary>
public vec4 rbbg => new vec4(x, z, z, y);
/// <summary>
/// Returns vec4.xzzyx swizzling.
/// </summary>
public vec5 xzzyx => new vec5(x, z, z, y, x);
/// <summary>
/// Returns vec4.rbbgr swizzling (equivalent to vec4.xzzyx).
/// </summary>
public vec5 rbbgr => new vec5(x, z, z, y, x);
/// <summary>
/// Returns vec4.xzzyy swizzling.
/// </summary>
public vec5 xzzyy => new vec5(x, z, z, y, y);
/// <summary>
/// Returns vec4.rbbgg swizzling (equivalent to vec4.xzzyy).
/// </summary>
public vec5 rbbgg => new vec5(x, z, z, y, y);
/// <summary>
/// Returns vec4.xzzyz swizzling.
/// </summary>
public vec5 xzzyz => new vec5(x, z, z, y, z);
/// <summary>
/// Returns vec4.rbbgb swizzling (equivalent to vec4.xzzyz).
/// </summary>
public vec5 rbbgb => new vec5(x, z, z, y, z);
/// <summary>
/// Returns vec4.xzzyw swizzling.
/// </summary>
public vec5 xzzyw => new vec5(x, z, z, y, w);
/// <summary>
/// Returns vec4.rbbga swizzling (equivalent to vec4.xzzyw).
/// </summary>
public vec5 rbbga => new vec5(x, z, z, y, w);
/// <summary>
/// Returns vec4.xzzz swizzling.
/// </summary>
public vec4 xzzz => new vec4(x, z, z, z);
/// <summary>
/// Returns vec4.rbbb swizzling (equivalent to vec4.xzzz).
/// </summary>
public vec4 rbbb => new vec4(x, z, z, z);
/// <summary>
/// Returns vec4.xzzzx swizzling.
/// </summary>
public vec5 xzzzx => new vec5(x, z, z, z, x);
/// <summary>
/// Returns vec4.rbbbr swizzling (equivalent to vec4.xzzzx).
/// </summary>
public vec5 rbbbr => new vec5(x, z, z, z, x);
/// <summary>
/// Returns vec4.xzzzy swizzling.
/// </summary>
public vec5 xzzzy => new vec5(x, z, z, z, y);
/// <summary>
/// Returns vec4.rbbbg swizzling (equivalent to vec4.xzzzy).
/// </summary>
public vec5 rbbbg => new vec5(x, z, z, z, y);
/// <summary>
/// Returns vec4.xzzzz swizzling.
/// </summary>
public vec5 xzzzz => new vec5(x, z, z, z, z);
/// <summary>
/// Returns vec4.rbbbb swizzling (equivalent to vec4.xzzzz).
/// </summary>
public vec5 rbbbb => new vec5(x, z, z, z, z);
/// <summary>
/// Returns vec4.xzzzw swizzling.
/// </summary>
public vec5 xzzzw => new vec5(x, z, z, z, w);
/// <summary>
/// Returns vec4.rbbba swizzling (equivalent to vec4.xzzzw).
/// </summary>
public vec5 rbbba => new vec5(x, z, z, z, w);
/// <summary>
/// Returns vec4.xzzw swizzling.
/// </summary>
public vec4 xzzw => new vec4(x, z, z, w);
/// <summary>
/// Returns vec4.rbba swizzling (equivalent to vec4.xzzw).
/// </summary>
public vec4 rbba => new vec4(x, z, z, w);
/// <summary>
/// Returns vec4.xzzwx swizzling.
/// </summary>
public vec5 xzzwx => new vec5(x, z, z, w, x);
/// <summary>
/// Returns vec4.rbbar swizzling (equivalent to vec4.xzzwx).
/// </summary>
public vec5 rbbar => new vec5(x, z, z, w, x);
/// <summary>
/// Returns vec4.xzzwy swizzling.
/// </summary>
public vec5 xzzwy => new vec5(x, z, z, w, y);
/// <summary>
/// Returns vec4.rbbag swizzling (equivalent to vec4.xzzwy).
/// </summary>
public vec5 rbbag => new vec5(x, z, z, w, y);
/// <summary>
/// Returns vec4.xzzwz swizzling.
/// </summary>
public vec5 xzzwz => new vec5(x, z, z, w, z);
/// <summary>
/// Returns vec4.rbbab swizzling (equivalent to vec4.xzzwz).
/// </summary>
public vec5 rbbab => new vec5(x, z, z, w, z);
/// <summary>
/// Returns vec4.xzzww swizzling.
/// </summary>
public vec5 xzzww => new vec5(x, z, z, w, w);
/// <summary>
/// Returns vec4.rbbaa swizzling (equivalent to vec4.xzzww).
/// </summary>
public vec5 rbbaa => new vec5(x, z, z, w, w);
/// <summary>
/// Returns vec4.xzw swizzling.
/// </summary>
public vec3 xzw => new vec3(x, z, w);
/// <summary>
/// Returns vec4.rba swizzling (equivalent to vec4.xzw).
/// </summary>
public vec3 rba => new vec3(x, z, w);
/// <summary>
/// Returns vec4.xzwx swizzling.
/// </summary>
public vec4 xzwx => new vec4(x, z, w, x);
/// <summary>
/// Returns vec4.rbar swizzling (equivalent to vec4.xzwx).
/// </summary>
public vec4 rbar => new vec4(x, z, w, x);
/// <summary>
/// Returns vec4.xzwxx swizzling.
/// </summary>
public vec5 xzwxx => new vec5(x, z, w, x, x);
/// <summary>
/// Returns vec4.rbarr swizzling (equivalent to vec4.xzwxx).
/// </summary>
public vec5 rbarr => new vec5(x, z, w, x, x);
/// <summary>
/// Returns vec4.xzwxy swizzling.
/// </summary>
public vec5 xzwxy => new vec5(x, z, w, x, y);
/// <summary>
/// Returns vec4.rbarg swizzling (equivalent to vec4.xzwxy).
/// </summary>
public vec5 rbarg => new vec5(x, z, w, x, y);
/// <summary>
/// Returns vec4.xzwxz swizzling.
/// </summary>
public vec5 xzwxz => new vec5(x, z, w, x, z);
/// <summary>
/// Returns vec4.rbarb swizzling (equivalent to vec4.xzwxz).
/// </summary>
public vec5 rbarb => new vec5(x, z, w, x, z);
/// <summary>
/// Returns vec4.xzwxw swizzling.
/// </summary>
public vec5 xzwxw => new vec5(x, z, w, x, w);
/// <summary>
/// Returns vec4.rbara swizzling (equivalent to vec4.xzwxw).
/// </summary>
public vec5 rbara => new vec5(x, z, w, x, w);
/// <summary>
/// Returns vec4.xzwy swizzling.
/// </summary>
public vec4 xzwy => new vec4(x, z, w, y);
/// <summary>
/// Returns vec4.rbag swizzling (equivalent to vec4.xzwy).
/// </summary>
public vec4 rbag => new vec4(x, z, w, y);
/// <summary>
/// Returns vec4.xzwyx swizzling.
/// </summary>
public vec5 xzwyx => new vec5(x, z, w, y, x);
/// <summary>
/// Returns vec4.rbagr swizzling (equivalent to vec4.xzwyx).
/// </summary>
public vec5 rbagr => new vec5(x, z, w, y, x);
/// <summary>
/// Returns vec4.xzwyy swizzling.
/// </summary>
public vec5 xzwyy => new vec5(x, z, w, y, y);
/// <summary>
/// Returns vec4.rbagg swizzling (equivalent to vec4.xzwyy).
/// </summary>
public vec5 rbagg => new vec5(x, z, w, y, y);
/// <summary>
/// Returns vec4.xzwyz swizzling.
/// </summary>
public vec5 xzwyz => new vec5(x, z, w, y, z);
/// <summary>
/// Returns vec4.rbagb swizzling (equivalent to vec4.xzwyz).
/// </summary>
public vec5 rbagb => new vec5(x, z, w, y, z);
/// <summary>
/// Returns vec4.xzwyw swizzling.
/// </summary>
public vec5 xzwyw => new vec5(x, z, w, y, w);
/// <summary>
/// Returns vec4.rbaga swizzling (equivalent to vec4.xzwyw).
/// </summary>
public vec5 rbaga => new vec5(x, z, w, y, w);
/// <summary>
/// Returns vec4.xzwz swizzling.
/// </summary>
public vec4 xzwz => new vec4(x, z, w, z);
/// <summary>
/// Returns vec4.rbab swizzling (equivalent to vec4.xzwz).
/// </summary>
public vec4 rbab => new vec4(x, z, w, z);
/// <summary>
/// Returns vec4.xzwzx swizzling.
/// </summary>
public vec5 xzwzx => new vec5(x, z, w, z, x);
/// <summary>
/// Returns vec4.rbabr swizzling (equivalent to vec4.xzwzx).
/// </summary>
public vec5 rbabr => new vec5(x, z, w, z, x);
/// <summary>
/// Returns vec4.xzwzy swizzling.
/// </summary>
public vec5 xzwzy => new vec5(x, z, w, z, y);
/// <summary>
/// Returns vec4.rbabg swizzling (equivalent to vec4.xzwzy).
/// </summary>
public vec5 rbabg => new vec5(x, z, w, z, y);
/// <summary>
/// Returns vec4.xzwzz swizzling.
/// </summary>
public vec5 xzwzz => new vec5(x, z, w, z, z);
/// <summary>
/// Returns vec4.rbabb swizzling (equivalent to vec4.xzwzz).
/// </summary>
public vec5 rbabb => new vec5(x, z, w, z, z);
/// <summary>
/// Returns vec4.xzwzw swizzling.
/// </summary>
public vec5 xzwzw => new vec5(x, z, w, z, w);
/// <summary>
/// Returns vec4.rbaba swizzling (equivalent to vec4.xzwzw).
/// </summary>
public vec5 rbaba => new vec5(x, z, w, z, w);
/// <summary>
/// Returns vec4.xzww swizzling.
/// </summary>
public vec4 xzww => new vec4(x, z, w, w);
/// <summary>
/// Returns vec4.rbaa swizzling (equivalent to vec4.xzww).
/// </summary>
public vec4 rbaa => new vec4(x, z, w, w);
/// <summary>
/// Returns vec4.xzwwx swizzling.
/// </summary>
public vec5 xzwwx => new vec5(x, z, w, w, x);
/// <summary>
/// Returns vec4.rbaar swizzling (equivalent to vec4.xzwwx).
/// </summary>
public vec5 rbaar => new vec5(x, z, w, w, x);
/// <summary>
/// Returns vec4.xzwwy swizzling.
/// </summary>
public vec5 xzwwy => new vec5(x, z, w, w, y);
/// <summary>
/// Returns vec4.rbaag swizzling (equivalent to vec4.xzwwy).
/// </summary>
public vec5 rbaag => new vec5(x, z, w, w, y);
/// <summary>
/// Returns vec4.xzwwz swizzling.
/// </summary>
public vec5 xzwwz => new vec5(x, z, w, w, z);
/// <summary>
/// Returns vec4.rbaab swizzling (equivalent to vec4.xzwwz).
/// </summary>
public vec5 rbaab => new vec5(x, z, w, w, z);
/// <summary>
/// Returns vec4.xzwww swizzling.
/// </summary>
public vec5 xzwww => new vec5(x, z, w, w, w);
/// <summary>
/// Returns vec4.rbaaa swizzling (equivalent to vec4.xzwww).
/// </summary>
public vec5 rbaaa => new vec5(x, z, w, w, w);
/// <summary>
/// Returns vec4.xw swizzling.
/// </summary>
public vec2 xw => new vec2(x, w);
/// <summary>
/// Returns vec4.ra swizzling (equivalent to vec4.xw).
/// </summary>
public vec2 ra => new vec2(x, w);
/// <summary>
/// Returns vec4.xwx swizzling.
/// </summary>
public vec3 xwx => new vec3(x, w, x);
/// <summary>
/// Returns vec4.rar swizzling (equivalent to vec4.xwx).
/// </summary>
public vec3 rar => new vec3(x, w, x);
/// <summary>
/// Returns vec4.xwxx swizzling.
/// </summary>
public vec4 xwxx => new vec4(x, w, x, x);
/// <summary>
/// Returns vec4.rarr swizzling (equivalent to vec4.xwxx).
/// </summary>
public vec4 rarr => new vec4(x, w, x, x);
/// <summary>
/// Returns vec4.xwxxx swizzling.
/// </summary>
public vec5 xwxxx => new vec5(x, w, x, x, x);
/// <summary>
/// Returns vec4.rarrr swizzling (equivalent to vec4.xwxxx).
/// </summary>
public vec5 rarrr => new vec5(x, w, x, x, x);
/// <summary>
/// Returns vec4.xwxxy swizzling.
/// </summary>
public vec5 xwxxy => new vec5(x, w, x, x, y);
/// <summary>
/// Returns vec4.rarrg swizzling (equivalent to vec4.xwxxy).
/// </summary>
public vec5 rarrg => new vec5(x, w, x, x, y);
/// <summary>
/// Returns vec4.xwxxz swizzling.
/// </summary>
public vec5 xwxxz => new vec5(x, w, x, x, z);
/// <summary>
/// Returns vec4.rarrb swizzling (equivalent to vec4.xwxxz).
/// </summary>
public vec5 rarrb => new vec5(x, w, x, x, z);
/// <summary>
/// Returns vec4.xwxxw swizzling.
/// </summary>
public vec5 xwxxw => new vec5(x, w, x, x, w);
/// <summary>
/// Returns vec4.rarra swizzling (equivalent to vec4.xwxxw).
/// </summary>
public vec5 rarra => new vec5(x, w, x, x, w);
/// <summary>
/// Returns vec4.xwxy swizzling.
/// </summary>
public vec4 xwxy => new vec4(x, w, x, y);
/// <summary>
/// Returns vec4.rarg swizzling (equivalent to vec4.xwxy).
/// </summary>
public vec4 rarg => new vec4(x, w, x, y);
/// <summary>
/// Returns vec4.xwxyx swizzling.
/// </summary>
public vec5 xwxyx => new vec5(x, w, x, y, x);
/// <summary>
/// Returns vec4.rargr swizzling (equivalent to vec4.xwxyx).
/// </summary>
public vec5 rargr => new vec5(x, w, x, y, x);
/// <summary>
/// Returns vec4.xwxyy swizzling.
/// </summary>
public vec5 xwxyy => new vec5(x, w, x, y, y);
/// <summary>
/// Returns vec4.rargg swizzling (equivalent to vec4.xwxyy).
/// </summary>
public vec5 rargg => new vec5(x, w, x, y, y);
/// <summary>
/// Returns vec4.xwxyz swizzling.
/// </summary>
public vec5 xwxyz => new vec5(x, w, x, y, z);
/// <summary>
/// Returns vec4.rargb swizzling (equivalent to vec4.xwxyz).
/// </summary>
public vec5 rargb => new vec5(x, w, x, y, z);
/// <summary>
/// Returns vec4.xwxyw swizzling.
/// </summary>
public vec5 xwxyw => new vec5(x, w, x, y, w);
/// <summary>
/// Returns vec4.rarga swizzling (equivalent to vec4.xwxyw).
/// </summary>
public vec5 rarga => new vec5(x, w, x, y, w);
/// <summary>
/// Returns vec4.xwxz swizzling.
/// </summary>
public vec4 xwxz => new vec4(x, w, x, z);
/// <summary>
/// Returns vec4.rarb swizzling (equivalent to vec4.xwxz).
/// </summary>
public vec4 rarb => new vec4(x, w, x, z);
/// <summary>
/// Returns vec4.xwxzx swizzling.
/// </summary>
public vec5 xwxzx => new vec5(x, w, x, z, x);
/// <summary>
/// Returns vec4.rarbr swizzling (equivalent to vec4.xwxzx).
/// </summary>
public vec5 rarbr => new vec5(x, w, x, z, x);
/// <summary>
/// Returns vec4.xwxzy swizzling.
/// </summary>
public vec5 xwxzy => new vec5(x, w, x, z, y);
/// <summary>
/// Returns vec4.rarbg swizzling (equivalent to vec4.xwxzy).
/// </summary>
public vec5 rarbg => new vec5(x, w, x, z, y);
/// <summary>
/// Returns vec4.xwxzz swizzling.
/// </summary>
public vec5 xwxzz => new vec5(x, w, x, z, z);
/// <summary>
/// Returns vec4.rarbb swizzling (equivalent to vec4.xwxzz).
/// </summary>
public vec5 rarbb => new vec5(x, w, x, z, z);
/// <summary>
/// Returns vec4.xwxzw swizzling.
/// </summary>
public vec5 xwxzw => new vec5(x, w, x, z, w);
/// <summary>
/// Returns vec4.rarba swizzling (equivalent to vec4.xwxzw).
/// </summary>
public vec5 rarba => new vec5(x, w, x, z, w);
/// <summary>
/// Returns vec4.xwxw swizzling.
/// </summary>
public vec4 xwxw => new vec4(x, w, x, w);
/// <summary>
/// Returns vec4.rara swizzling (equivalent to vec4.xwxw).
/// </summary>
public vec4 rara => new vec4(x, w, x, w);
/// <summary>
/// Returns vec4.xwxwx swizzling.
/// </summary>
public vec5 xwxwx => new vec5(x, w, x, w, x);
/// <summary>
/// Returns vec4.rarar swizzling (equivalent to vec4.xwxwx).
/// </summary>
public vec5 rarar => new vec5(x, w, x, w, x);
/// <summary>
/// Returns vec4.xwxwy swizzling.
/// </summary>
public vec5 xwxwy => new vec5(x, w, x, w, y);
/// <summary>
/// Returns vec4.rarag swizzling (equivalent to vec4.xwxwy).
/// </summary>
public vec5 rarag => new vec5(x, w, x, w, y);
/// <summary>
/// Returns vec4.xwxwz swizzling.
/// </summary>
public vec5 xwxwz => new vec5(x, w, x, w, z);
/// <summary>
/// Returns vec4.rarab swizzling (equivalent to vec4.xwxwz).
/// </summary>
public vec5 rarab => new vec5(x, w, x, w, z);
/// <summary>
/// Returns vec4.xwxww swizzling.
/// </summary>
public vec5 xwxww => new vec5(x, w, x, w, w);
/// <summary>
/// Returns vec4.raraa swizzling (equivalent to vec4.xwxww).
/// </summary>
public vec5 raraa => new vec5(x, w, x, w, w);
/// <summary>
/// Returns vec4.xwy swizzling.
/// </summary>
public vec3 xwy => new vec3(x, w, y);
/// <summary>
/// Returns vec4.rag swizzling (equivalent to vec4.xwy).
/// </summary>
public vec3 rag => new vec3(x, w, y);
/// <summary>
/// Returns vec4.xwyx swizzling.
/// </summary>
public vec4 xwyx => new vec4(x, w, y, x);
/// <summary>
/// Returns vec4.ragr swizzling (equivalent to vec4.xwyx).
/// </summary>
public vec4 ragr => new vec4(x, w, y, x);
/// <summary>
/// Returns vec4.xwyxx swizzling.
/// </summary>
public vec5 xwyxx => new vec5(x, w, y, x, x);
/// <summary>
/// Returns vec4.ragrr swizzling (equivalent to vec4.xwyxx).
/// </summary>
public vec5 ragrr => new vec5(x, w, y, x, x);
/// <summary>
/// Returns vec4.xwyxy swizzling.
/// </summary>
public vec5 xwyxy => new vec5(x, w, y, x, y);
/// <summary>
/// Returns vec4.ragrg swizzling (equivalent to vec4.xwyxy).
/// </summary>
public vec5 ragrg => new vec5(x, w, y, x, y);
/// <summary>
/// Returns vec4.xwyxz swizzling.
/// </summary>
public vec5 xwyxz => new vec5(x, w, y, x, z);
/// <summary>
/// Returns vec4.ragrb swizzling (equivalent to vec4.xwyxz).
/// </summary>
public vec5 ragrb => new vec5(x, w, y, x, z);
/// <summary>
/// Returns vec4.xwyxw swizzling.
/// </summary>
public vec5 xwyxw => new vec5(x, w, y, x, w);
/// <summary>
/// Returns vec4.ragra swizzling (equivalent to vec4.xwyxw).
/// </summary>
public vec5 ragra => new vec5(x, w, y, x, w);
/// <summary>
/// Returns vec4.xwyy swizzling.
/// </summary>
public vec4 xwyy => new vec4(x, w, y, y);
/// <summary>
/// Returns vec4.ragg swizzling (equivalent to vec4.xwyy).
/// </summary>
public vec4 ragg => new vec4(x, w, y, y);
/// <summary>
/// Returns vec4.xwyyx swizzling.
/// </summary>
public vec5 xwyyx => new vec5(x, w, y, y, x);
/// <summary>
/// Returns vec4.raggr swizzling (equivalent to vec4.xwyyx).
/// </summary>
public vec5 raggr => new vec5(x, w, y, y, x);
/// <summary>
/// Returns vec4.xwyyy swizzling.
/// </summary>
public vec5 xwyyy => new vec5(x, w, y, y, y);
/// <summary>
/// Returns vec4.raggg swizzling (equivalent to vec4.xwyyy).
/// </summary>
public vec5 raggg => new vec5(x, w, y, y, y);
/// <summary>
/// Returns vec4.xwyyz swizzling.
/// </summary>
public vec5 xwyyz => new vec5(x, w, y, y, z);
/// <summary>
/// Returns vec4.raggb swizzling (equivalent to vec4.xwyyz).
/// </summary>
public vec5 raggb => new vec5(x, w, y, y, z);
/// <summary>
/// Returns vec4.xwyyw swizzling.
/// </summary>
public vec5 xwyyw => new vec5(x, w, y, y, w);
/// <summary>
/// Returns vec4.ragga swizzling (equivalent to vec4.xwyyw).
/// </summary>
public vec5 ragga => new vec5(x, w, y, y, w);
/// <summary>
/// Returns vec4.xwyz swizzling.
/// </summary>
public vec4 xwyz => new vec4(x, w, y, z);
/// <summary>
/// Returns vec4.ragb swizzling (equivalent to vec4.xwyz).
/// </summary>
public vec4 ragb => new vec4(x, w, y, z);
/// <summary>
/// Returns vec4.xwyzx swizzling.
/// </summary>
public vec5 xwyzx => new vec5(x, w, y, z, x);
/// <summary>
/// Returns vec4.ragbr swizzling (equivalent to vec4.xwyzx).
/// </summary>
public vec5 ragbr => new vec5(x, w, y, z, x);
/// <summary>
/// Returns vec4.xwyzy swizzling.
/// </summary>
public vec5 xwyzy => new vec5(x, w, y, z, y);
/// <summary>
/// Returns vec4.ragbg swizzling (equivalent to vec4.xwyzy).
/// </summary>
public vec5 ragbg => new vec5(x, w, y, z, y);
/// <summary>
/// Returns vec4.xwyzz swizzling.
/// </summary>
public vec5 xwyzz => new vec5(x, w, y, z, z);
/// <summary>
/// Returns vec4.ragbb swizzling (equivalent to vec4.xwyzz).
/// </summary>
public vec5 ragbb => new vec5(x, w, y, z, z);
/// <summary>
/// Returns vec4.xwyzw swizzling.
/// </summary>
public vec5 xwyzw => new vec5(x, w, y, z, w);
/// <summary>
/// Returns vec4.ragba swizzling (equivalent to vec4.xwyzw).
/// </summary>
public vec5 ragba => new vec5(x, w, y, z, w);
/// <summary>
/// Returns vec4.xwyw swizzling.
/// </summary>
public vec4 xwyw => new vec4(x, w, y, w);
/// <summary>
/// Returns vec4.raga swizzling (equivalent to vec4.xwyw).
/// </summary>
public vec4 raga => new vec4(x, w, y, w);
/// <summary>
/// Returns vec4.xwywx swizzling.
/// </summary>
public vec5 xwywx => new vec5(x, w, y, w, x);
/// <summary>
/// Returns vec4.ragar swizzling (equivalent to vec4.xwywx).
/// </summary>
public vec5 ragar => new vec5(x, w, y, w, x);
/// <summary>
/// Returns vec4.xwywy swizzling.
/// </summary>
public vec5 xwywy => new vec5(x, w, y, w, y);
/// <summary>
/// Returns vec4.ragag swizzling (equivalent to vec4.xwywy).
/// </summary>
public vec5 ragag => new vec5(x, w, y, w, y);
/// <summary>
/// Returns vec4.xwywz swizzling.
/// </summary>
public vec5 xwywz => new vec5(x, w, y, w, z);
/// <summary>
/// Returns vec4.ragab swizzling (equivalent to vec4.xwywz).
/// </summary>
public vec5 ragab => new vec5(x, w, y, w, z);
/// <summary>
/// Returns vec4.xwyww swizzling.
/// </summary>
public vec5 xwyww => new vec5(x, w, y, w, w);
/// <summary>
/// Returns vec4.ragaa swizzling (equivalent to vec4.xwyww).
/// </summary>
public vec5 ragaa => new vec5(x, w, y, w, w);
/// <summary>
/// Returns vec4.xwz swizzling.
/// </summary>
public vec3 xwz => new vec3(x, w, z);
/// <summary>
/// Returns vec4.rab swizzling (equivalent to vec4.xwz).
/// </summary>
public vec3 rab => new vec3(x, w, z);
/// <summary>
/// Returns vec4.xwzx swizzling.
/// </summary>
public vec4 xwzx => new vec4(x, w, z, x);
/// <summary>
/// Returns vec4.rabr swizzling (equivalent to vec4.xwzx).
/// </summary>
public vec4 rabr => new vec4(x, w, z, x);
/// <summary>
/// Returns vec4.xwzxx swizzling.
/// </summary>
public vec5 xwzxx => new vec5(x, w, z, x, x);
/// <summary>
/// Returns vec4.rabrr swizzling (equivalent to vec4.xwzxx).
/// </summary>
public vec5 rabrr => new vec5(x, w, z, x, x);
/// <summary>
/// Returns vec4.xwzxy swizzling.
/// </summary>
public vec5 xwzxy => new vec5(x, w, z, x, y);
/// <summary>
/// Returns vec4.rabrg swizzling (equivalent to vec4.xwzxy).
/// </summary>
public vec5 rabrg => new vec5(x, w, z, x, y);
/// <summary>
/// Returns vec4.xwzxz swizzling.
/// </summary>
public vec5 xwzxz => new vec5(x, w, z, x, z);
/// <summary>
/// Returns vec4.rabrb swizzling (equivalent to vec4.xwzxz).
/// </summary>
public vec5 rabrb => new vec5(x, w, z, x, z);
/// <summary>
/// Returns vec4.xwzxw swizzling.
/// </summary>
public vec5 xwzxw => new vec5(x, w, z, x, w);
/// <summary>
/// Returns vec4.rabra swizzling (equivalent to vec4.xwzxw).
/// </summary>
public vec5 rabra => new vec5(x, w, z, x, w);
/// <summary>
/// Returns vec4.xwzy swizzling.
/// </summary>
public vec4 xwzy => new vec4(x, w, z, y);
/// <summary>
/// Returns vec4.rabg swizzling (equivalent to vec4.xwzy).
/// </summary>
public vec4 rabg => new vec4(x, w, z, y);
/// <summary>
/// Returns vec4.xwzyx swizzling.
/// </summary>
public vec5 xwzyx => new vec5(x, w, z, y, x);
/// <summary>
/// Returns vec4.rabgr swizzling (equivalent to vec4.xwzyx).
/// </summary>
public vec5 rabgr => new vec5(x, w, z, y, x);
/// <summary>
/// Returns vec4.xwzyy swizzling.
/// </summary>
public vec5 xwzyy => new vec5(x, w, z, y, y);
/// <summary>
/// Returns vec4.rabgg swizzling (equivalent to vec4.xwzyy).
/// </summary>
public vec5 rabgg => new vec5(x, w, z, y, y);
/// <summary>
/// Returns vec4.xwzyz swizzling.
/// </summary>
public vec5 xwzyz => new vec5(x, w, z, y, z);
/// <summary>
/// Returns vec4.rabgb swizzling (equivalent to vec4.xwzyz).
/// </summary>
public vec5 rabgb => new vec5(x, w, z, y, z);
/// <summary>
/// Returns vec4.xwzyw swizzling.
/// </summary>
public vec5 xwzyw => new vec5(x, w, z, y, w);
/// <summary>
/// Returns vec4.rabga swizzling (equivalent to vec4.xwzyw).
/// </summary>
public vec5 rabga => new vec5(x, w, z, y, w);
/// <summary>
/// Returns vec4.xwzz swizzling.
/// </summary>
public vec4 xwzz => new vec4(x, w, z, z);
/// <summary>
/// Returns vec4.rabb swizzling (equivalent to vec4.xwzz).
/// </summary>
public vec4 rabb => new vec4(x, w, z, z);
/// <summary>
/// Returns vec4.xwzzx swizzling.
/// </summary>
public vec5 xwzzx => new vec5(x, w, z, z, x);
/// <summary>
/// Returns vec4.rabbr swizzling (equivalent to vec4.xwzzx).
/// </summary>
public vec5 rabbr => new vec5(x, w, z, z, x);
/// <summary>
/// Returns vec4.xwzzy swizzling.
/// </summary>
public vec5 xwzzy => new vec5(x, w, z, z, y);
/// <summary>
/// Returns vec4.rabbg swizzling (equivalent to vec4.xwzzy).
/// </summary>
public vec5 rabbg => new vec5(x, w, z, z, y);
/// <summary>
/// Returns vec4.xwzzz swizzling.
/// </summary>
public vec5 xwzzz => new vec5(x, w, z, z, z);
/// <summary>
/// Returns vec4.rabbb swizzling (equivalent to vec4.xwzzz).
/// </summary>
public vec5 rabbb => new vec5(x, w, z, z, z);
/// <summary>
/// Returns vec4.xwzzw swizzling.
/// </summary>
public vec5 xwzzw => new vec5(x, w, z, z, w);
/// <summary>
/// Returns vec4.rabba swizzling (equivalent to vec4.xwzzw).
/// </summary>
public vec5 rabba => new vec5(x, w, z, z, w);
/// <summary>
/// Returns vec4.xwzw swizzling.
/// </summary>
public vec4 xwzw => new vec4(x, w, z, w);
/// <summary>
/// Returns vec4.raba swizzling (equivalent to vec4.xwzw).
/// </summary>
public vec4 raba => new vec4(x, w, z, w);
/// <summary>
/// Returns vec4.xwzwx swizzling.
/// </summary>
public vec5 xwzwx => new vec5(x, w, z, w, x);
/// <summary>
/// Returns vec4.rabar swizzling (equivalent to vec4.xwzwx).
/// </summary>
public vec5 rabar => new vec5(x, w, z, w, x);
/// <summary>
/// Returns vec4.xwzwy swizzling.
/// </summary>
public vec5 xwzwy => new vec5(x, w, z, w, y);
/// <summary>
/// Returns vec4.rabag swizzling (equivalent to vec4.xwzwy).
/// </summary>
public vec5 rabag => new vec5(x, w, z, w, y);
/// <summary>
/// Returns vec4.xwzwz swizzling.
/// </summary>
public vec5 xwzwz => new vec5(x, w, z, w, z);
/// <summary>
/// Returns vec4.rabab swizzling (equivalent to vec4.xwzwz).
/// </summary>
public vec5 rabab => new vec5(x, w, z, w, z);
/// <summary>
/// Returns vec4.xwzww swizzling.
/// </summary>
public vec5 xwzww => new vec5(x, w, z, w, w);
/// <summary>
/// Returns vec4.rabaa swizzling (equivalent to vec4.xwzww).
/// </summary>
public vec5 rabaa => new vec5(x, w, z, w, w);
/// <summary>
/// Returns vec4.xww swizzling.
/// </summary>
public vec3 xww => new vec3(x, w, w);
/// <summary>
/// Returns vec4.raa swizzling (equivalent to vec4.xww).
/// </summary>
public vec3 raa => new vec3(x, w, w);
/// <summary>
/// Returns vec4.xwwx swizzling.
/// </summary>
public vec4 xwwx => new vec4(x, w, w, x);
/// <summary>
/// Returns vec4.raar swizzling (equivalent to vec4.xwwx).
/// </summary>
public vec4 raar => new vec4(x, w, w, x);
/// <summary>
/// Returns vec4.xwwxx swizzling.
/// </summary>
public vec5 xwwxx => new vec5(x, w, w, x, x);
/// <summary>
/// Returns vec4.raarr swizzling (equivalent to vec4.xwwxx).
/// </summary>
public vec5 raarr => new vec5(x, w, w, x, x);
/// <summary>
/// Returns vec4.xwwxy swizzling.
/// </summary>
public vec5 xwwxy => new vec5(x, w, w, x, y);
/// <summary>
/// Returns vec4.raarg swizzling (equivalent to vec4.xwwxy).
/// </summary>
public vec5 raarg => new vec5(x, w, w, x, y);
/// <summary>
/// Returns vec4.xwwxz swizzling.
/// </summary>
public vec5 xwwxz => new vec5(x, w, w, x, z);
/// <summary>
/// Returns vec4.raarb swizzling (equivalent to vec4.xwwxz).
/// </summary>
public vec5 raarb => new vec5(x, w, w, x, z);
/// <summary>
/// Returns vec4.xwwxw swizzling.
/// </summary>
public vec5 xwwxw => new vec5(x, w, w, x, w);
/// <summary>
/// Returns vec4.raara swizzling (equivalent to vec4.xwwxw).
/// </summary>
public vec5 raara => new vec5(x, w, w, x, w);
/// <summary>
/// Returns vec4.xwwy swizzling.
/// </summary>
public vec4 xwwy => new vec4(x, w, w, y);
/// <summary>
/// Returns vec4.raag swizzling (equivalent to vec4.xwwy).
/// </summary>
public vec4 raag => new vec4(x, w, w, y);
/// <summary>
/// Returns vec4.xwwyx swizzling.
/// </summary>
public vec5 xwwyx => new vec5(x, w, w, y, x);
/// <summary>
/// Returns vec4.raagr swizzling (equivalent to vec4.xwwyx).
/// </summary>
public vec5 raagr => new vec5(x, w, w, y, x);
/// <summary>
/// Returns vec4.xwwyy swizzling.
/// </summary>
public vec5 xwwyy => new vec5(x, w, w, y, y);
/// <summary>
/// Returns vec4.raagg swizzling (equivalent to vec4.xwwyy).
/// </summary>
public vec5 raagg => new vec5(x, w, w, y, y);
/// <summary>
/// Returns vec4.xwwyz swizzling.
/// </summary>
public vec5 xwwyz => new vec5(x, w, w, y, z);
/// <summary>
/// Returns vec4.raagb swizzling (equivalent to vec4.xwwyz).
/// </summary>
public vec5 raagb => new vec5(x, w, w, y, z);
/// <summary>
/// Returns vec4.xwwyw swizzling.
/// </summary>
public vec5 xwwyw => new vec5(x, w, w, y, w);
/// <summary>
/// Returns vec4.raaga swizzling (equivalent to vec4.xwwyw).
/// </summary>
public vec5 raaga => new vec5(x, w, w, y, w);
/// <summary>
/// Returns vec4.xwwz swizzling.
/// </summary>
public vec4 xwwz => new vec4(x, w, w, z);
/// <summary>
/// Returns vec4.raab swizzling (equivalent to vec4.xwwz).
/// </summary>
public vec4 raab => new vec4(x, w, w, z);
/// <summary>
/// Returns vec4.xwwzx swizzling.
/// </summary>
public vec5 xwwzx => new vec5(x, w, w, z, x);
/// <summary>
/// Returns vec4.raabr swizzling (equivalent to vec4.xwwzx).
/// </summary>
public vec5 raabr => new vec5(x, w, w, z, x);
/// <summary>
/// Returns vec4.xwwzy swizzling.
/// </summary>
public vec5 xwwzy => new vec5(x, w, w, z, y);
/// <summary>
/// Returns vec4.raabg swizzling (equivalent to vec4.xwwzy).
/// </summary>
public vec5 raabg => new vec5(x, w, w, z, y);
/// <summary>
/// Returns vec4.xwwzz swizzling.
/// </summary>
public vec5 xwwzz => new vec5(x, w, w, z, z);
/// <summary>
/// Returns vec4.raabb swizzling (equivalent to vec4.xwwzz).
/// </summary>
public vec5 raabb => new vec5(x, w, w, z, z);
/// <summary>
/// Returns vec4.xwwzw swizzling.
/// </summary>
public vec5 xwwzw => new vec5(x, w, w, z, w);
/// <summary>
/// Returns vec4.raaba swizzling (equivalent to vec4.xwwzw).
/// </summary>
public vec5 raaba => new vec5(x, w, w, z, w);
/// <summary>
/// Returns vec4.xwww swizzling.
/// </summary>
public vec4 xwww => new vec4(x, w, w, w);
/// <summary>
/// Returns vec4.raaa swizzling (equivalent to vec4.xwww).
/// </summary>
public vec4 raaa => new vec4(x, w, w, w);
/// <summary>
/// Returns vec4.xwwwx swizzling.
/// </summary>
public vec5 xwwwx => new vec5(x, w, w, w, x);
/// <summary>
/// Returns vec4.raaar swizzling (equivalent to vec4.xwwwx).
/// </summary>
public vec5 raaar => new vec5(x, w, w, w, x);
/// <summary>
/// Returns vec4.xwwwy swizzling.
/// </summary>
public vec5 xwwwy => new vec5(x, w, w, w, y);
/// <summary>
/// Returns vec4.raaag swizzling (equivalent to vec4.xwwwy).
/// </summary>
public vec5 raaag => new vec5(x, w, w, w, y);
/// <summary>
/// Returns vec4.xwwwz swizzling.
/// </summary>
public vec5 xwwwz => new vec5(x, w, w, w, z);
/// <summary>
/// Returns vec4.raaab swizzling (equivalent to vec4.xwwwz).
/// </summary>
public vec5 raaab => new vec5(x, w, w, w, z);
/// <summary>
/// Returns vec4.xwwww swizzling.
/// </summary>
public vec5 xwwww => new vec5(x, w, w, w, w);
/// <summary>
/// Returns vec4.raaaa swizzling (equivalent to vec4.xwwww).
/// </summary>
public vec5 raaaa => new vec5(x, w, w, w, w);
/// <summary>
/// Returns vec4.yx swizzling.
/// </summary>
public vec2 yx => new vec2(y, x);
/// <summary>
/// Returns vec4.gr swizzling (equivalent to vec4.yx).
/// </summary>
public vec2 gr => new vec2(y, x);
/// <summary>
/// Returns vec4.yxx swizzling.
/// </summary>
public vec3 yxx => new vec3(y, x, x);
/// <summary>
/// Returns vec4.grr swizzling (equivalent to vec4.yxx).
/// </summary>
public vec3 grr => new vec3(y, x, x);
/// <summary>
/// Returns vec4.yxxx swizzling.
/// </summary>
public vec4 yxxx => new vec4(y, x, x, x);
/// <summary>
/// Returns vec4.grrr swizzling (equivalent to vec4.yxxx).
/// </summary>
public vec4 grrr => new vec4(y, x, x, x);
/// <summary>
/// Returns vec4.yxxxx swizzling.
/// </summary>
public vec5 yxxxx => new vec5(y, x, x, x, x);
/// <summary>
/// Returns vec4.grrrr swizzling (equivalent to vec4.yxxxx).
/// </summary>
public vec5 grrrr => new vec5(y, x, x, x, x);
/// <summary>
/// Returns vec4.yxxxy swizzling.
/// </summary>
public vec5 yxxxy => new vec5(y, x, x, x, y);
/// <summary>
/// Returns vec4.grrrg swizzling (equivalent to vec4.yxxxy).
/// </summary>
public vec5 grrrg => new vec5(y, x, x, x, y);
/// <summary>
/// Returns vec4.yxxxz swizzling.
/// </summary>
public vec5 yxxxz => new vec5(y, x, x, x, z);
/// <summary>
/// Returns vec4.grrrb swizzling (equivalent to vec4.yxxxz).
/// </summary>
public vec5 grrrb => new vec5(y, x, x, x, z);
/// <summary>
/// Returns vec4.yxxxw swizzling.
/// </summary>
public vec5 yxxxw => new vec5(y, x, x, x, w);
/// <summary>
/// Returns vec4.grrra swizzling (equivalent to vec4.yxxxw).
/// </summary>
public vec5 grrra => new vec5(y, x, x, x, w);
/// <summary>
/// Returns vec4.yxxy swizzling.
/// </summary>
public vec4 yxxy => new vec4(y, x, x, y);
/// <summary>
/// Returns vec4.grrg swizzling (equivalent to vec4.yxxy).
/// </summary>
public vec4 grrg => new vec4(y, x, x, y);
/// <summary>
/// Returns vec4.yxxyx swizzling.
/// </summary>
public vec5 yxxyx => new vec5(y, x, x, y, x);
/// <summary>
/// Returns vec4.grrgr swizzling (equivalent to vec4.yxxyx).
/// </summary>
public vec5 grrgr => new vec5(y, x, x, y, x);
/// <summary>
/// Returns vec4.yxxyy swizzling.
/// </summary>
public vec5 yxxyy => new vec5(y, x, x, y, y);
/// <summary>
/// Returns vec4.grrgg swizzling (equivalent to vec4.yxxyy).
/// </summary>
public vec5 grrgg => new vec5(y, x, x, y, y);
/// <summary>
/// Returns vec4.yxxyz swizzling.
/// </summary>
public vec5 yxxyz => new vec5(y, x, x, y, z);
/// <summary>
/// Returns vec4.grrgb swizzling (equivalent to vec4.yxxyz).
/// </summary>
public vec5 grrgb => new vec5(y, x, x, y, z);
/// <summary>
/// Returns vec4.yxxyw swizzling.
/// </summary>
public vec5 yxxyw => new vec5(y, x, x, y, w);
/// <summary>
/// Returns vec4.grrga swizzling (equivalent to vec4.yxxyw).
/// </summary>
public vec5 grrga => new vec5(y, x, x, y, w);
/// <summary>
/// Returns vec4.yxxz swizzling.
/// </summary>
public vec4 yxxz => new vec4(y, x, x, z);
/// <summary>
/// Returns vec4.grrb swizzling (equivalent to vec4.yxxz).
/// </summary>
public vec4 grrb => new vec4(y, x, x, z);
/// <summary>
/// Returns vec4.yxxzx swizzling.
/// </summary>
public vec5 yxxzx => new vec5(y, x, x, z, x);
/// <summary>
/// Returns vec4.grrbr swizzling (equivalent to vec4.yxxzx).
/// </summary>
public vec5 grrbr => new vec5(y, x, x, z, x);
/// <summary>
/// Returns vec4.yxxzy swizzling.
/// </summary>
public vec5 yxxzy => new vec5(y, x, x, z, y);
/// <summary>
/// Returns vec4.grrbg swizzling (equivalent to vec4.yxxzy).
/// </summary>
public vec5 grrbg => new vec5(y, x, x, z, y);
/// <summary>
/// Returns vec4.yxxzz swizzling.
/// </summary>
public vec5 yxxzz => new vec5(y, x, x, z, z);
/// <summary>
/// Returns vec4.grrbb swizzling (equivalent to vec4.yxxzz).
/// </summary>
public vec5 grrbb => new vec5(y, x, x, z, z);
/// <summary>
/// Returns vec4.yxxzw swizzling.
/// </summary>
public vec5 yxxzw => new vec5(y, x, x, z, w);
/// <summary>
/// Returns vec4.grrba swizzling (equivalent to vec4.yxxzw).
/// </summary>
public vec5 grrba => new vec5(y, x, x, z, w);
/// <summary>
/// Returns vec4.yxxw swizzling.
/// </summary>
public vec4 yxxw => new vec4(y, x, x, w);
/// <summary>
/// Returns vec4.grra swizzling (equivalent to vec4.yxxw).
/// </summary>
public vec4 grra => new vec4(y, x, x, w);
/// <summary>
/// Returns vec4.yxxwx swizzling.
/// </summary>
public vec5 yxxwx => new vec5(y, x, x, w, x);
/// <summary>
/// Returns vec4.grrar swizzling (equivalent to vec4.yxxwx).
/// </summary>
public vec5 grrar => new vec5(y, x, x, w, x);
/// <summary>
/// Returns vec4.yxxwy swizzling.
/// </summary>
public vec5 yxxwy => new vec5(y, x, x, w, y);
/// <summary>
/// Returns vec4.grrag swizzling (equivalent to vec4.yxxwy).
/// </summary>
public vec5 grrag => new vec5(y, x, x, w, y);
/// <summary>
/// Returns vec4.yxxwz swizzling.
/// </summary>
public vec5 yxxwz => new vec5(y, x, x, w, z);
/// <summary>
/// Returns vec4.grrab swizzling (equivalent to vec4.yxxwz).
/// </summary>
public vec5 grrab => new vec5(y, x, x, w, z);
/// <summary>
/// Returns vec4.yxxww swizzling.
/// </summary>
public vec5 yxxww => new vec5(y, x, x, w, w);
/// <summary>
/// Returns vec4.grraa swizzling (equivalent to vec4.yxxww).
/// </summary>
public vec5 grraa => new vec5(y, x, x, w, w);
/// <summary>
/// Returns vec4.yxy swizzling.
/// </summary>
public vec3 yxy => new vec3(y, x, y);
/// <summary>
/// Returns vec4.grg swizzling (equivalent to vec4.yxy).
/// </summary>
public vec3 grg => new vec3(y, x, y);
/// <summary>
/// Returns vec4.yxyx swizzling.
/// </summary>
public vec4 yxyx => new vec4(y, x, y, x);
/// <summary>
/// Returns vec4.grgr swizzling (equivalent to vec4.yxyx).
/// </summary>
public vec4 grgr => new vec4(y, x, y, x);
/// <summary>
/// Returns vec4.yxyxx swizzling.
/// </summary>
public vec5 yxyxx => new vec5(y, x, y, x, x);
/// <summary>
/// Returns vec4.grgrr swizzling (equivalent to vec4.yxyxx).
/// </summary>
public vec5 grgrr => new vec5(y, x, y, x, x);
/// <summary>
/// Returns vec4.yxyxy swizzling.
/// </summary>
public vec5 yxyxy => new vec5(y, x, y, x, y);
/// <summary>
/// Returns vec4.grgrg swizzling (equivalent to vec4.yxyxy).
/// </summary>
public vec5 grgrg => new vec5(y, x, y, x, y);
/// <summary>
/// Returns vec4.yxyxz swizzling.
/// </summary>
public vec5 yxyxz => new vec5(y, x, y, x, z);
/// <summary>
/// Returns vec4.grgrb swizzling (equivalent to vec4.yxyxz).
/// </summary>
public vec5 grgrb => new vec5(y, x, y, x, z);
/// <summary>
/// Returns vec4.yxyxw swizzling.
/// </summary>
public vec5 yxyxw => new vec5(y, x, y, x, w);
/// <summary>
/// Returns vec4.grgra swizzling (equivalent to vec4.yxyxw).
/// </summary>
public vec5 grgra => new vec5(y, x, y, x, w);
/// <summary>
/// Returns vec4.yxyy swizzling.
/// </summary>
public vec4 yxyy => new vec4(y, x, y, y);
/// <summary>
/// Returns vec4.grgg swizzling (equivalent to vec4.yxyy).
/// </summary>
public vec4 grgg => new vec4(y, x, y, y);
/// <summary>
/// Returns vec4.yxyyx swizzling.
/// </summary>
public vec5 yxyyx => new vec5(y, x, y, y, x);
/// <summary>
/// Returns vec4.grggr swizzling (equivalent to vec4.yxyyx).
/// </summary>
public vec5 grggr => new vec5(y, x, y, y, x);
/// <summary>
/// Returns vec4.yxyyy swizzling.
/// </summary>
public vec5 yxyyy => new vec5(y, x, y, y, y);
/// <summary>
/// Returns vec4.grggg swizzling (equivalent to vec4.yxyyy).
/// </summary>
public vec5 grggg => new vec5(y, x, y, y, y);
/// <summary>
/// Returns vec4.yxyyz swizzling.
/// </summary>
public vec5 yxyyz => new vec5(y, x, y, y, z);
/// <summary>
/// Returns vec4.grggb swizzling (equivalent to vec4.yxyyz).
/// </summary>
public vec5 grggb => new vec5(y, x, y, y, z);
/// <summary>
/// Returns vec4.yxyyw swizzling.
/// </summary>
public vec5 yxyyw => new vec5(y, x, y, y, w);
/// <summary>
/// Returns vec4.grgga swizzling (equivalent to vec4.yxyyw).
/// </summary>
public vec5 grgga => new vec5(y, x, y, y, w);
/// <summary>
/// Returns vec4.yxyz swizzling.
/// </summary>
public vec4 yxyz => new vec4(y, x, y, z);
/// <summary>
/// Returns vec4.grgb swizzling (equivalent to vec4.yxyz).
/// </summary>
public vec4 grgb => new vec4(y, x, y, z);
/// <summary>
/// Returns vec4.yxyzx swizzling.
/// </summary>
public vec5 yxyzx => new vec5(y, x, y, z, x);
/// <summary>
/// Returns vec4.grgbr swizzling (equivalent to vec4.yxyzx).
/// </summary>
public vec5 grgbr => new vec5(y, x, y, z, x);
/// <summary>
/// Returns vec4.yxyzy swizzling.
/// </summary>
public vec5 yxyzy => new vec5(y, x, y, z, y);
/// <summary>
/// Returns vec4.grgbg swizzling (equivalent to vec4.yxyzy).
/// </summary>
public vec5 grgbg => new vec5(y, x, y, z, y);
/// <summary>
/// Returns vec4.yxyzz swizzling.
/// </summary>
public vec5 yxyzz => new vec5(y, x, y, z, z);
/// <summary>
/// Returns vec4.grgbb swizzling (equivalent to vec4.yxyzz).
/// </summary>
public vec5 grgbb => new vec5(y, x, y, z, z);
/// <summary>
/// Returns vec4.yxyzw swizzling.
/// </summary>
public vec5 yxyzw => new vec5(y, x, y, z, w);
/// <summary>
/// Returns vec4.grgba swizzling (equivalent to vec4.yxyzw).
/// </summary>
public vec5 grgba => new vec5(y, x, y, z, w);
/// <summary>
/// Returns vec4.yxyw swizzling.
/// </summary>
public vec4 yxyw => new vec4(y, x, y, w);
/// <summary>
/// Returns vec4.grga swizzling (equivalent to vec4.yxyw).
/// </summary>
public vec4 grga => new vec4(y, x, y, w);
/// <summary>
/// Returns vec4.yxywx swizzling.
/// </summary>
public vec5 yxywx => new vec5(y, x, y, w, x);
/// <summary>
/// Returns vec4.grgar swizzling (equivalent to vec4.yxywx).
/// </summary>
public vec5 grgar => new vec5(y, x, y, w, x);
/// <summary>
/// Returns vec4.yxywy swizzling.
/// </summary>
public vec5 yxywy => new vec5(y, x, y, w, y);
/// <summary>
/// Returns vec4.grgag swizzling (equivalent to vec4.yxywy).
/// </summary>
public vec5 grgag => new vec5(y, x, y, w, y);
/// <summary>
/// Returns vec4.yxywz swizzling.
/// </summary>
public vec5 yxywz => new vec5(y, x, y, w, z);
/// <summary>
/// Returns vec4.grgab swizzling (equivalent to vec4.yxywz).
/// </summary>
public vec5 grgab => new vec5(y, x, y, w, z);
/// <summary>
/// Returns vec4.yxyww swizzling.
/// </summary>
public vec5 yxyww => new vec5(y, x, y, w, w);
/// <summary>
/// Returns vec4.grgaa swizzling (equivalent to vec4.yxyww).
/// </summary>
public vec5 grgaa => new vec5(y, x, y, w, w);
/// <summary>
/// Returns vec4.yxz swizzling.
/// </summary>
public vec3 yxz => new vec3(y, x, z);
/// <summary>
/// Returns vec4.grb swizzling (equivalent to vec4.yxz).
/// </summary>
public vec3 grb => new vec3(y, x, z);
/// <summary>
/// Returns vec4.yxzx swizzling.
/// </summary>
public vec4 yxzx => new vec4(y, x, z, x);
/// <summary>
/// Returns vec4.grbr swizzling (equivalent to vec4.yxzx).
/// </summary>
public vec4 grbr => new vec4(y, x, z, x);
/// <summary>
/// Returns vec4.yxzxx swizzling.
/// </summary>
public vec5 yxzxx => new vec5(y, x, z, x, x);
/// <summary>
/// Returns vec4.grbrr swizzling (equivalent to vec4.yxzxx).
/// </summary>
public vec5 grbrr => new vec5(y, x, z, x, x);
/// <summary>
/// Returns vec4.yxzxy swizzling.
/// </summary>
public vec5 yxzxy => new vec5(y, x, z, x, y);
/// <summary>
/// Returns vec4.grbrg swizzling (equivalent to vec4.yxzxy).
/// </summary>
public vec5 grbrg => new vec5(y, x, z, x, y);
/// <summary>
/// Returns vec4.yxzxz swizzling.
/// </summary>
public vec5 yxzxz => new vec5(y, x, z, x, z);
/// <summary>
/// Returns vec4.grbrb swizzling (equivalent to vec4.yxzxz).
/// </summary>
public vec5 grbrb => new vec5(y, x, z, x, z);
/// <summary>
/// Returns vec4.yxzxw swizzling.
/// </summary>
public vec5 yxzxw => new vec5(y, x, z, x, w);
/// <summary>
/// Returns vec4.grbra swizzling (equivalent to vec4.yxzxw).
/// </summary>
public vec5 grbra => new vec5(y, x, z, x, w);
/// <summary>
/// Returns vec4.yxzy swizzling.
/// </summary>
public vec4 yxzy => new vec4(y, x, z, y);
/// <summary>
/// Returns vec4.grbg swizzling (equivalent to vec4.yxzy).
/// </summary>
public vec4 grbg => new vec4(y, x, z, y);
/// <summary>
/// Returns vec4.yxzyx swizzling.
/// </summary>
public vec5 yxzyx => new vec5(y, x, z, y, x);
/// <summary>
/// Returns vec4.grbgr swizzling (equivalent to vec4.yxzyx).
/// </summary>
public vec5 grbgr => new vec5(y, x, z, y, x);
/// <summary>
/// Returns vec4.yxzyy swizzling.
/// </summary>
public vec5 yxzyy => new vec5(y, x, z, y, y);
/// <summary>
/// Returns vec4.grbgg swizzling (equivalent to vec4.yxzyy).
/// </summary>
public vec5 grbgg => new vec5(y, x, z, y, y);
/// <summary>
/// Returns vec4.yxzyz swizzling.
/// </summary>
public vec5 yxzyz => new vec5(y, x, z, y, z);
/// <summary>
/// Returns vec4.grbgb swizzling (equivalent to vec4.yxzyz).
/// </summary>
public vec5 grbgb => new vec5(y, x, z, y, z);
/// <summary>
/// Returns vec4.yxzyw swizzling.
/// </summary>
public vec5 yxzyw => new vec5(y, x, z, y, w);
/// <summary>
/// Returns vec4.grbga swizzling (equivalent to vec4.yxzyw).
/// </summary>
public vec5 grbga => new vec5(y, x, z, y, w);
/// <summary>
/// Returns vec4.yxzz swizzling.
/// </summary>
public vec4 yxzz => new vec4(y, x, z, z);
/// <summary>
/// Returns vec4.grbb swizzling (equivalent to vec4.yxzz).
/// </summary>
public vec4 grbb => new vec4(y, x, z, z);
/// <summary>
/// Returns vec4.yxzzx swizzling.
/// </summary>
public vec5 yxzzx => new vec5(y, x, z, z, x);
/// <summary>
/// Returns vec4.grbbr swizzling (equivalent to vec4.yxzzx).
/// </summary>
public vec5 grbbr => new vec5(y, x, z, z, x);
/// <summary>
/// Returns vec4.yxzzy swizzling.
/// </summary>
public vec5 yxzzy => new vec5(y, x, z, z, y);
/// <summary>
/// Returns vec4.grbbg swizzling (equivalent to vec4.yxzzy).
/// </summary>
public vec5 grbbg => new vec5(y, x, z, z, y);
/// <summary>
/// Returns vec4.yxzzz swizzling.
/// </summary>
public vec5 yxzzz => new vec5(y, x, z, z, z);
/// <summary>
/// Returns vec4.grbbb swizzling (equivalent to vec4.yxzzz).
/// </summary>
public vec5 grbbb => new vec5(y, x, z, z, z);
/// <summary>
/// Returns vec4.yxzzw swizzling.
/// </summary>
public vec5 yxzzw => new vec5(y, x, z, z, w);
/// <summary>
/// Returns vec4.grbba swizzling (equivalent to vec4.yxzzw).
/// </summary>
public vec5 grbba => new vec5(y, x, z, z, w);
/// <summary>
/// Returns vec4.yxzw swizzling.
/// </summary>
public vec4 yxzw => new vec4(y, x, z, w);
/// <summary>
/// Returns vec4.grba swizzling (equivalent to vec4.yxzw).
/// </summary>
public vec4 grba => new vec4(y, x, z, w);
/// <summary>
/// Returns vec4.yxzwx swizzling.
/// </summary>
public vec5 yxzwx => new vec5(y, x, z, w, x);
/// <summary>
/// Returns vec4.grbar swizzling (equivalent to vec4.yxzwx).
/// </summary>
public vec5 grbar => new vec5(y, x, z, w, x);
/// <summary>
/// Returns vec4.yxzwy swizzling.
/// </summary>
public vec5 yxzwy => new vec5(y, x, z, w, y);
/// <summary>
/// Returns vec4.grbag swizzling (equivalent to vec4.yxzwy).
/// </summary>
public vec5 grbag => new vec5(y, x, z, w, y);
/// <summary>
/// Returns vec4.yxzwz swizzling.
/// </summary>
public vec5 yxzwz => new vec5(y, x, z, w, z);
/// <summary>
/// Returns vec4.grbab swizzling (equivalent to vec4.yxzwz).
/// </summary>
public vec5 grbab => new vec5(y, x, z, w, z);
/// <summary>
/// Returns vec4.yxzww swizzling.
/// </summary>
public vec5 yxzww => new vec5(y, x, z, w, w);
/// <summary>
/// Returns vec4.grbaa swizzling (equivalent to vec4.yxzww).
/// </summary>
public vec5 grbaa => new vec5(y, x, z, w, w);
/// <summary>
/// Returns vec4.yxw swizzling.
/// </summary>
public vec3 yxw => new vec3(y, x, w);
/// <summary>
/// Returns vec4.gra swizzling (equivalent to vec4.yxw).
/// </summary>
public vec3 gra => new vec3(y, x, w);
/// <summary>
/// Returns vec4.yxwx swizzling.
/// </summary>
public vec4 yxwx => new vec4(y, x, w, x);
/// <summary>
/// Returns vec4.grar swizzling (equivalent to vec4.yxwx).
/// </summary>
public vec4 grar => new vec4(y, x, w, x);
/// <summary>
/// Returns vec4.yxwxx swizzling.
/// </summary>
public vec5 yxwxx => new vec5(y, x, w, x, x);
/// <summary>
/// Returns vec4.grarr swizzling (equivalent to vec4.yxwxx).
/// </summary>
public vec5 grarr => new vec5(y, x, w, x, x);
/// <summary>
/// Returns vec4.yxwxy swizzling.
/// </summary>
public vec5 yxwxy => new vec5(y, x, w, x, y);
/// <summary>
/// Returns vec4.grarg swizzling (equivalent to vec4.yxwxy).
/// </summary>
public vec5 grarg => new vec5(y, x, w, x, y);
/// <summary>
/// Returns vec4.yxwxz swizzling.
/// </summary>
public vec5 yxwxz => new vec5(y, x, w, x, z);
/// <summary>
/// Returns vec4.grarb swizzling (equivalent to vec4.yxwxz).
/// </summary>
public vec5 grarb => new vec5(y, x, w, x, z);
/// <summary>
/// Returns vec4.yxwxw swizzling.
/// </summary>
public vec5 yxwxw => new vec5(y, x, w, x, w);
/// <summary>
/// Returns vec4.grara swizzling (equivalent to vec4.yxwxw).
/// </summary>
public vec5 grara => new vec5(y, x, w, x, w);
/// <summary>
/// Returns vec4.yxwy swizzling.
/// </summary>
public vec4 yxwy => new vec4(y, x, w, y);
/// <summary>
/// Returns vec4.grag swizzling (equivalent to vec4.yxwy).
/// </summary>
public vec4 grag => new vec4(y, x, w, y);
/// <summary>
/// Returns vec4.yxwyx swizzling.
/// </summary>
public vec5 yxwyx => new vec5(y, x, w, y, x);
/// <summary>
/// Returns vec4.gragr swizzling (equivalent to vec4.yxwyx).
/// </summary>
public vec5 gragr => new vec5(y, x, w, y, x);
/// <summary>
/// Returns vec4.yxwyy swizzling.
/// </summary>
public vec5 yxwyy => new vec5(y, x, w, y, y);
/// <summary>
/// Returns vec4.gragg swizzling (equivalent to vec4.yxwyy).
/// </summary>
public vec5 gragg => new vec5(y, x, w, y, y);
/// <summary>
/// Returns vec4.yxwyz swizzling.
/// </summary>
public vec5 yxwyz => new vec5(y, x, w, y, z);
/// <summary>
/// Returns vec4.gragb swizzling (equivalent to vec4.yxwyz).
/// </summary>
public vec5 gragb => new vec5(y, x, w, y, z);
/// <summary>
/// Returns vec4.yxwyw swizzling.
/// </summary>
public vec5 yxwyw => new vec5(y, x, w, y, w);
/// <summary>
/// Returns vec4.graga swizzling (equivalent to vec4.yxwyw).
/// </summary>
public vec5 graga => new vec5(y, x, w, y, w);
/// <summary>
/// Returns vec4.yxwz swizzling.
/// </summary>
public vec4 yxwz => new vec4(y, x, w, z);
/// <summary>
/// Returns vec4.grab swizzling (equivalent to vec4.yxwz).
/// </summary>
public vec4 grab => new vec4(y, x, w, z);
/// <summary>
/// Returns vec4.yxwzx swizzling.
/// </summary>
public vec5 yxwzx => new vec5(y, x, w, z, x);
/// <summary>
/// Returns vec4.grabr swizzling (equivalent to vec4.yxwzx).
/// </summary>
public vec5 grabr => new vec5(y, x, w, z, x);
/// <summary>
/// Returns vec4.yxwzy swizzling.
/// </summary>
public vec5 yxwzy => new vec5(y, x, w, z, y);
/// <summary>
/// Returns vec4.grabg swizzling (equivalent to vec4.yxwzy).
/// </summary>
public vec5 grabg => new vec5(y, x, w, z, y);
/// <summary>
/// Returns vec4.yxwzz swizzling.
/// </summary>
public vec5 yxwzz => new vec5(y, x, w, z, z);
/// <summary>
/// Returns vec4.grabb swizzling (equivalent to vec4.yxwzz).
/// </summary>
public vec5 grabb => new vec5(y, x, w, z, z);
/// <summary>
/// Returns vec4.yxwzw swizzling.
/// </summary>
public vec5 yxwzw => new vec5(y, x, w, z, w);
/// <summary>
/// Returns vec4.graba swizzling (equivalent to vec4.yxwzw).
/// </summary>
public vec5 graba => new vec5(y, x, w, z, w);
/// <summary>
/// Returns vec4.yxww swizzling.
/// </summary>
public vec4 yxww => new vec4(y, x, w, w);
/// <summary>
/// Returns vec4.graa swizzling (equivalent to vec4.yxww).
/// </summary>
public vec4 graa => new vec4(y, x, w, w);
/// <summary>
/// Returns vec4.yxwwx swizzling.
/// </summary>
public vec5 yxwwx => new vec5(y, x, w, w, x);
/// <summary>
/// Returns vec4.graar swizzling (equivalent to vec4.yxwwx).
/// </summary>
public vec5 graar => new vec5(y, x, w, w, x);
/// <summary>
/// Returns vec4.yxwwy swizzling.
/// </summary>
public vec5 yxwwy => new vec5(y, x, w, w, y);
/// <summary>
/// Returns vec4.graag swizzling (equivalent to vec4.yxwwy).
/// </summary>
public vec5 graag => new vec5(y, x, w, w, y);
/// <summary>
/// Returns vec4.yxwwz swizzling.
/// </summary>
public vec5 yxwwz => new vec5(y, x, w, w, z);
/// <summary>
/// Returns vec4.graab swizzling (equivalent to vec4.yxwwz).
/// </summary>
public vec5 graab => new vec5(y, x, w, w, z);
/// <summary>
/// Returns vec4.yxwww swizzling.
/// </summary>
public vec5 yxwww => new vec5(y, x, w, w, w);
/// <summary>
/// Returns vec4.graaa swizzling (equivalent to vec4.yxwww).
/// </summary>
public vec5 graaa => new vec5(y, x, w, w, w);
/// <summary>
/// Returns vec4.yy swizzling.
/// </summary>
public vec2 yy => new vec2(y, y);
/// <summary>
/// Returns vec4.gg swizzling (equivalent to vec4.yy).
/// </summary>
public vec2 gg => new vec2(y, y);
/// <summary>
/// Returns vec4.yyx swizzling.
/// </summary>
public vec3 yyx => new vec3(y, y, x);
/// <summary>
/// Returns vec4.ggr swizzling (equivalent to vec4.yyx).
/// </summary>
public vec3 ggr => new vec3(y, y, x);
/// <summary>
/// Returns vec4.yyxx swizzling.
/// </summary>
public vec4 yyxx => new vec4(y, y, x, x);
/// <summary>
/// Returns vec4.ggrr swizzling (equivalent to vec4.yyxx).
/// </summary>
public vec4 ggrr => new vec4(y, y, x, x);
/// <summary>
/// Returns vec4.yyxxx swizzling.
/// </summary>
public vec5 yyxxx => new vec5(y, y, x, x, x);
/// <summary>
/// Returns vec4.ggrrr swizzling (equivalent to vec4.yyxxx).
/// </summary>
public vec5 ggrrr => new vec5(y, y, x, x, x);
/// <summary>
/// Returns vec4.yyxxy swizzling.
/// </summary>
public vec5 yyxxy => new vec5(y, y, x, x, y);
/// <summary>
/// Returns vec4.ggrrg swizzling (equivalent to vec4.yyxxy).
/// </summary>
public vec5 ggrrg => new vec5(y, y, x, x, y);
/// <summary>
/// Returns vec4.yyxxz swizzling.
/// </summary>
public vec5 yyxxz => new vec5(y, y, x, x, z);
/// <summary>
/// Returns vec4.ggrrb swizzling (equivalent to vec4.yyxxz).
/// </summary>
public vec5 ggrrb => new vec5(y, y, x, x, z);
/// <summary>
/// Returns vec4.yyxxw swizzling.
/// </summary>
public vec5 yyxxw => new vec5(y, y, x, x, w);
/// <summary>
/// Returns vec4.ggrra swizzling (equivalent to vec4.yyxxw).
/// </summary>
public vec5 ggrra => new vec5(y, y, x, x, w);
/// <summary>
/// Returns vec4.yyxy swizzling.
/// </summary>
public vec4 yyxy => new vec4(y, y, x, y);
/// <summary>
/// Returns vec4.ggrg swizzling (equivalent to vec4.yyxy).
/// </summary>
public vec4 ggrg => new vec4(y, y, x, y);
/// <summary>
/// Returns vec4.yyxyx swizzling.
/// </summary>
public vec5 yyxyx => new vec5(y, y, x, y, x);
/// <summary>
/// Returns vec4.ggrgr swizzling (equivalent to vec4.yyxyx).
/// </summary>
public vec5 ggrgr => new vec5(y, y, x, y, x);
/// <summary>
/// Returns vec4.yyxyy swizzling.
/// </summary>
public vec5 yyxyy => new vec5(y, y, x, y, y);
/// <summary>
/// Returns vec4.ggrgg swizzling (equivalent to vec4.yyxyy).
/// </summary>
public vec5 ggrgg => new vec5(y, y, x, y, y);
/// <summary>
/// Returns vec4.yyxyz swizzling.
/// </summary>
public vec5 yyxyz => new vec5(y, y, x, y, z);
/// <summary>
/// Returns vec4.ggrgb swizzling (equivalent to vec4.yyxyz).
/// </summary>
public vec5 ggrgb => new vec5(y, y, x, y, z);
/// <summary>
/// Returns vec4.yyxyw swizzling.
/// </summary>
public vec5 yyxyw => new vec5(y, y, x, y, w);
/// <summary>
/// Returns vec4.ggrga swizzling (equivalent to vec4.yyxyw).
/// </summary>
public vec5 ggrga => new vec5(y, y, x, y, w);
/// <summary>
/// Returns vec4.yyxz swizzling.
/// </summary>
public vec4 yyxz => new vec4(y, y, x, z);
/// <summary>
/// Returns vec4.ggrb swizzling (equivalent to vec4.yyxz).
/// </summary>
public vec4 ggrb => new vec4(y, y, x, z);
/// <summary>
/// Returns vec4.yyxzx swizzling.
/// </summary>
public vec5 yyxzx => new vec5(y, y, x, z, x);
/// <summary>
/// Returns vec4.ggrbr swizzling (equivalent to vec4.yyxzx).
/// </summary>
public vec5 ggrbr => new vec5(y, y, x, z, x);
/// <summary>
/// Returns vec4.yyxzy swizzling.
/// </summary>
public vec5 yyxzy => new vec5(y, y, x, z, y);
/// <summary>
/// Returns vec4.ggrbg swizzling (equivalent to vec4.yyxzy).
/// </summary>
public vec5 ggrbg => new vec5(y, y, x, z, y);
/// <summary>
/// Returns vec4.yyxzz swizzling.
/// </summary>
public vec5 yyxzz => new vec5(y, y, x, z, z);
/// <summary>
/// Returns vec4.ggrbb swizzling (equivalent to vec4.yyxzz).
/// </summary>
public vec5 ggrbb => new vec5(y, y, x, z, z);
/// <summary>
/// Returns vec4.yyxzw swizzling.
/// </summary>
public vec5 yyxzw => new vec5(y, y, x, z, w);
/// <summary>
/// Returns vec4.ggrba swizzling (equivalent to vec4.yyxzw).
/// </summary>
public vec5 ggrba => new vec5(y, y, x, z, w);
/// <summary>
/// Returns vec4.yyxw swizzling.
/// </summary>
public vec4 yyxw => new vec4(y, y, x, w);
/// <summary>
/// Returns vec4.ggra swizzling (equivalent to vec4.yyxw).
/// </summary>
public vec4 ggra => new vec4(y, y, x, w);
/// <summary>
/// Returns vec4.yyxwx swizzling.
/// </summary>
public vec5 yyxwx => new vec5(y, y, x, w, x);
/// <summary>
/// Returns vec4.ggrar swizzling (equivalent to vec4.yyxwx).
/// </summary>
public vec5 ggrar => new vec5(y, y, x, w, x);
/// <summary>
/// Returns vec4.yyxwy swizzling.
/// </summary>
public vec5 yyxwy => new vec5(y, y, x, w, y);
/// <summary>
/// Returns vec4.ggrag swizzling (equivalent to vec4.yyxwy).
/// </summary>
public vec5 ggrag => new vec5(y, y, x, w, y);
/// <summary>
/// Returns vec4.yyxwz swizzling.
/// </summary>
public vec5 yyxwz => new vec5(y, y, x, w, z);
/// <summary>
/// Returns vec4.ggrab swizzling (equivalent to vec4.yyxwz).
/// </summary>
public vec5 ggrab => new vec5(y, y, x, w, z);
/// <summary>
/// Returns vec4.yyxww swizzling.
/// </summary>
public vec5 yyxww => new vec5(y, y, x, w, w);
/// <summary>
/// Returns vec4.ggraa swizzling (equivalent to vec4.yyxww).
/// </summary>
public vec5 ggraa => new vec5(y, y, x, w, w);
/// <summary>
/// Returns vec4.yyy swizzling.
/// </summary>
public vec3 yyy => new vec3(y, y, y);
/// <summary>
/// Returns vec4.ggg swizzling (equivalent to vec4.yyy).
/// </summary>
public vec3 ggg => new vec3(y, y, y);
/// <summary>
/// Returns vec4.yyyx swizzling.
/// </summary>
public vec4 yyyx => new vec4(y, y, y, x);
/// <summary>
/// Returns vec4.gggr swizzling (equivalent to vec4.yyyx).
/// </summary>
public vec4 gggr => new vec4(y, y, y, x);
/// <summary>
/// Returns vec4.yyyxx swizzling.
/// </summary>
public vec5 yyyxx => new vec5(y, y, y, x, x);
/// <summary>
/// Returns vec4.gggrr swizzling (equivalent to vec4.yyyxx).
/// </summary>
public vec5 gggrr => new vec5(y, y, y, x, x);
/// <summary>
/// Returns vec4.yyyxy swizzling.
/// </summary>
public vec5 yyyxy => new vec5(y, y, y, x, y);
/// <summary>
/// Returns vec4.gggrg swizzling (equivalent to vec4.yyyxy).
/// </summary>
public vec5 gggrg => new vec5(y, y, y, x, y);
/// <summary>
/// Returns vec4.yyyxz swizzling.
/// </summary>
public vec5 yyyxz => new vec5(y, y, y, x, z);
/// <summary>
/// Returns vec4.gggrb swizzling (equivalent to vec4.yyyxz).
/// </summary>
public vec5 gggrb => new vec5(y, y, y, x, z);
/// <summary>
/// Returns vec4.yyyxw swizzling.
/// </summary>
public vec5 yyyxw => new vec5(y, y, y, x, w);
/// <summary>
/// Returns vec4.gggra swizzling (equivalent to vec4.yyyxw).
/// </summary>
public vec5 gggra => new vec5(y, y, y, x, w);
/// <summary>
/// Returns vec4.yyyy swizzling.
/// </summary>
public vec4 yyyy => new vec4(y, y, y, y);
/// <summary>
/// Returns vec4.gggg swizzling (equivalent to vec4.yyyy).
/// </summary>
public vec4 gggg => new vec4(y, y, y, y);
/// <summary>
/// Returns vec4.yyyyx swizzling.
/// </summary>
public vec5 yyyyx => new vec5(y, y, y, y, x);
/// <summary>
/// Returns vec4.ggggr swizzling (equivalent to vec4.yyyyx).
/// </summary>
public vec5 ggggr => new vec5(y, y, y, y, x);
/// <summary>
/// Returns vec4.yyyyy swizzling.
/// </summary>
public vec5 yyyyy => new vec5(y, y, y, y, y);
/// <summary>
/// Returns vec4.ggggg swizzling (equivalent to vec4.yyyyy).
/// </summary>
public vec5 ggggg => new vec5(y, y, y, y, y);
/// <summary>
/// Returns vec4.yyyyz swizzling.
/// </summary>
public vec5 yyyyz => new vec5(y, y, y, y, z);
/// <summary>
/// Returns vec4.ggggb swizzling (equivalent to vec4.yyyyz).
/// </summary>
public vec5 ggggb => new vec5(y, y, y, y, z);
/// <summary>
/// Returns vec4.yyyyw swizzling.
/// </summary>
public vec5 yyyyw => new vec5(y, y, y, y, w);
/// <summary>
/// Returns vec4.gggga swizzling (equivalent to vec4.yyyyw).
/// </summary>
public vec5 gggga => new vec5(y, y, y, y, w);
/// <summary>
/// Returns vec4.yyyz swizzling.
/// </summary>
public vec4 yyyz => new vec4(y, y, y, z);
/// <summary>
/// Returns vec4.gggb swizzling (equivalent to vec4.yyyz).
/// </summary>
public vec4 gggb => new vec4(y, y, y, z);
/// <summary>
/// Returns vec4.yyyzx swizzling.
/// </summary>
public vec5 yyyzx => new vec5(y, y, y, z, x);
/// <summary>
/// Returns vec4.gggbr swizzling (equivalent to vec4.yyyzx).
/// </summary>
public vec5 gggbr => new vec5(y, y, y, z, x);
/// <summary>
/// Returns vec4.yyyzy swizzling.
/// </summary>
public vec5 yyyzy => new vec5(y, y, y, z, y);
/// <summary>
/// Returns vec4.gggbg swizzling (equivalent to vec4.yyyzy).
/// </summary>
public vec5 gggbg => new vec5(y, y, y, z, y);
/// <summary>
/// Returns vec4.yyyzz swizzling.
/// </summary>
public vec5 yyyzz => new vec5(y, y, y, z, z);
/// <summary>
/// Returns vec4.gggbb swizzling (equivalent to vec4.yyyzz).
/// </summary>
public vec5 gggbb => new vec5(y, y, y, z, z);
/// <summary>
/// Returns vec4.yyyzw swizzling.
/// </summary>
public vec5 yyyzw => new vec5(y, y, y, z, w);
/// <summary>
/// Returns vec4.gggba swizzling (equivalent to vec4.yyyzw).
/// </summary>
public vec5 gggba => new vec5(y, y, y, z, w);
/// <summary>
/// Returns vec4.yyyw swizzling.
/// </summary>
public vec4 yyyw => new vec4(y, y, y, w);
/// <summary>
/// Returns vec4.ggga swizzling (equivalent to vec4.yyyw).
/// </summary>
public vec4 ggga => new vec4(y, y, y, w);
/// <summary>
/// Returns vec4.yyywx swizzling.
/// </summary>
public vec5 yyywx => new vec5(y, y, y, w, x);
/// <summary>
/// Returns vec4.gggar swizzling (equivalent to vec4.yyywx).
/// </summary>
public vec5 gggar => new vec5(y, y, y, w, x);
/// <summary>
/// Returns vec4.yyywy swizzling.
/// </summary>
public vec5 yyywy => new vec5(y, y, y, w, y);
/// <summary>
/// Returns vec4.gggag swizzling (equivalent to vec4.yyywy).
/// </summary>
public vec5 gggag => new vec5(y, y, y, w, y);
/// <summary>
/// Returns vec4.yyywz swizzling.
/// </summary>
public vec5 yyywz => new vec5(y, y, y, w, z);
/// <summary>
/// Returns vec4.gggab swizzling (equivalent to vec4.yyywz).
/// </summary>
public vec5 gggab => new vec5(y, y, y, w, z);
/// <summary>
/// Returns vec4.yyyww swizzling.
/// </summary>
public vec5 yyyww => new vec5(y, y, y, w, w);
/// <summary>
/// Returns vec4.gggaa swizzling (equivalent to vec4.yyyww).
/// </summary>
public vec5 gggaa => new vec5(y, y, y, w, w);
/// <summary>
/// Returns vec4.yyz swizzling.
/// </summary>
public vec3 yyz => new vec3(y, y, z);
/// <summary>
/// Returns vec4.ggb swizzling (equivalent to vec4.yyz).
/// </summary>
public vec3 ggb => new vec3(y, y, z);
/// <summary>
/// Returns vec4.yyzx swizzling.
/// </summary>
public vec4 yyzx => new vec4(y, y, z, x);
/// <summary>
/// Returns vec4.ggbr swizzling (equivalent to vec4.yyzx).
/// </summary>
public vec4 ggbr => new vec4(y, y, z, x);
/// <summary>
/// Returns vec4.yyzxx swizzling.
/// </summary>
public vec5 yyzxx => new vec5(y, y, z, x, x);
/// <summary>
/// Returns vec4.ggbrr swizzling (equivalent to vec4.yyzxx).
/// </summary>
public vec5 ggbrr => new vec5(y, y, z, x, x);
/// <summary>
/// Returns vec4.yyzxy swizzling.
/// </summary>
public vec5 yyzxy => new vec5(y, y, z, x, y);
/// <summary>
/// Returns vec4.ggbrg swizzling (equivalent to vec4.yyzxy).
/// </summary>
public vec5 ggbrg => new vec5(y, y, z, x, y);
/// <summary>
/// Returns vec4.yyzxz swizzling.
/// </summary>
public vec5 yyzxz => new vec5(y, y, z, x, z);
/// <summary>
/// Returns vec4.ggbrb swizzling (equivalent to vec4.yyzxz).
/// </summary>
public vec5 ggbrb => new vec5(y, y, z, x, z);
/// <summary>
/// Returns vec4.yyzxw swizzling.
/// </summary>
public vec5 yyzxw => new vec5(y, y, z, x, w);
/// <summary>
/// Returns vec4.ggbra swizzling (equivalent to vec4.yyzxw).
/// </summary>
public vec5 ggbra => new vec5(y, y, z, x, w);
/// <summary>
/// Returns vec4.yyzy swizzling.
/// </summary>
public vec4 yyzy => new vec4(y, y, z, y);
/// <summary>
/// Returns vec4.ggbg swizzling (equivalent to vec4.yyzy).
/// </summary>
public vec4 ggbg => new vec4(y, y, z, y);
/// <summary>
/// Returns vec4.yyzyx swizzling.
/// </summary>
public vec5 yyzyx => new vec5(y, y, z, y, x);
/// <summary>
/// Returns vec4.ggbgr swizzling (equivalent to vec4.yyzyx).
/// </summary>
public vec5 ggbgr => new vec5(y, y, z, y, x);
/// <summary>
/// Returns vec4.yyzyy swizzling.
/// </summary>
public vec5 yyzyy => new vec5(y, y, z, y, y);
/// <summary>
/// Returns vec4.ggbgg swizzling (equivalent to vec4.yyzyy).
/// </summary>
public vec5 ggbgg => new vec5(y, y, z, y, y);
/// <summary>
/// Returns vec4.yyzyz swizzling.
/// </summary>
public vec5 yyzyz => new vec5(y, y, z, y, z);
/// <summary>
/// Returns vec4.ggbgb swizzling (equivalent to vec4.yyzyz).
/// </summary>
public vec5 ggbgb => new vec5(y, y, z, y, z);
/// <summary>
/// Returns vec4.yyzyw swizzling.
/// </summary>
public vec5 yyzyw => new vec5(y, y, z, y, w);
/// <summary>
/// Returns vec4.ggbga swizzling (equivalent to vec4.yyzyw).
/// </summary>
public vec5 ggbga => new vec5(y, y, z, y, w);
/// <summary>
/// Returns vec4.yyzz swizzling.
/// </summary>
public vec4 yyzz => new vec4(y, y, z, z);
/// <summary>
/// Returns vec4.ggbb swizzling (equivalent to vec4.yyzz).
/// </summary>
public vec4 ggbb => new vec4(y, y, z, z);
/// <summary>
/// Returns vec4.yyzzx swizzling.
/// </summary>
public vec5 yyzzx => new vec5(y, y, z, z, x);
/// <summary>
/// Returns vec4.ggbbr swizzling (equivalent to vec4.yyzzx).
/// </summary>
public vec5 ggbbr => new vec5(y, y, z, z, x);
/// <summary>
/// Returns vec4.yyzzy swizzling.
/// </summary>
public vec5 yyzzy => new vec5(y, y, z, z, y);
/// <summary>
/// Returns vec4.ggbbg swizzling (equivalent to vec4.yyzzy).
/// </summary>
public vec5 ggbbg => new vec5(y, y, z, z, y);
/// <summary>
/// Returns vec4.yyzzz swizzling.
/// </summary>
public vec5 yyzzz => new vec5(y, y, z, z, z);
/// <summary>
/// Returns vec4.ggbbb swizzling (equivalent to vec4.yyzzz).
/// </summary>
public vec5 ggbbb => new vec5(y, y, z, z, z);
/// <summary>
/// Returns vec4.yyzzw swizzling.
/// </summary>
public vec5 yyzzw => new vec5(y, y, z, z, w);
/// <summary>
/// Returns vec4.ggbba swizzling (equivalent to vec4.yyzzw).
/// </summary>
public vec5 ggbba => new vec5(y, y, z, z, w);
/// <summary>
/// Returns vec4.yyzw swizzling.
/// </summary>
public vec4 yyzw => new vec4(y, y, z, w);
/// <summary>
/// Returns vec4.ggba swizzling (equivalent to vec4.yyzw).
/// </summary>
public vec4 ggba => new vec4(y, y, z, w);
/// <summary>
/// Returns vec4.yyzwx swizzling.
/// </summary>
public vec5 yyzwx => new vec5(y, y, z, w, x);
/// <summary>
/// Returns vec4.ggbar swizzling (equivalent to vec4.yyzwx).
/// </summary>
public vec5 ggbar => new vec5(y, y, z, w, x);
/// <summary>
/// Returns vec4.yyzwy swizzling.
/// </summary>
public vec5 yyzwy => new vec5(y, y, z, w, y);
/// <summary>
/// Returns vec4.ggbag swizzling (equivalent to vec4.yyzwy).
/// </summary>
public vec5 ggbag => new vec5(y, y, z, w, y);
/// <summary>
/// Returns vec4.yyzwz swizzling.
/// </summary>
public vec5 yyzwz => new vec5(y, y, z, w, z);
/// <summary>
/// Returns vec4.ggbab swizzling (equivalent to vec4.yyzwz).
/// </summary>
public vec5 ggbab => new vec5(y, y, z, w, z);
/// <summary>
/// Returns vec4.yyzww swizzling.
/// </summary>
public vec5 yyzww => new vec5(y, y, z, w, w);
/// <summary>
/// Returns vec4.ggbaa swizzling (equivalent to vec4.yyzww).
/// </summary>
public vec5 ggbaa => new vec5(y, y, z, w, w);
/// <summary>
/// Returns vec4.yyw swizzling.
/// </summary>
public vec3 yyw => new vec3(y, y, w);
/// <summary>
/// Returns vec4.gga swizzling (equivalent to vec4.yyw).
/// </summary>
public vec3 gga => new vec3(y, y, w);
/// <summary>
/// Returns vec4.yywx swizzling.
/// </summary>
public vec4 yywx => new vec4(y, y, w, x);
/// <summary>
/// Returns vec4.ggar swizzling (equivalent to vec4.yywx).
/// </summary>
public vec4 ggar => new vec4(y, y, w, x);
/// <summary>
/// Returns vec4.yywxx swizzling.
/// </summary>
public vec5 yywxx => new vec5(y, y, w, x, x);
/// <summary>
/// Returns vec4.ggarr swizzling (equivalent to vec4.yywxx).
/// </summary>
public vec5 ggarr => new vec5(y, y, w, x, x);
/// <summary>
/// Returns vec4.yywxy swizzling.
/// </summary>
public vec5 yywxy => new vec5(y, y, w, x, y);
/// <summary>
/// Returns vec4.ggarg swizzling (equivalent to vec4.yywxy).
/// </summary>
public vec5 ggarg => new vec5(y, y, w, x, y);
/// <summary>
/// Returns vec4.yywxz swizzling.
/// </summary>
public vec5 yywxz => new vec5(y, y, w, x, z);
/// <summary>
/// Returns vec4.ggarb swizzling (equivalent to vec4.yywxz).
/// </summary>
public vec5 ggarb => new vec5(y, y, w, x, z);
/// <summary>
/// Returns vec4.yywxw swizzling.
/// </summary>
public vec5 yywxw => new vec5(y, y, w, x, w);
/// <summary>
/// Returns vec4.ggara swizzling (equivalent to vec4.yywxw).
/// </summary>
public vec5 ggara => new vec5(y, y, w, x, w);
/// <summary>
/// Returns vec4.yywy swizzling.
/// </summary>
public vec4 yywy => new vec4(y, y, w, y);
/// <summary>
/// Returns vec4.ggag swizzling (equivalent to vec4.yywy).
/// </summary>
public vec4 ggag => new vec4(y, y, w, y);
/// <summary>
/// Returns vec4.yywyx swizzling.
/// </summary>
public vec5 yywyx => new vec5(y, y, w, y, x);
/// <summary>
/// Returns vec4.ggagr swizzling (equivalent to vec4.yywyx).
/// </summary>
public vec5 ggagr => new vec5(y, y, w, y, x);
/// <summary>
/// Returns vec4.yywyy swizzling.
/// </summary>
public vec5 yywyy => new vec5(y, y, w, y, y);
/// <summary>
/// Returns vec4.ggagg swizzling (equivalent to vec4.yywyy).
/// </summary>
public vec5 ggagg => new vec5(y, y, w, y, y);
/// <summary>
/// Returns vec4.yywyz swizzling.
/// </summary>
public vec5 yywyz => new vec5(y, y, w, y, z);
/// <summary>
/// Returns vec4.ggagb swizzling (equivalent to vec4.yywyz).
/// </summary>
public vec5 ggagb => new vec5(y, y, w, y, z);
/// <summary>
/// Returns vec4.yywyw swizzling.
/// </summary>
public vec5 yywyw => new vec5(y, y, w, y, w);
/// <summary>
/// Returns vec4.ggaga swizzling (equivalent to vec4.yywyw).
/// </summary>
public vec5 ggaga => new vec5(y, y, w, y, w);
/// <summary>
/// Returns vec4.yywz swizzling.
/// </summary>
public vec4 yywz => new vec4(y, y, w, z);
/// <summary>
/// Returns vec4.ggab swizzling (equivalent to vec4.yywz).
/// </summary>
public vec4 ggab => new vec4(y, y, w, z);
/// <summary>
/// Returns vec4.yywzx swizzling.
/// </summary>
public vec5 yywzx => new vec5(y, y, w, z, x);
/// <summary>
/// Returns vec4.ggabr swizzling (equivalent to vec4.yywzx).
/// </summary>
public vec5 ggabr => new vec5(y, y, w, z, x);
/// <summary>
/// Returns vec4.yywzy swizzling.
/// </summary>
public vec5 yywzy => new vec5(y, y, w, z, y);
/// <summary>
/// Returns vec4.ggabg swizzling (equivalent to vec4.yywzy).
/// </summary>
public vec5 ggabg => new vec5(y, y, w, z, y);
/// <summary>
/// Returns vec4.yywzz swizzling.
/// </summary>
public vec5 yywzz => new vec5(y, y, w, z, z);
/// <summary>
/// Returns vec4.ggabb swizzling (equivalent to vec4.yywzz).
/// </summary>
public vec5 ggabb => new vec5(y, y, w, z, z);
/// <summary>
/// Returns vec4.yywzw swizzling.
/// </summary>
public vec5 yywzw => new vec5(y, y, w, z, w);
/// <summary>
/// Returns vec4.ggaba swizzling (equivalent to vec4.yywzw).
/// </summary>
public vec5 ggaba => new vec5(y, y, w, z, w);
/// <summary>
/// Returns vec4.yyww swizzling.
/// </summary>
public vec4 yyww => new vec4(y, y, w, w);
/// <summary>
/// Returns vec4.ggaa swizzling (equivalent to vec4.yyww).
/// </summary>
public vec4 ggaa => new vec4(y, y, w, w);
/// <summary>
/// Returns vec4.yywwx swizzling.
/// </summary>
public vec5 yywwx => new vec5(y, y, w, w, x);
/// <summary>
/// Returns vec4.ggaar swizzling (equivalent to vec4.yywwx).
/// </summary>
public vec5 ggaar => new vec5(y, y, w, w, x);
/// <summary>
/// Returns vec4.yywwy swizzling.
/// </summary>
public vec5 yywwy => new vec5(y, y, w, w, y);
/// <summary>
/// Returns vec4.ggaag swizzling (equivalent to vec4.yywwy).
/// </summary>
public vec5 ggaag => new vec5(y, y, w, w, y);
/// <summary>
/// Returns vec4.yywwz swizzling.
/// </summary>
public vec5 yywwz => new vec5(y, y, w, w, z);
/// <summary>
/// Returns vec4.ggaab swizzling (equivalent to vec4.yywwz).
/// </summary>
public vec5 ggaab => new vec5(y, y, w, w, z);
/// <summary>
/// Returns vec4.yywww swizzling.
/// </summary>
public vec5 yywww => new vec5(y, y, w, w, w);
/// <summary>
/// Returns vec4.ggaaa swizzling (equivalent to vec4.yywww).
/// </summary>
public vec5 ggaaa => new vec5(y, y, w, w, w);
/// <summary>
/// Returns vec4.yz swizzling.
/// </summary>
public vec2 yz => new vec2(y, z);
/// <summary>
/// Returns vec4.gb swizzling (equivalent to vec4.yz).
/// </summary>
public vec2 gb => new vec2(y, z);
/// <summary>
/// Returns vec4.yzx swizzling.
/// </summary>
public vec3 yzx => new vec3(y, z, x);
/// <summary>
/// Returns vec4.gbr swizzling (equivalent to vec4.yzx).
/// </summary>
public vec3 gbr => new vec3(y, z, x);
/// <summary>
/// Returns vec4.yzxx swizzling.
/// </summary>
public vec4 yzxx => new vec4(y, z, x, x);
/// <summary>
/// Returns vec4.gbrr swizzling (equivalent to vec4.yzxx).
/// </summary>
public vec4 gbrr => new vec4(y, z, x, x);
/// <summary>
/// Returns vec4.yzxxx swizzling.
/// </summary>
public vec5 yzxxx => new vec5(y, z, x, x, x);
/// <summary>
/// Returns vec4.gbrrr swizzling (equivalent to vec4.yzxxx).
/// </summary>
public vec5 gbrrr => new vec5(y, z, x, x, x);
/// <summary>
/// Returns vec4.yzxxy swizzling.
/// </summary>
public vec5 yzxxy => new vec5(y, z, x, x, y);
/// <summary>
/// Returns vec4.gbrrg swizzling (equivalent to vec4.yzxxy).
/// </summary>
public vec5 gbrrg => new vec5(y, z, x, x, y);
/// <summary>
/// Returns vec4.yzxxz swizzling.
/// </summary>
public vec5 yzxxz => new vec5(y, z, x, x, z);
/// <summary>
/// Returns vec4.gbrrb swizzling (equivalent to vec4.yzxxz).
/// </summary>
public vec5 gbrrb => new vec5(y, z, x, x, z);
/// <summary>
/// Returns vec4.yzxxw swizzling.
/// </summary>
public vec5 yzxxw => new vec5(y, z, x, x, w);
/// <summary>
/// Returns vec4.gbrra swizzling (equivalent to vec4.yzxxw).
/// </summary>
public vec5 gbrra => new vec5(y, z, x, x, w);
/// <summary>
/// Returns vec4.yzxy swizzling.
/// </summary>
public vec4 yzxy => new vec4(y, z, x, y);
/// <summary>
/// Returns vec4.gbrg swizzling (equivalent to vec4.yzxy).
/// </summary>
public vec4 gbrg => new vec4(y, z, x, y);
/// <summary>
/// Returns vec4.yzxyx swizzling.
/// </summary>
public vec5 yzxyx => new vec5(y, z, x, y, x);
/// <summary>
/// Returns vec4.gbrgr swizzling (equivalent to vec4.yzxyx).
/// </summary>
public vec5 gbrgr => new vec5(y, z, x, y, x);
/// <summary>
/// Returns vec4.yzxyy swizzling.
/// </summary>
public vec5 yzxyy => new vec5(y, z, x, y, y);
/// <summary>
/// Returns vec4.gbrgg swizzling (equivalent to vec4.yzxyy).
/// </summary>
public vec5 gbrgg => new vec5(y, z, x, y, y);
/// <summary>
/// Returns vec4.yzxyz swizzling.
/// </summary>
public vec5 yzxyz => new vec5(y, z, x, y, z);
/// <summary>
/// Returns vec4.gbrgb swizzling (equivalent to vec4.yzxyz).
/// </summary>
public vec5 gbrgb => new vec5(y, z, x, y, z);
/// <summary>
/// Returns vec4.yzxyw swizzling.
/// </summary>
public vec5 yzxyw => new vec5(y, z, x, y, w);
/// <summary>
/// Returns vec4.gbrga swizzling (equivalent to vec4.yzxyw).
/// </summary>
public vec5 gbrga => new vec5(y, z, x, y, w);
/// <summary>
/// Returns vec4.yzxz swizzling.
/// </summary>
public vec4 yzxz => new vec4(y, z, x, z);
/// <summary>
/// Returns vec4.gbrb swizzling (equivalent to vec4.yzxz).
/// </summary>
public vec4 gbrb => new vec4(y, z, x, z);
/// <summary>
/// Returns vec4.yzxzx swizzling.
/// </summary>
public vec5 yzxzx => new vec5(y, z, x, z, x);
/// <summary>
/// Returns vec4.gbrbr swizzling (equivalent to vec4.yzxzx).
/// </summary>
public vec5 gbrbr => new vec5(y, z, x, z, x);
/// <summary>
/// Returns vec4.yzxzy swizzling.
/// </summary>
public vec5 yzxzy => new vec5(y, z, x, z, y);
/// <summary>
/// Returns vec4.gbrbg swizzling (equivalent to vec4.yzxzy).
/// </summary>
public vec5 gbrbg => new vec5(y, z, x, z, y);
/// <summary>
/// Returns vec4.yzxzz swizzling.
/// </summary>
public vec5 yzxzz => new vec5(y, z, x, z, z);
/// <summary>
/// Returns vec4.gbrbb swizzling (equivalent to vec4.yzxzz).
/// </summary>
public vec5 gbrbb => new vec5(y, z, x, z, z);
/// <summary>
/// Returns vec4.yzxzw swizzling.
/// </summary>
public vec5 yzxzw => new vec5(y, z, x, z, w);
/// <summary>
/// Returns vec4.gbrba swizzling (equivalent to vec4.yzxzw).
/// </summary>
public vec5 gbrba => new vec5(y, z, x, z, w);
/// <summary>
/// Returns vec4.yzxw swizzling.
/// </summary>
public vec4 yzxw => new vec4(y, z, x, w);
/// <summary>
/// Returns vec4.gbra swizzling (equivalent to vec4.yzxw).
/// </summary>
public vec4 gbra => new vec4(y, z, x, w);
/// <summary>
/// Returns vec4.yzxwx swizzling.
/// </summary>
public vec5 yzxwx => new vec5(y, z, x, w, x);
/// <summary>
/// Returns vec4.gbrar swizzling (equivalent to vec4.yzxwx).
/// </summary>
public vec5 gbrar => new vec5(y, z, x, w, x);
/// <summary>
/// Returns vec4.yzxwy swizzling.
/// </summary>
public vec5 yzxwy => new vec5(y, z, x, w, y);
/// <summary>
/// Returns vec4.gbrag swizzling (equivalent to vec4.yzxwy).
/// </summary>
public vec5 gbrag => new vec5(y, z, x, w, y);
/// <summary>
/// Returns vec4.yzxwz swizzling.
/// </summary>
public vec5 yzxwz => new vec5(y, z, x, w, z);
/// <summary>
/// Returns vec4.gbrab swizzling (equivalent to vec4.yzxwz).
/// </summary>
public vec5 gbrab => new vec5(y, z, x, w, z);
/// <summary>
/// Returns vec4.yzxww swizzling.
/// </summary>
public vec5 yzxww => new vec5(y, z, x, w, w);
/// <summary>
/// Returns vec4.gbraa swizzling (equivalent to vec4.yzxww).
/// </summary>
public vec5 gbraa => new vec5(y, z, x, w, w);
/// <summary>
/// Returns vec4.yzy swizzling.
/// </summary>
public vec3 yzy => new vec3(y, z, y);
/// <summary>
/// Returns vec4.gbg swizzling (equivalent to vec4.yzy).
/// </summary>
public vec3 gbg => new vec3(y, z, y);
/// <summary>
/// Returns vec4.yzyx swizzling.
/// </summary>
public vec4 yzyx => new vec4(y, z, y, x);
/// <summary>
/// Returns vec4.gbgr swizzling (equivalent to vec4.yzyx).
/// </summary>
public vec4 gbgr => new vec4(y, z, y, x);
/// <summary>
/// Returns vec4.yzyxx swizzling.
/// </summary>
public vec5 yzyxx => new vec5(y, z, y, x, x);
/// <summary>
/// Returns vec4.gbgrr swizzling (equivalent to vec4.yzyxx).
/// </summary>
public vec5 gbgrr => new vec5(y, z, y, x, x);
/// <summary>
/// Returns vec4.yzyxy swizzling.
/// </summary>
public vec5 yzyxy => new vec5(y, z, y, x, y);
/// <summary>
/// Returns vec4.gbgrg swizzling (equivalent to vec4.yzyxy).
/// </summary>
public vec5 gbgrg => new vec5(y, z, y, x, y);
/// <summary>
/// Returns vec4.yzyxz swizzling.
/// </summary>
public vec5 yzyxz => new vec5(y, z, y, x, z);
/// <summary>
/// Returns vec4.gbgrb swizzling (equivalent to vec4.yzyxz).
/// </summary>
public vec5 gbgrb => new vec5(y, z, y, x, z);
/// <summary>
/// Returns vec4.yzyxw swizzling.
/// </summary>
public vec5 yzyxw => new vec5(y, z, y, x, w);
/// <summary>
/// Returns vec4.gbgra swizzling (equivalent to vec4.yzyxw).
/// </summary>
public vec5 gbgra => new vec5(y, z, y, x, w);
/// <summary>
/// Returns vec4.yzyy swizzling.
/// </summary>
public vec4 yzyy => new vec4(y, z, y, y);
/// <summary>
/// Returns vec4.gbgg swizzling (equivalent to vec4.yzyy).
/// </summary>
public vec4 gbgg => new vec4(y, z, y, y);
/// <summary>
/// Returns vec4.yzyyx swizzling.
/// </summary>
public vec5 yzyyx => new vec5(y, z, y, y, x);
/// <summary>
/// Returns vec4.gbggr swizzling (equivalent to vec4.yzyyx).
/// </summary>
public vec5 gbggr => new vec5(y, z, y, y, x);
/// <summary>
/// Returns vec4.yzyyy swizzling.
/// </summary>
public vec5 yzyyy => new vec5(y, z, y, y, y);
/// <summary>
/// Returns vec4.gbggg swizzling (equivalent to vec4.yzyyy).
/// </summary>
public vec5 gbggg => new vec5(y, z, y, y, y);
/// <summary>
/// Returns vec4.yzyyz swizzling.
/// </summary>
public vec5 yzyyz => new vec5(y, z, y, y, z);
/// <summary>
/// Returns vec4.gbggb swizzling (equivalent to vec4.yzyyz).
/// </summary>
public vec5 gbggb => new vec5(y, z, y, y, z);
/// <summary>
/// Returns vec4.yzyyw swizzling.
/// </summary>
public vec5 yzyyw => new vec5(y, z, y, y, w);
/// <summary>
/// Returns vec4.gbgga swizzling (equivalent to vec4.yzyyw).
/// </summary>
public vec5 gbgga => new vec5(y, z, y, y, w);
/// <summary>
/// Returns vec4.yzyz swizzling.
/// </summary>
public vec4 yzyz => new vec4(y, z, y, z);
/// <summary>
/// Returns vec4.gbgb swizzling (equivalent to vec4.yzyz).
/// </summary>
public vec4 gbgb => new vec4(y, z, y, z);
/// <summary>
/// Returns vec4.yzyzx swizzling.
/// </summary>
public vec5 yzyzx => new vec5(y, z, y, z, x);
/// <summary>
/// Returns vec4.gbgbr swizzling (equivalent to vec4.yzyzx).
/// </summary>
public vec5 gbgbr => new vec5(y, z, y, z, x);
/// <summary>
/// Returns vec4.yzyzy swizzling.
/// </summary>
public vec5 yzyzy => new vec5(y, z, y, z, y);
/// <summary>
/// Returns vec4.gbgbg swizzling (equivalent to vec4.yzyzy).
/// </summary>
public vec5 gbgbg => new vec5(y, z, y, z, y);
/// <summary>
/// Returns vec4.yzyzz swizzling.
/// </summary>
public vec5 yzyzz => new vec5(y, z, y, z, z);
/// <summary>
/// Returns vec4.gbgbb swizzling (equivalent to vec4.yzyzz).
/// </summary>
public vec5 gbgbb => new vec5(y, z, y, z, z);
/// <summary>
/// Returns vec4.yzyzw swizzling.
/// </summary>
public vec5 yzyzw => new vec5(y, z, y, z, w);
/// <summary>
/// Returns vec4.gbgba swizzling (equivalent to vec4.yzyzw).
/// </summary>
public vec5 gbgba => new vec5(y, z, y, z, w);
/// <summary>
/// Returns vec4.yzyw swizzling.
/// </summary>
public vec4 yzyw => new vec4(y, z, y, w);
/// <summary>
/// Returns vec4.gbga swizzling (equivalent to vec4.yzyw).
/// </summary>
public vec4 gbga => new vec4(y, z, y, w);
/// <summary>
/// Returns vec4.yzywx swizzling.
/// </summary>
public vec5 yzywx => new vec5(y, z, y, w, x);
/// <summary>
/// Returns vec4.gbgar swizzling (equivalent to vec4.yzywx).
/// </summary>
public vec5 gbgar => new vec5(y, z, y, w, x);
/// <summary>
/// Returns vec4.yzywy swizzling.
/// </summary>
public vec5 yzywy => new vec5(y, z, y, w, y);
/// <summary>
/// Returns vec4.gbgag swizzling (equivalent to vec4.yzywy).
/// </summary>
public vec5 gbgag => new vec5(y, z, y, w, y);
/// <summary>
/// Returns vec4.yzywz swizzling.
/// </summary>
public vec5 yzywz => new vec5(y, z, y, w, z);
/// <summary>
/// Returns vec4.gbgab swizzling (equivalent to vec4.yzywz).
/// </summary>
public vec5 gbgab => new vec5(y, z, y, w, z);
/// <summary>
/// Returns vec4.yzyww swizzling.
/// </summary>
public vec5 yzyww => new vec5(y, z, y, w, w);
/// <summary>
/// Returns vec4.gbgaa swizzling (equivalent to vec4.yzyww).
/// </summary>
public vec5 gbgaa => new vec5(y, z, y, w, w);
/// <summary>
/// Returns vec4.yzz swizzling.
/// </summary>
public vec3 yzz => new vec3(y, z, z);
/// <summary>
/// Returns vec4.gbb swizzling (equivalent to vec4.yzz).
/// </summary>
public vec3 gbb => new vec3(y, z, z);
/// <summary>
/// Returns vec4.yzzx swizzling.
/// </summary>
public vec4 yzzx => new vec4(y, z, z, x);
/// <summary>
/// Returns vec4.gbbr swizzling (equivalent to vec4.yzzx).
/// </summary>
public vec4 gbbr => new vec4(y, z, z, x);
/// <summary>
/// Returns vec4.yzzxx swizzling.
/// </summary>
public vec5 yzzxx => new vec5(y, z, z, x, x);
/// <summary>
/// Returns vec4.gbbrr swizzling (equivalent to vec4.yzzxx).
/// </summary>
public vec5 gbbrr => new vec5(y, z, z, x, x);
/// <summary>
/// Returns vec4.yzzxy swizzling.
/// </summary>
public vec5 yzzxy => new vec5(y, z, z, x, y);
/// <summary>
/// Returns vec4.gbbrg swizzling (equivalent to vec4.yzzxy).
/// </summary>
public vec5 gbbrg => new vec5(y, z, z, x, y);
/// <summary>
/// Returns vec4.yzzxz swizzling.
/// </summary>
public vec5 yzzxz => new vec5(y, z, z, x, z);
/// <summary>
/// Returns vec4.gbbrb swizzling (equivalent to vec4.yzzxz).
/// </summary>
public vec5 gbbrb => new vec5(y, z, z, x, z);
/// <summary>
/// Returns vec4.yzzxw swizzling.
/// </summary>
public vec5 yzzxw => new vec5(y, z, z, x, w);
/// <summary>
/// Returns vec4.gbbra swizzling (equivalent to vec4.yzzxw).
/// </summary>
public vec5 gbbra => new vec5(y, z, z, x, w);
/// <summary>
/// Returns vec4.yzzy swizzling.
/// </summary>
public vec4 yzzy => new vec4(y, z, z, y);
/// <summary>
/// Returns vec4.gbbg swizzling (equivalent to vec4.yzzy).
/// </summary>
public vec4 gbbg => new vec4(y, z, z, y);
/// <summary>
/// Returns vec4.yzzyx swizzling.
/// </summary>
public vec5 yzzyx => new vec5(y, z, z, y, x);
/// <summary>
/// Returns vec4.gbbgr swizzling (equivalent to vec4.yzzyx).
/// </summary>
public vec5 gbbgr => new vec5(y, z, z, y, x);
/// <summary>
/// Returns vec4.yzzyy swizzling.
/// </summary>
public vec5 yzzyy => new vec5(y, z, z, y, y);
/// <summary>
/// Returns vec4.gbbgg swizzling (equivalent to vec4.yzzyy).
/// </summary>
public vec5 gbbgg => new vec5(y, z, z, y, y);
/// <summary>
/// Returns vec4.yzzyz swizzling.
/// </summary>
public vec5 yzzyz => new vec5(y, z, z, y, z);
/// <summary>
/// Returns vec4.gbbgb swizzling (equivalent to vec4.yzzyz).
/// </summary>
public vec5 gbbgb => new vec5(y, z, z, y, z);
/// <summary>
/// Returns vec4.yzzyw swizzling.
/// </summary>
public vec5 yzzyw => new vec5(y, z, z, y, w);
/// <summary>
/// Returns vec4.gbbga swizzling (equivalent to vec4.yzzyw).
/// </summary>
public vec5 gbbga => new vec5(y, z, z, y, w);
/// <summary>
/// Returns vec4.yzzz swizzling.
/// </summary>
public vec4 yzzz => new vec4(y, z, z, z);
/// <summary>
/// Returns vec4.gbbb swizzling (equivalent to vec4.yzzz).
/// </summary>
public vec4 gbbb => new vec4(y, z, z, z);
/// <summary>
/// Returns vec4.yzzzx swizzling.
/// </summary>
public vec5 yzzzx => new vec5(y, z, z, z, x);
/// <summary>
/// Returns vec4.gbbbr swizzling (equivalent to vec4.yzzzx).
/// </summary>
public vec5 gbbbr => new vec5(y, z, z, z, x);
/// <summary>
/// Returns vec4.yzzzy swizzling.
/// </summary>
public vec5 yzzzy => new vec5(y, z, z, z, y);
/// <summary>
/// Returns vec4.gbbbg swizzling (equivalent to vec4.yzzzy).
/// </summary>
public vec5 gbbbg => new vec5(y, z, z, z, y);
/// <summary>
/// Returns vec4.yzzzz swizzling.
/// </summary>
public vec5 yzzzz => new vec5(y, z, z, z, z);
/// <summary>
/// Returns vec4.gbbbb swizzling (equivalent to vec4.yzzzz).
/// </summary>
public vec5 gbbbb => new vec5(y, z, z, z, z);
/// <summary>
/// Returns vec4.yzzzw swizzling.
/// </summary>
public vec5 yzzzw => new vec5(y, z, z, z, w);
/// <summary>
/// Returns vec4.gbbba swizzling (equivalent to vec4.yzzzw).
/// </summary>
public vec5 gbbba => new vec5(y, z, z, z, w);
/// <summary>
/// Returns vec4.yzzw swizzling.
/// </summary>
public vec4 yzzw => new vec4(y, z, z, w);
/// <summary>
/// Returns vec4.gbba swizzling (equivalent to vec4.yzzw).
/// </summary>
public vec4 gbba => new vec4(y, z, z, w);
/// <summary>
/// Returns vec4.yzzwx swizzling.
/// </summary>
public vec5 yzzwx => new vec5(y, z, z, w, x);
/// <summary>
/// Returns vec4.gbbar swizzling (equivalent to vec4.yzzwx).
/// </summary>
public vec5 gbbar => new vec5(y, z, z, w, x);
/// <summary>
/// Returns vec4.yzzwy swizzling.
/// </summary>
public vec5 yzzwy => new vec5(y, z, z, w, y);
/// <summary>
/// Returns vec4.gbbag swizzling (equivalent to vec4.yzzwy).
/// </summary>
public vec5 gbbag => new vec5(y, z, z, w, y);
/// <summary>
/// Returns vec4.yzzwz swizzling.
/// </summary>
public vec5 yzzwz => new vec5(y, z, z, w, z);
/// <summary>
/// Returns vec4.gbbab swizzling (equivalent to vec4.yzzwz).
/// </summary>
public vec5 gbbab => new vec5(y, z, z, w, z);
/// <summary>
/// Returns vec4.yzzww swizzling.
/// </summary>
public vec5 yzzww => new vec5(y, z, z, w, w);
/// <summary>
/// Returns vec4.gbbaa swizzling (equivalent to vec4.yzzww).
/// </summary>
public vec5 gbbaa => new vec5(y, z, z, w, w);
/// <summary>
/// Returns vec4.yzw swizzling.
/// </summary>
public vec3 yzw => new vec3(y, z, w);
/// <summary>
/// Returns vec4.gba swizzling (equivalent to vec4.yzw).
/// </summary>
public vec3 gba => new vec3(y, z, w);
/// <summary>
/// Returns vec4.yzwx swizzling.
/// </summary>
public vec4 yzwx => new vec4(y, z, w, x);
/// <summary>
/// Returns vec4.gbar swizzling (equivalent to vec4.yzwx).
/// </summary>
public vec4 gbar => new vec4(y, z, w, x);
/// <summary>
/// Returns vec4.yzwxx swizzling.
/// </summary>
public vec5 yzwxx => new vec5(y, z, w, x, x);
/// <summary>
/// Returns vec4.gbarr swizzling (equivalent to vec4.yzwxx).
/// </summary>
public vec5 gbarr => new vec5(y, z, w, x, x);
/// <summary>
/// Returns vec4.yzwxy swizzling.
/// </summary>
public vec5 yzwxy => new vec5(y, z, w, x, y);
/// <summary>
/// Returns vec4.gbarg swizzling (equivalent to vec4.yzwxy).
/// </summary>
public vec5 gbarg => new vec5(y, z, w, x, y);
/// <summary>
/// Returns vec4.yzwxz swizzling.
/// </summary>
public vec5 yzwxz => new vec5(y, z, w, x, z);
/// <summary>
/// Returns vec4.gbarb swizzling (equivalent to vec4.yzwxz).
/// </summary>
public vec5 gbarb => new vec5(y, z, w, x, z);
/// <summary>
/// Returns vec4.yzwxw swizzling.
/// </summary>
public vec5 yzwxw => new vec5(y, z, w, x, w);
/// <summary>
/// Returns vec4.gbara swizzling (equivalent to vec4.yzwxw).
/// </summary>
public vec5 gbara => new vec5(y, z, w, x, w);
/// <summary>
/// Returns vec4.yzwy swizzling.
/// </summary>
public vec4 yzwy => new vec4(y, z, w, y);
/// <summary>
/// Returns vec4.gbag swizzling (equivalent to vec4.yzwy).
/// </summary>
public vec4 gbag => new vec4(y, z, w, y);
/// <summary>
/// Returns vec4.yzwyx swizzling.
/// </summary>
public vec5 yzwyx => new vec5(y, z, w, y, x);
/// <summary>
/// Returns vec4.gbagr swizzling (equivalent to vec4.yzwyx).
/// </summary>
public vec5 gbagr => new vec5(y, z, w, y, x);
/// <summary>
/// Returns vec4.yzwyy swizzling.
/// </summary>
public vec5 yzwyy => new vec5(y, z, w, y, y);
/// <summary>
/// Returns vec4.gbagg swizzling (equivalent to vec4.yzwyy).
/// </summary>
public vec5 gbagg => new vec5(y, z, w, y, y);
/// <summary>
/// Returns vec4.yzwyz swizzling.
/// </summary>
public vec5 yzwyz => new vec5(y, z, w, y, z);
/// <summary>
/// Returns vec4.gbagb swizzling (equivalent to vec4.yzwyz).
/// </summary>
public vec5 gbagb => new vec5(y, z, w, y, z);
/// <summary>
/// Returns vec4.yzwyw swizzling.
/// </summary>
public vec5 yzwyw => new vec5(y, z, w, y, w);
/// <summary>
/// Returns vec4.gbaga swizzling (equivalent to vec4.yzwyw).
/// </summary>
public vec5 gbaga => new vec5(y, z, w, y, w);
/// <summary>
/// Returns vec4.yzwz swizzling.
/// </summary>
public vec4 yzwz => new vec4(y, z, w, z);
/// <summary>
/// Returns vec4.gbab swizzling (equivalent to vec4.yzwz).
/// </summary>
public vec4 gbab => new vec4(y, z, w, z);
/// <summary>
/// Returns vec4.yzwzx swizzling.
/// </summary>
public vec5 yzwzx => new vec5(y, z, w, z, x);
/// <summary>
/// Returns vec4.gbabr swizzling (equivalent to vec4.yzwzx).
/// </summary>
public vec5 gbabr => new vec5(y, z, w, z, x);
/// <summary>
/// Returns vec4.yzwzy swizzling.
/// </summary>
public vec5 yzwzy => new vec5(y, z, w, z, y);
/// <summary>
/// Returns vec4.gbabg swizzling (equivalent to vec4.yzwzy).
/// </summary>
public vec5 gbabg => new vec5(y, z, w, z, y);
/// <summary>
/// Returns vec4.yzwzz swizzling.
/// </summary>
public vec5 yzwzz => new vec5(y, z, w, z, z);
/// <summary>
/// Returns vec4.gbabb swizzling (equivalent to vec4.yzwzz).
/// </summary>
public vec5 gbabb => new vec5(y, z, w, z, z);
/// <summary>
/// Returns vec4.yzwzw swizzling.
/// </summary>
public vec5 yzwzw => new vec5(y, z, w, z, w);
/// <summary>
/// Returns vec4.gbaba swizzling (equivalent to vec4.yzwzw).
/// </summary>
public vec5 gbaba => new vec5(y, z, w, z, w);
/// <summary>
/// Returns vec4.yzww swizzling.
/// </summary>
public vec4 yzww => new vec4(y, z, w, w);
/// <summary>
/// Returns vec4.gbaa swizzling (equivalent to vec4.yzww).
/// </summary>
public vec4 gbaa => new vec4(y, z, w, w);
/// <summary>
/// Returns vec4.yzwwx swizzling.
/// </summary>
public vec5 yzwwx => new vec5(y, z, w, w, x);
/// <summary>
/// Returns vec4.gbaar swizzling (equivalent to vec4.yzwwx).
/// </summary>
public vec5 gbaar => new vec5(y, z, w, w, x);
/// <summary>
/// Returns vec4.yzwwy swizzling.
/// </summary>
public vec5 yzwwy => new vec5(y, z, w, w, y);
/// <summary>
/// Returns vec4.gbaag swizzling (equivalent to vec4.yzwwy).
/// </summary>
public vec5 gbaag => new vec5(y, z, w, w, y);
/// <summary>
/// Returns vec4.yzwwz swizzling.
/// </summary>
public vec5 yzwwz => new vec5(y, z, w, w, z);
/// <summary>
/// Returns vec4.gbaab swizzling (equivalent to vec4.yzwwz).
/// </summary>
public vec5 gbaab => new vec5(y, z, w, w, z);
/// <summary>
/// Returns vec4.yzwww swizzling.
/// </summary>
public vec5 yzwww => new vec5(y, z, w, w, w);
/// <summary>
/// Returns vec4.gbaaa swizzling (equivalent to vec4.yzwww).
/// </summary>
public vec5 gbaaa => new vec5(y, z, w, w, w);
/// <summary>
/// Returns vec4.yw swizzling.
/// </summary>
public vec2 yw => new vec2(y, w);
/// <summary>
/// Returns vec4.ga swizzling (equivalent to vec4.yw).
/// </summary>
public vec2 ga => new vec2(y, w);
/// <summary>
/// Returns vec4.ywx swizzling.
/// </summary>
public vec3 ywx => new vec3(y, w, x);
/// <summary>
/// Returns vec4.gar swizzling (equivalent to vec4.ywx).
/// </summary>
public vec3 gar => new vec3(y, w, x);
/// <summary>
/// Returns vec4.ywxx swizzling.
/// </summary>
public vec4 ywxx => new vec4(y, w, x, x);
/// <summary>
/// Returns vec4.garr swizzling (equivalent to vec4.ywxx).
/// </summary>
public vec4 garr => new vec4(y, w, x, x);
/// <summary>
/// Returns vec4.ywxxx swizzling.
/// </summary>
public vec5 ywxxx => new vec5(y, w, x, x, x);
/// <summary>
/// Returns vec4.garrr swizzling (equivalent to vec4.ywxxx).
/// </summary>
public vec5 garrr => new vec5(y, w, x, x, x);
/// <summary>
/// Returns vec4.ywxxy swizzling.
/// </summary>
public vec5 ywxxy => new vec5(y, w, x, x, y);
/// <summary>
/// Returns vec4.garrg swizzling (equivalent to vec4.ywxxy).
/// </summary>
public vec5 garrg => new vec5(y, w, x, x, y);
/// <summary>
/// Returns vec4.ywxxz swizzling.
/// </summary>
public vec5 ywxxz => new vec5(y, w, x, x, z);
/// <summary>
/// Returns vec4.garrb swizzling (equivalent to vec4.ywxxz).
/// </summary>
public vec5 garrb => new vec5(y, w, x, x, z);
/// <summary>
/// Returns vec4.ywxxw swizzling.
/// </summary>
public vec5 ywxxw => new vec5(y, w, x, x, w);
/// <summary>
/// Returns vec4.garra swizzling (equivalent to vec4.ywxxw).
/// </summary>
public vec5 garra => new vec5(y, w, x, x, w);
/// <summary>
/// Returns vec4.ywxy swizzling.
/// </summary>
public vec4 ywxy => new vec4(y, w, x, y);
/// <summary>
/// Returns vec4.garg swizzling (equivalent to vec4.ywxy).
/// </summary>
public vec4 garg => new vec4(y, w, x, y);
/// <summary>
/// Returns vec4.ywxyx swizzling.
/// </summary>
public vec5 ywxyx => new vec5(y, w, x, y, x);
/// <summary>
/// Returns vec4.gargr swizzling (equivalent to vec4.ywxyx).
/// </summary>
public vec5 gargr => new vec5(y, w, x, y, x);
/// <summary>
/// Returns vec4.ywxyy swizzling.
/// </summary>
public vec5 ywxyy => new vec5(y, w, x, y, y);
/// <summary>
/// Returns vec4.gargg swizzling (equivalent to vec4.ywxyy).
/// </summary>
public vec5 gargg => new vec5(y, w, x, y, y);
/// <summary>
/// Returns vec4.ywxyz swizzling.
/// </summary>
public vec5 ywxyz => new vec5(y, w, x, y, z);
/// <summary>
/// Returns vec4.gargb swizzling (equivalent to vec4.ywxyz).
/// </summary>
public vec5 gargb => new vec5(y, w, x, y, z);
/// <summary>
/// Returns vec4.ywxyw swizzling.
/// </summary>
public vec5 ywxyw => new vec5(y, w, x, y, w);
/// <summary>
/// Returns vec4.garga swizzling (equivalent to vec4.ywxyw).
/// </summary>
public vec5 garga => new vec5(y, w, x, y, w);
/// <summary>
/// Returns vec4.ywxz swizzling.
/// </summary>
public vec4 ywxz => new vec4(y, w, x, z);
/// <summary>
/// Returns vec4.garb swizzling (equivalent to vec4.ywxz).
/// </summary>
public vec4 garb => new vec4(y, w, x, z);
/// <summary>
/// Returns vec4.ywxzx swizzling.
/// </summary>
public vec5 ywxzx => new vec5(y, w, x, z, x);
/// <summary>
/// Returns vec4.garbr swizzling (equivalent to vec4.ywxzx).
/// </summary>
public vec5 garbr => new vec5(y, w, x, z, x);
/// <summary>
/// Returns vec4.ywxzy swizzling.
/// </summary>
public vec5 ywxzy => new vec5(y, w, x, z, y);
/// <summary>
/// Returns vec4.garbg swizzling (equivalent to vec4.ywxzy).
/// </summary>
public vec5 garbg => new vec5(y, w, x, z, y);
/// <summary>
/// Returns vec4.ywxzz swizzling.
/// </summary>
public vec5 ywxzz => new vec5(y, w, x, z, z);
/// <summary>
/// Returns vec4.garbb swizzling (equivalent to vec4.ywxzz).
/// </summary>
public vec5 garbb => new vec5(y, w, x, z, z);
/// <summary>
/// Returns vec4.ywxzw swizzling.
/// </summary>
public vec5 ywxzw => new vec5(y, w, x, z, w);
/// <summary>
/// Returns vec4.garba swizzling (equivalent to vec4.ywxzw).
/// </summary>
public vec5 garba => new vec5(y, w, x, z, w);
/// <summary>
/// Returns vec4.ywxw swizzling.
/// </summary>
public vec4 ywxw => new vec4(y, w, x, w);
/// <summary>
/// Returns vec4.gara swizzling (equivalent to vec4.ywxw).
/// </summary>
public vec4 gara => new vec4(y, w, x, w);
/// <summary>
/// Returns vec4.ywxwx swizzling.
/// </summary>
public vec5 ywxwx => new vec5(y, w, x, w, x);
/// <summary>
/// Returns vec4.garar swizzling (equivalent to vec4.ywxwx).
/// </summary>
public vec5 garar => new vec5(y, w, x, w, x);
/// <summary>
/// Returns vec4.ywxwy swizzling.
/// </summary>
public vec5 ywxwy => new vec5(y, w, x, w, y);
/// <summary>
/// Returns vec4.garag swizzling (equivalent to vec4.ywxwy).
/// </summary>
public vec5 garag => new vec5(y, w, x, w, y);
/// <summary>
/// Returns vec4.ywxwz swizzling.
/// </summary>
public vec5 ywxwz => new vec5(y, w, x, w, z);
/// <summary>
/// Returns vec4.garab swizzling (equivalent to vec4.ywxwz).
/// </summary>
public vec5 garab => new vec5(y, w, x, w, z);
/// <summary>
/// Returns vec4.ywxww swizzling.
/// </summary>
public vec5 ywxww => new vec5(y, w, x, w, w);
/// <summary>
/// Returns vec4.garaa swizzling (equivalent to vec4.ywxww).
/// </summary>
public vec5 garaa => new vec5(y, w, x, w, w);
/// <summary>
/// Returns vec4.ywy swizzling.
/// </summary>
public vec3 ywy => new vec3(y, w, y);
/// <summary>
/// Returns vec4.gag swizzling (equivalent to vec4.ywy).
/// </summary>
public vec3 gag => new vec3(y, w, y);
/// <summary>
/// Returns vec4.ywyx swizzling.
/// </summary>
public vec4 ywyx => new vec4(y, w, y, x);
/// <summary>
/// Returns vec4.gagr swizzling (equivalent to vec4.ywyx).
/// </summary>
public vec4 gagr => new vec4(y, w, y, x);
/// <summary>
/// Returns vec4.ywyxx swizzling.
/// </summary>
public vec5 ywyxx => new vec5(y, w, y, x, x);
/// <summary>
/// Returns vec4.gagrr swizzling (equivalent to vec4.ywyxx).
/// </summary>
public vec5 gagrr => new vec5(y, w, y, x, x);
/// <summary>
/// Returns vec4.ywyxy swizzling.
/// </summary>
public vec5 ywyxy => new vec5(y, w, y, x, y);
/// <summary>
/// Returns vec4.gagrg swizzling (equivalent to vec4.ywyxy).
/// </summary>
public vec5 gagrg => new vec5(y, w, y, x, y);
/// <summary>
/// Returns vec4.ywyxz swizzling.
/// </summary>
public vec5 ywyxz => new vec5(y, w, y, x, z);
/// <summary>
/// Returns vec4.gagrb swizzling (equivalent to vec4.ywyxz).
/// </summary>
public vec5 gagrb => new vec5(y, w, y, x, z);
/// <summary>
/// Returns vec4.ywyxw swizzling.
/// </summary>
public vec5 ywyxw => new vec5(y, w, y, x, w);
/// <summary>
/// Returns vec4.gagra swizzling (equivalent to vec4.ywyxw).
/// </summary>
public vec5 gagra => new vec5(y, w, y, x, w);
/// <summary>
/// Returns vec4.ywyy swizzling.
/// </summary>
public vec4 ywyy => new vec4(y, w, y, y);
/// <summary>
/// Returns vec4.gagg swizzling (equivalent to vec4.ywyy).
/// </summary>
public vec4 gagg => new vec4(y, w, y, y);
/// <summary>
/// Returns vec4.ywyyx swizzling.
/// </summary>
public vec5 ywyyx => new vec5(y, w, y, y, x);
/// <summary>
/// Returns vec4.gaggr swizzling (equivalent to vec4.ywyyx).
/// </summary>
public vec5 gaggr => new vec5(y, w, y, y, x);
/// <summary>
/// Returns vec4.ywyyy swizzling.
/// </summary>
public vec5 ywyyy => new vec5(y, w, y, y, y);
/// <summary>
/// Returns vec4.gaggg swizzling (equivalent to vec4.ywyyy).
/// </summary>
public vec5 gaggg => new vec5(y, w, y, y, y);
/// <summary>
/// Returns vec4.ywyyz swizzling.
/// </summary>
public vec5 ywyyz => new vec5(y, w, y, y, z);
/// <summary>
/// Returns vec4.gaggb swizzling (equivalent to vec4.ywyyz).
/// </summary>
public vec5 gaggb => new vec5(y, w, y, y, z);
/// <summary>
/// Returns vec4.ywyyw swizzling.
/// </summary>
public vec5 ywyyw => new vec5(y, w, y, y, w);
/// <summary>
/// Returns vec4.gagga swizzling (equivalent to vec4.ywyyw).
/// </summary>
public vec5 gagga => new vec5(y, w, y, y, w);
/// <summary>
/// Returns vec4.ywyz swizzling.
/// </summary>
public vec4 ywyz => new vec4(y, w, y, z);
/// <summary>
/// Returns vec4.gagb swizzling (equivalent to vec4.ywyz).
/// </summary>
public vec4 gagb => new vec4(y, w, y, z);
/// <summary>
/// Returns vec4.ywyzx swizzling.
/// </summary>
public vec5 ywyzx => new vec5(y, w, y, z, x);
/// <summary>
/// Returns vec4.gagbr swizzling (equivalent to vec4.ywyzx).
/// </summary>
public vec5 gagbr => new vec5(y, w, y, z, x);
/// <summary>
/// Returns vec4.ywyzy swizzling.
/// </summary>
public vec5 ywyzy => new vec5(y, w, y, z, y);
/// <summary>
/// Returns vec4.gagbg swizzling (equivalent to vec4.ywyzy).
/// </summary>
public vec5 gagbg => new vec5(y, w, y, z, y);
/// <summary>
/// Returns vec4.ywyzz swizzling.
/// </summary>
public vec5 ywyzz => new vec5(y, w, y, z, z);
/// <summary>
/// Returns vec4.gagbb swizzling (equivalent to vec4.ywyzz).
/// </summary>
public vec5 gagbb => new vec5(y, w, y, z, z);
/// <summary>
/// Returns vec4.ywyzw swizzling.
/// </summary>
public vec5 ywyzw => new vec5(y, w, y, z, w);
/// <summary>
/// Returns vec4.gagba swizzling (equivalent to vec4.ywyzw).
/// </summary>
public vec5 gagba => new vec5(y, w, y, z, w);
/// <summary>
/// Returns vec4.ywyw swizzling.
/// </summary>
public vec4 ywyw => new vec4(y, w, y, w);
/// <summary>
/// Returns vec4.gaga swizzling (equivalent to vec4.ywyw).
/// </summary>
public vec4 gaga => new vec4(y, w, y, w);
/// <summary>
/// Returns vec4.ywywx swizzling.
/// </summary>
public vec5 ywywx => new vec5(y, w, y, w, x);
/// <summary>
/// Returns vec4.gagar swizzling (equivalent to vec4.ywywx).
/// </summary>
public vec5 gagar => new vec5(y, w, y, w, x);
/// <summary>
/// Returns vec4.ywywy swizzling.
/// </summary>
public vec5 ywywy => new vec5(y, w, y, w, y);
/// <summary>
/// Returns vec4.gagag swizzling (equivalent to vec4.ywywy).
/// </summary>
public vec5 gagag => new vec5(y, w, y, w, y);
/// <summary>
/// Returns vec4.ywywz swizzling.
/// </summary>
public vec5 ywywz => new vec5(y, w, y, w, z);
/// <summary>
/// Returns vec4.gagab swizzling (equivalent to vec4.ywywz).
/// </summary>
public vec5 gagab => new vec5(y, w, y, w, z);
/// <summary>
/// Returns vec4.ywyww swizzling.
/// </summary>
public vec5 ywyww => new vec5(y, w, y, w, w);
/// <summary>
/// Returns vec4.gagaa swizzling (equivalent to vec4.ywyww).
/// </summary>
public vec5 gagaa => new vec5(y, w, y, w, w);
/// <summary>
/// Returns vec4.ywz swizzling.
/// </summary>
public vec3 ywz => new vec3(y, w, z);
/// <summary>
/// Returns vec4.gab swizzling (equivalent to vec4.ywz).
/// </summary>
public vec3 gab => new vec3(y, w, z);
/// <summary>
/// Returns vec4.ywzx swizzling.
/// </summary>
public vec4 ywzx => new vec4(y, w, z, x);
/// <summary>
/// Returns vec4.gabr swizzling (equivalent to vec4.ywzx).
/// </summary>
public vec4 gabr => new vec4(y, w, z, x);
/// <summary>
/// Returns vec4.ywzxx swizzling.
/// </summary>
public vec5 ywzxx => new vec5(y, w, z, x, x);
/// <summary>
/// Returns vec4.gabrr swizzling (equivalent to vec4.ywzxx).
/// </summary>
public vec5 gabrr => new vec5(y, w, z, x, x);
/// <summary>
/// Returns vec4.ywzxy swizzling.
/// </summary>
public vec5 ywzxy => new vec5(y, w, z, x, y);
/// <summary>
/// Returns vec4.gabrg swizzling (equivalent to vec4.ywzxy).
/// </summary>
public vec5 gabrg => new vec5(y, w, z, x, y);
/// <summary>
/// Returns vec4.ywzxz swizzling.
/// </summary>
public vec5 ywzxz => new vec5(y, w, z, x, z);
/// <summary>
/// Returns vec4.gabrb swizzling (equivalent to vec4.ywzxz).
/// </summary>
public vec5 gabrb => new vec5(y, w, z, x, z);
/// <summary>
/// Returns vec4.ywzxw swizzling.
/// </summary>
public vec5 ywzxw => new vec5(y, w, z, x, w);
/// <summary>
/// Returns vec4.gabra swizzling (equivalent to vec4.ywzxw).
/// </summary>
public vec5 gabra => new vec5(y, w, z, x, w);
/// <summary>
/// Returns vec4.ywzy swizzling.
/// </summary>
public vec4 ywzy => new vec4(y, w, z, y);
/// <summary>
/// Returns vec4.gabg swizzling (equivalent to vec4.ywzy).
/// </summary>
public vec4 gabg => new vec4(y, w, z, y);
/// <summary>
/// Returns vec4.ywzyx swizzling.
/// </summary>
public vec5 ywzyx => new vec5(y, w, z, y, x);
/// <summary>
/// Returns vec4.gabgr swizzling (equivalent to vec4.ywzyx).
/// </summary>
public vec5 gabgr => new vec5(y, w, z, y, x);
/// <summary>
/// Returns vec4.ywzyy swizzling.
/// </summary>
public vec5 ywzyy => new vec5(y, w, z, y, y);
/// <summary>
/// Returns vec4.gabgg swizzling (equivalent to vec4.ywzyy).
/// </summary>
public vec5 gabgg => new vec5(y, w, z, y, y);
/// <summary>
/// Returns vec4.ywzyz swizzling.
/// </summary>
public vec5 ywzyz => new vec5(y, w, z, y, z);
/// <summary>
/// Returns vec4.gabgb swizzling (equivalent to vec4.ywzyz).
/// </summary>
public vec5 gabgb => new vec5(y, w, z, y, z);
/// <summary>
/// Returns vec4.ywzyw swizzling.
/// </summary>
public vec5 ywzyw => new vec5(y, w, z, y, w);
/// <summary>
/// Returns vec4.gabga swizzling (equivalent to vec4.ywzyw).
/// </summary>
public vec5 gabga => new vec5(y, w, z, y, w);
/// <summary>
/// Returns vec4.ywzz swizzling.
/// </summary>
public vec4 ywzz => new vec4(y, w, z, z);
/// <summary>
/// Returns vec4.gabb swizzling (equivalent to vec4.ywzz).
/// </summary>
public vec4 gabb => new vec4(y, w, z, z);
/// <summary>
/// Returns vec4.ywzzx swizzling.
/// </summary>
public vec5 ywzzx => new vec5(y, w, z, z, x);
/// <summary>
/// Returns vec4.gabbr swizzling (equivalent to vec4.ywzzx).
/// </summary>
public vec5 gabbr => new vec5(y, w, z, z, x);
/// <summary>
/// Returns vec4.ywzzy swizzling.
/// </summary>
public vec5 ywzzy => new vec5(y, w, z, z, y);
/// <summary>
/// Returns vec4.gabbg swizzling (equivalent to vec4.ywzzy).
/// </summary>
public vec5 gabbg => new vec5(y, w, z, z, y);
/// <summary>
/// Returns vec4.ywzzz swizzling.
/// </summary>
public vec5 ywzzz => new vec5(y, w, z, z, z);
/// <summary>
/// Returns vec4.gabbb swizzling (equivalent to vec4.ywzzz).
/// </summary>
public vec5 gabbb => new vec5(y, w, z, z, z);
/// <summary>
/// Returns vec4.ywzzw swizzling.
/// </summary>
public vec5 ywzzw => new vec5(y, w, z, z, w);
/// <summary>
/// Returns vec4.gabba swizzling (equivalent to vec4.ywzzw).
/// </summary>
public vec5 gabba => new vec5(y, w, z, z, w);
/// <summary>
/// Returns vec4.ywzw swizzling.
/// </summary>
public vec4 ywzw => new vec4(y, w, z, w);
/// <summary>
/// Returns vec4.gaba swizzling (equivalent to vec4.ywzw).
/// </summary>
public vec4 gaba => new vec4(y, w, z, w);
/// <summary>
/// Returns vec4.ywzwx swizzling.
/// </summary>
public vec5 ywzwx => new vec5(y, w, z, w, x);
/// <summary>
/// Returns vec4.gabar swizzling (equivalent to vec4.ywzwx).
/// </summary>
public vec5 gabar => new vec5(y, w, z, w, x);
/// <summary>
/// Returns vec4.ywzwy swizzling.
/// </summary>
public vec5 ywzwy => new vec5(y, w, z, w, y);
/// <summary>
/// Returns vec4.gabag swizzling (equivalent to vec4.ywzwy).
/// </summary>
public vec5 gabag => new vec5(y, w, z, w, y);
/// <summary>
/// Returns vec4.ywzwz swizzling.
/// </summary>
public vec5 ywzwz => new vec5(y, w, z, w, z);
/// <summary>
/// Returns vec4.gabab swizzling (equivalent to vec4.ywzwz).
/// </summary>
public vec5 gabab => new vec5(y, w, z, w, z);
/// <summary>
/// Returns vec4.ywzww swizzling.
/// </summary>
public vec5 ywzww => new vec5(y, w, z, w, w);
/// <summary>
/// Returns vec4.gabaa swizzling (equivalent to vec4.ywzww).
/// </summary>
public vec5 gabaa => new vec5(y, w, z, w, w);
/// <summary>
/// Returns vec4.yww swizzling.
/// </summary>
public vec3 yww => new vec3(y, w, w);
/// <summary>
/// Returns vec4.gaa swizzling (equivalent to vec4.yww).
/// </summary>
public vec3 gaa => new vec3(y, w, w);
/// <summary>
/// Returns vec4.ywwx swizzling.
/// </summary>
public vec4 ywwx => new vec4(y, w, w, x);
/// <summary>
/// Returns vec4.gaar swizzling (equivalent to vec4.ywwx).
/// </summary>
public vec4 gaar => new vec4(y, w, w, x);
/// <summary>
/// Returns vec4.ywwxx swizzling.
/// </summary>
public vec5 ywwxx => new vec5(y, w, w, x, x);
/// <summary>
/// Returns vec4.gaarr swizzling (equivalent to vec4.ywwxx).
/// </summary>
public vec5 gaarr => new vec5(y, w, w, x, x);
/// <summary>
/// Returns vec4.ywwxy swizzling.
/// </summary>
public vec5 ywwxy => new vec5(y, w, w, x, y);
/// <summary>
/// Returns vec4.gaarg swizzling (equivalent to vec4.ywwxy).
/// </summary>
public vec5 gaarg => new vec5(y, w, w, x, y);
/// <summary>
/// Returns vec4.ywwxz swizzling.
/// </summary>
public vec5 ywwxz => new vec5(y, w, w, x, z);
/// <summary>
/// Returns vec4.gaarb swizzling (equivalent to vec4.ywwxz).
/// </summary>
public vec5 gaarb => new vec5(y, w, w, x, z);
/// <summary>
/// Returns vec4.ywwxw swizzling.
/// </summary>
public vec5 ywwxw => new vec5(y, w, w, x, w);
/// <summary>
/// Returns vec4.gaara swizzling (equivalent to vec4.ywwxw).
/// </summary>
public vec5 gaara => new vec5(y, w, w, x, w);
/// <summary>
/// Returns vec4.ywwy swizzling.
/// </summary>
public vec4 ywwy => new vec4(y, w, w, y);
/// <summary>
/// Returns vec4.gaag swizzling (equivalent to vec4.ywwy).
/// </summary>
public vec4 gaag => new vec4(y, w, w, y);
/// <summary>
/// Returns vec4.ywwyx swizzling.
/// </summary>
public vec5 ywwyx => new vec5(y, w, w, y, x);
/// <summary>
/// Returns vec4.gaagr swizzling (equivalent to vec4.ywwyx).
/// </summary>
public vec5 gaagr => new vec5(y, w, w, y, x);
/// <summary>
/// Returns vec4.ywwyy swizzling.
/// </summary>
public vec5 ywwyy => new vec5(y, w, w, y, y);
/// <summary>
/// Returns vec4.gaagg swizzling (equivalent to vec4.ywwyy).
/// </summary>
public vec5 gaagg => new vec5(y, w, w, y, y);
/// <summary>
/// Returns vec4.ywwyz swizzling.
/// </summary>
public vec5 ywwyz => new vec5(y, w, w, y, z);
/// <summary>
/// Returns vec4.gaagb swizzling (equivalent to vec4.ywwyz).
/// </summary>
public vec5 gaagb => new vec5(y, w, w, y, z);
/// <summary>
/// Returns vec4.ywwyw swizzling.
/// </summary>
public vec5 ywwyw => new vec5(y, w, w, y, w);
/// <summary>
/// Returns vec4.gaaga swizzling (equivalent to vec4.ywwyw).
/// </summary>
public vec5 gaaga => new vec5(y, w, w, y, w);
/// <summary>
/// Returns vec4.ywwz swizzling.
/// </summary>
public vec4 ywwz => new vec4(y, w, w, z);
/// <summary>
/// Returns vec4.gaab swizzling (equivalent to vec4.ywwz).
/// </summary>
public vec4 gaab => new vec4(y, w, w, z);
/// <summary>
/// Returns vec4.ywwzx swizzling.
/// </summary>
public vec5 ywwzx => new vec5(y, w, w, z, x);
/// <summary>
/// Returns vec4.gaabr swizzling (equivalent to vec4.ywwzx).
/// </summary>
public vec5 gaabr => new vec5(y, w, w, z, x);
/// <summary>
/// Returns vec4.ywwzy swizzling.
/// </summary>
public vec5 ywwzy => new vec5(y, w, w, z, y);
/// <summary>
/// Returns vec4.gaabg swizzling (equivalent to vec4.ywwzy).
/// </summary>
public vec5 gaabg => new vec5(y, w, w, z, y);
/// <summary>
/// Returns vec4.ywwzz swizzling.
/// </summary>
public vec5 ywwzz => new vec5(y, w, w, z, z);
/// <summary>
/// Returns vec4.gaabb swizzling (equivalent to vec4.ywwzz).
/// </summary>
public vec5 gaabb => new vec5(y, w, w, z, z);
/// <summary>
/// Returns vec4.ywwzw swizzling.
/// </summary>
public vec5 ywwzw => new vec5(y, w, w, z, w);
/// <summary>
/// Returns vec4.gaaba swizzling (equivalent to vec4.ywwzw).
/// </summary>
public vec5 gaaba => new vec5(y, w, w, z, w);
/// <summary>
/// Returns vec4.ywww swizzling.
/// </summary>
public vec4 ywww => new vec4(y, w, w, w);
/// <summary>
/// Returns vec4.gaaa swizzling (equivalent to vec4.ywww).
/// </summary>
public vec4 gaaa => new vec4(y, w, w, w);
/// <summary>
/// Returns vec4.ywwwx swizzling.
/// </summary>
public vec5 ywwwx => new vec5(y, w, w, w, x);
/// <summary>
/// Returns vec4.gaaar swizzling (equivalent to vec4.ywwwx).
/// </summary>
public vec5 gaaar => new vec5(y, w, w, w, x);
/// <summary>
/// Returns vec4.ywwwy swizzling.
/// </summary>
public vec5 ywwwy => new vec5(y, w, w, w, y);
/// <summary>
/// Returns vec4.gaaag swizzling (equivalent to vec4.ywwwy).
/// </summary>
public vec5 gaaag => new vec5(y, w, w, w, y);
/// <summary>
/// Returns vec4.ywwwz swizzling.
/// </summary>
public vec5 ywwwz => new vec5(y, w, w, w, z);
/// <summary>
/// Returns vec4.gaaab swizzling (equivalent to vec4.ywwwz).
/// </summary>
public vec5 gaaab => new vec5(y, w, w, w, z);
/// <summary>
/// Returns vec4.ywwww swizzling.
/// </summary>
public vec5 ywwww => new vec5(y, w, w, w, w);
/// <summary>
/// Returns vec4.gaaaa swizzling (equivalent to vec4.ywwww).
/// </summary>
public vec5 gaaaa => new vec5(y, w, w, w, w);
/// <summary>
/// Returns vec4.zx swizzling.
/// </summary>
public vec2 zx => new vec2(z, x);
/// <summary>
/// Returns vec4.br swizzling (equivalent to vec4.zx).
/// </summary>
public vec2 br => new vec2(z, x);
/// <summary>
/// Returns vec4.zxx swizzling.
/// </summary>
public vec3 zxx => new vec3(z, x, x);
/// <summary>
/// Returns vec4.brr swizzling (equivalent to vec4.zxx).
/// </summary>
public vec3 brr => new vec3(z, x, x);
/// <summary>
/// Returns vec4.zxxx swizzling.
/// </summary>
public vec4 zxxx => new vec4(z, x, x, x);
/// <summary>
/// Returns vec4.brrr swizzling (equivalent to vec4.zxxx).
/// </summary>
public vec4 brrr => new vec4(z, x, x, x);
/// <summary>
/// Returns vec4.zxxxx swizzling.
/// </summary>
public vec5 zxxxx => new vec5(z, x, x, x, x);
/// <summary>
/// Returns vec4.brrrr swizzling (equivalent to vec4.zxxxx).
/// </summary>
public vec5 brrrr => new vec5(z, x, x, x, x);
/// <summary>
/// Returns vec4.zxxxy swizzling.
/// </summary>
public vec5 zxxxy => new vec5(z, x, x, x, y);
/// <summary>
/// Returns vec4.brrrg swizzling (equivalent to vec4.zxxxy).
/// </summary>
public vec5 brrrg => new vec5(z, x, x, x, y);
/// <summary>
/// Returns vec4.zxxxz swizzling.
/// </summary>
public vec5 zxxxz => new vec5(z, x, x, x, z);
/// <summary>
/// Returns vec4.brrrb swizzling (equivalent to vec4.zxxxz).
/// </summary>
public vec5 brrrb => new vec5(z, x, x, x, z);
/// <summary>
/// Returns vec4.zxxxw swizzling.
/// </summary>
public vec5 zxxxw => new vec5(z, x, x, x, w);
/// <summary>
/// Returns vec4.brrra swizzling (equivalent to vec4.zxxxw).
/// </summary>
public vec5 brrra => new vec5(z, x, x, x, w);
/// <summary>
/// Returns vec4.zxxy swizzling.
/// </summary>
public vec4 zxxy => new vec4(z, x, x, y);
/// <summary>
/// Returns vec4.brrg swizzling (equivalent to vec4.zxxy).
/// </summary>
public vec4 brrg => new vec4(z, x, x, y);
/// <summary>
/// Returns vec4.zxxyx swizzling.
/// </summary>
public vec5 zxxyx => new vec5(z, x, x, y, x);
/// <summary>
/// Returns vec4.brrgr swizzling (equivalent to vec4.zxxyx).
/// </summary>
public vec5 brrgr => new vec5(z, x, x, y, x);
/// <summary>
/// Returns vec4.zxxyy swizzling.
/// </summary>
public vec5 zxxyy => new vec5(z, x, x, y, y);
/// <summary>
/// Returns vec4.brrgg swizzling (equivalent to vec4.zxxyy).
/// </summary>
public vec5 brrgg => new vec5(z, x, x, y, y);
/// <summary>
/// Returns vec4.zxxyz swizzling.
/// </summary>
public vec5 zxxyz => new vec5(z, x, x, y, z);
/// <summary>
/// Returns vec4.brrgb swizzling (equivalent to vec4.zxxyz).
/// </summary>
public vec5 brrgb => new vec5(z, x, x, y, z);
/// <summary>
/// Returns vec4.zxxyw swizzling.
/// </summary>
public vec5 zxxyw => new vec5(z, x, x, y, w);
/// <summary>
/// Returns vec4.brrga swizzling (equivalent to vec4.zxxyw).
/// </summary>
public vec5 brrga => new vec5(z, x, x, y, w);
/// <summary>
/// Returns vec4.zxxz swizzling.
/// </summary>
public vec4 zxxz => new vec4(z, x, x, z);
/// <summary>
/// Returns vec4.brrb swizzling (equivalent to vec4.zxxz).
/// </summary>
public vec4 brrb => new vec4(z, x, x, z);
/// <summary>
/// Returns vec4.zxxzx swizzling.
/// </summary>
public vec5 zxxzx => new vec5(z, x, x, z, x);
/// <summary>
/// Returns vec4.brrbr swizzling (equivalent to vec4.zxxzx).
/// </summary>
public vec5 brrbr => new vec5(z, x, x, z, x);
/// <summary>
/// Returns vec4.zxxzy swizzling.
/// </summary>
public vec5 zxxzy => new vec5(z, x, x, z, y);
/// <summary>
/// Returns vec4.brrbg swizzling (equivalent to vec4.zxxzy).
/// </summary>
public vec5 brrbg => new vec5(z, x, x, z, y);
/// <summary>
/// Returns vec4.zxxzz swizzling.
/// </summary>
public vec5 zxxzz => new vec5(z, x, x, z, z);
/// <summary>
/// Returns vec4.brrbb swizzling (equivalent to vec4.zxxzz).
/// </summary>
public vec5 brrbb => new vec5(z, x, x, z, z);
/// <summary>
/// Returns vec4.zxxzw swizzling.
/// </summary>
public vec5 zxxzw => new vec5(z, x, x, z, w);
/// <summary>
/// Returns vec4.brrba swizzling (equivalent to vec4.zxxzw).
/// </summary>
public vec5 brrba => new vec5(z, x, x, z, w);
/// <summary>
/// Returns vec4.zxxw swizzling.
/// </summary>
public vec4 zxxw => new vec4(z, x, x, w);
/// <summary>
/// Returns vec4.brra swizzling (equivalent to vec4.zxxw).
/// </summary>
public vec4 brra => new vec4(z, x, x, w);
/// <summary>
/// Returns vec4.zxxwx swizzling.
/// </summary>
public vec5 zxxwx => new vec5(z, x, x, w, x);
/// <summary>
/// Returns vec4.brrar swizzling (equivalent to vec4.zxxwx).
/// </summary>
public vec5 brrar => new vec5(z, x, x, w, x);
/// <summary>
/// Returns vec4.zxxwy swizzling.
/// </summary>
public vec5 zxxwy => new vec5(z, x, x, w, y);
/// <summary>
/// Returns vec4.brrag swizzling (equivalent to vec4.zxxwy).
/// </summary>
public vec5 brrag => new vec5(z, x, x, w, y);
/// <summary>
/// Returns vec4.zxxwz swizzling.
/// </summary>
public vec5 zxxwz => new vec5(z, x, x, w, z);
/// <summary>
/// Returns vec4.brrab swizzling (equivalent to vec4.zxxwz).
/// </summary>
public vec5 brrab => new vec5(z, x, x, w, z);
/// <summary>
/// Returns vec4.zxxww swizzling.
/// </summary>
public vec5 zxxww => new vec5(z, x, x, w, w);
/// <summary>
/// Returns vec4.brraa swizzling (equivalent to vec4.zxxww).
/// </summary>
public vec5 brraa => new vec5(z, x, x, w, w);
/// <summary>
/// Returns vec4.zxy swizzling.
/// </summary>
public vec3 zxy => new vec3(z, x, y);
/// <summary>
/// Returns vec4.brg swizzling (equivalent to vec4.zxy).
/// </summary>
public vec3 brg => new vec3(z, x, y);
/// <summary>
/// Returns vec4.zxyx swizzling.
/// </summary>
public vec4 zxyx => new vec4(z, x, y, x);
/// <summary>
/// Returns vec4.brgr swizzling (equivalent to vec4.zxyx).
/// </summary>
public vec4 brgr => new vec4(z, x, y, x);
/// <summary>
/// Returns vec4.zxyxx swizzling.
/// </summary>
public vec5 zxyxx => new vec5(z, x, y, x, x);
/// <summary>
/// Returns vec4.brgrr swizzling (equivalent to vec4.zxyxx).
/// </summary>
public vec5 brgrr => new vec5(z, x, y, x, x);
/// <summary>
/// Returns vec4.zxyxy swizzling.
/// </summary>
public vec5 zxyxy => new vec5(z, x, y, x, y);
/// <summary>
/// Returns vec4.brgrg swizzling (equivalent to vec4.zxyxy).
/// </summary>
public vec5 brgrg => new vec5(z, x, y, x, y);
/// <summary>
/// Returns vec4.zxyxz swizzling.
/// </summary>
public vec5 zxyxz => new vec5(z, x, y, x, z);
/// <summary>
/// Returns vec4.brgrb swizzling (equivalent to vec4.zxyxz).
/// </summary>
public vec5 brgrb => new vec5(z, x, y, x, z);
/// <summary>
/// Returns vec4.zxyxw swizzling.
/// </summary>
public vec5 zxyxw => new vec5(z, x, y, x, w);
/// <summary>
/// Returns vec4.brgra swizzling (equivalent to vec4.zxyxw).
/// </summary>
public vec5 brgra => new vec5(z, x, y, x, w);
/// <summary>
/// Returns vec4.zxyy swizzling.
/// </summary>
public vec4 zxyy => new vec4(z, x, y, y);
/// <summary>
/// Returns vec4.brgg swizzling (equivalent to vec4.zxyy).
/// </summary>
public vec4 brgg => new vec4(z, x, y, y);
/// <summary>
/// Returns vec4.zxyyx swizzling.
/// </summary>
public vec5 zxyyx => new vec5(z, x, y, y, x);
/// <summary>
/// Returns vec4.brggr swizzling (equivalent to vec4.zxyyx).
/// </summary>
public vec5 brggr => new vec5(z, x, y, y, x);
/// <summary>
/// Returns vec4.zxyyy swizzling.
/// </summary>
public vec5 zxyyy => new vec5(z, x, y, y, y);
/// <summary>
/// Returns vec4.brggg swizzling (equivalent to vec4.zxyyy).
/// </summary>
public vec5 brggg => new vec5(z, x, y, y, y);
/// <summary>
/// Returns vec4.zxyyz swizzling.
/// </summary>
public vec5 zxyyz => new vec5(z, x, y, y, z);
/// <summary>
/// Returns vec4.brggb swizzling (equivalent to vec4.zxyyz).
/// </summary>
public vec5 brggb => new vec5(z, x, y, y, z);
/// <summary>
/// Returns vec4.zxyyw swizzling.
/// </summary>
public vec5 zxyyw => new vec5(z, x, y, y, w);
/// <summary>
/// Returns vec4.brgga swizzling (equivalent to vec4.zxyyw).
/// </summary>
public vec5 brgga => new vec5(z, x, y, y, w);
/// <summary>
/// Returns vec4.zxyz swizzling.
/// </summary>
public vec4 zxyz => new vec4(z, x, y, z);
/// <summary>
/// Returns vec4.brgb swizzling (equivalent to vec4.zxyz).
/// </summary>
public vec4 brgb => new vec4(z, x, y, z);
/// <summary>
/// Returns vec4.zxyzx swizzling.
/// </summary>
public vec5 zxyzx => new vec5(z, x, y, z, x);
/// <summary>
/// Returns vec4.brgbr swizzling (equivalent to vec4.zxyzx).
/// </summary>
public vec5 brgbr => new vec5(z, x, y, z, x);
/// <summary>
/// Returns vec4.zxyzy swizzling.
/// </summary>
public vec5 zxyzy => new vec5(z, x, y, z, y);
/// <summary>
/// Returns vec4.brgbg swizzling (equivalent to vec4.zxyzy).
/// </summary>
public vec5 brgbg => new vec5(z, x, y, z, y);
/// <summary>
/// Returns vec4.zxyzz swizzling.
/// </summary>
public vec5 zxyzz => new vec5(z, x, y, z, z);
/// <summary>
/// Returns vec4.brgbb swizzling (equivalent to vec4.zxyzz).
/// </summary>
public vec5 brgbb => new vec5(z, x, y, z, z);
/// <summary>
/// Returns vec4.zxyzw swizzling.
/// </summary>
public vec5 zxyzw => new vec5(z, x, y, z, w);
/// <summary>
/// Returns vec4.brgba swizzling (equivalent to vec4.zxyzw).
/// </summary>
public vec5 brgba => new vec5(z, x, y, z, w);
/// <summary>
/// Returns vec4.zxyw swizzling.
/// </summary>
public vec4 zxyw => new vec4(z, x, y, w);
/// <summary>
/// Returns vec4.brga swizzling (equivalent to vec4.zxyw).
/// </summary>
public vec4 brga => new vec4(z, x, y, w);
/// <summary>
/// Returns vec4.zxywx swizzling.
/// </summary>
public vec5 zxywx => new vec5(z, x, y, w, x);
/// <summary>
/// Returns vec4.brgar swizzling (equivalent to vec4.zxywx).
/// </summary>
public vec5 brgar => new vec5(z, x, y, w, x);
/// <summary>
/// Returns vec4.zxywy swizzling.
/// </summary>
public vec5 zxywy => new vec5(z, x, y, w, y);
/// <summary>
/// Returns vec4.brgag swizzling (equivalent to vec4.zxywy).
/// </summary>
public vec5 brgag => new vec5(z, x, y, w, y);
/// <summary>
/// Returns vec4.zxywz swizzling.
/// </summary>
public vec5 zxywz => new vec5(z, x, y, w, z);
/// <summary>
/// Returns vec4.brgab swizzling (equivalent to vec4.zxywz).
/// </summary>
public vec5 brgab => new vec5(z, x, y, w, z);
/// <summary>
/// Returns vec4.zxyww swizzling.
/// </summary>
public vec5 zxyww => new vec5(z, x, y, w, w);
/// <summary>
/// Returns vec4.brgaa swizzling (equivalent to vec4.zxyww).
/// </summary>
public vec5 brgaa => new vec5(z, x, y, w, w);
/// <summary>
/// Returns vec4.zxz swizzling.
/// </summary>
public vec3 zxz => new vec3(z, x, z);
/// <summary>
/// Returns vec4.brb swizzling (equivalent to vec4.zxz).
/// </summary>
public vec3 brb => new vec3(z, x, z);
/// <summary>
/// Returns vec4.zxzx swizzling.
/// </summary>
public vec4 zxzx => new vec4(z, x, z, x);
/// <summary>
/// Returns vec4.brbr swizzling (equivalent to vec4.zxzx).
/// </summary>
public vec4 brbr => new vec4(z, x, z, x);
/// <summary>
/// Returns vec4.zxzxx swizzling.
/// </summary>
public vec5 zxzxx => new vec5(z, x, z, x, x);
/// <summary>
/// Returns vec4.brbrr swizzling (equivalent to vec4.zxzxx).
/// </summary>
public vec5 brbrr => new vec5(z, x, z, x, x);
/// <summary>
/// Returns vec4.zxzxy swizzling.
/// </summary>
public vec5 zxzxy => new vec5(z, x, z, x, y);
/// <summary>
/// Returns vec4.brbrg swizzling (equivalent to vec4.zxzxy).
/// </summary>
public vec5 brbrg => new vec5(z, x, z, x, y);
/// <summary>
/// Returns vec4.zxzxz swizzling.
/// </summary>
public vec5 zxzxz => new vec5(z, x, z, x, z);
/// <summary>
/// Returns vec4.brbrb swizzling (equivalent to vec4.zxzxz).
/// </summary>
public vec5 brbrb => new vec5(z, x, z, x, z);
/// <summary>
/// Returns vec4.zxzxw swizzling.
/// </summary>
public vec5 zxzxw => new vec5(z, x, z, x, w);
/// <summary>
/// Returns vec4.brbra swizzling (equivalent to vec4.zxzxw).
/// </summary>
public vec5 brbra => new vec5(z, x, z, x, w);
/// <summary>
/// Returns vec4.zxzy swizzling.
/// </summary>
public vec4 zxzy => new vec4(z, x, z, y);
/// <summary>
/// Returns vec4.brbg swizzling (equivalent to vec4.zxzy).
/// </summary>
public vec4 brbg => new vec4(z, x, z, y);
/// <summary>
/// Returns vec4.zxzyx swizzling.
/// </summary>
public vec5 zxzyx => new vec5(z, x, z, y, x);
/// <summary>
/// Returns vec4.brbgr swizzling (equivalent to vec4.zxzyx).
/// </summary>
public vec5 brbgr => new vec5(z, x, z, y, x);
/// <summary>
/// Returns vec4.zxzyy swizzling.
/// </summary>
public vec5 zxzyy => new vec5(z, x, z, y, y);
/// <summary>
/// Returns vec4.brbgg swizzling (equivalent to vec4.zxzyy).
/// </summary>
public vec5 brbgg => new vec5(z, x, z, y, y);
/// <summary>
/// Returns vec4.zxzyz swizzling.
/// </summary>
public vec5 zxzyz => new vec5(z, x, z, y, z);
/// <summary>
/// Returns vec4.brbgb swizzling (equivalent to vec4.zxzyz).
/// </summary>
public vec5 brbgb => new vec5(z, x, z, y, z);
/// <summary>
/// Returns vec4.zxzyw swizzling.
/// </summary>
public vec5 zxzyw => new vec5(z, x, z, y, w);
/// <summary>
/// Returns vec4.brbga swizzling (equivalent to vec4.zxzyw).
/// </summary>
public vec5 brbga => new vec5(z, x, z, y, w);
/// <summary>
/// Returns vec4.zxzz swizzling.
/// </summary>
public vec4 zxzz => new vec4(z, x, z, z);
/// <summary>
/// Returns vec4.brbb swizzling (equivalent to vec4.zxzz).
/// </summary>
public vec4 brbb => new vec4(z, x, z, z);
/// <summary>
/// Returns vec4.zxzzx swizzling.
/// </summary>
public vec5 zxzzx => new vec5(z, x, z, z, x);
/// <summary>
/// Returns vec4.brbbr swizzling (equivalent to vec4.zxzzx).
/// </summary>
public vec5 brbbr => new vec5(z, x, z, z, x);
/// <summary>
/// Returns vec4.zxzzy swizzling.
/// </summary>
public vec5 zxzzy => new vec5(z, x, z, z, y);
/// <summary>
/// Returns vec4.brbbg swizzling (equivalent to vec4.zxzzy).
/// </summary>
public vec5 brbbg => new vec5(z, x, z, z, y);
/// <summary>
/// Returns vec4.zxzzz swizzling.
/// </summary>
public vec5 zxzzz => new vec5(z, x, z, z, z);
/// <summary>
/// Returns vec4.brbbb swizzling (equivalent to vec4.zxzzz).
/// </summary>
public vec5 brbbb => new vec5(z, x, z, z, z);
/// <summary>
/// Returns vec4.zxzzw swizzling.
/// </summary>
public vec5 zxzzw => new vec5(z, x, z, z, w);
/// <summary>
/// Returns vec4.brbba swizzling (equivalent to vec4.zxzzw).
/// </summary>
public vec5 brbba => new vec5(z, x, z, z, w);
/// <summary>
/// Returns vec4.zxzw swizzling.
/// </summary>
public vec4 zxzw => new vec4(z, x, z, w);
/// <summary>
/// Returns vec4.brba swizzling (equivalent to vec4.zxzw).
/// </summary>
public vec4 brba => new vec4(z, x, z, w);
/// <summary>
/// Returns vec4.zxzwx swizzling.
/// </summary>
public vec5 zxzwx => new vec5(z, x, z, w, x);
/// <summary>
/// Returns vec4.brbar swizzling (equivalent to vec4.zxzwx).
/// </summary>
public vec5 brbar => new vec5(z, x, z, w, x);
/// <summary>
/// Returns vec4.zxzwy swizzling.
/// </summary>
public vec5 zxzwy => new vec5(z, x, z, w, y);
/// <summary>
/// Returns vec4.brbag swizzling (equivalent to vec4.zxzwy).
/// </summary>
public vec5 brbag => new vec5(z, x, z, w, y);
/// <summary>
/// Returns vec4.zxzwz swizzling.
/// </summary>
public vec5 zxzwz => new vec5(z, x, z, w, z);
/// <summary>
/// Returns vec4.brbab swizzling (equivalent to vec4.zxzwz).
/// </summary>
public vec5 brbab => new vec5(z, x, z, w, z);
/// <summary>
/// Returns vec4.zxzww swizzling.
/// </summary>
public vec5 zxzww => new vec5(z, x, z, w, w);
/// <summary>
/// Returns vec4.brbaa swizzling (equivalent to vec4.zxzww).
/// </summary>
public vec5 brbaa => new vec5(z, x, z, w, w);
/// <summary>
/// Returns vec4.zxw swizzling.
/// </summary>
public vec3 zxw => new vec3(z, x, w);
/// <summary>
/// Returns vec4.bra swizzling (equivalent to vec4.zxw).
/// </summary>
public vec3 bra => new vec3(z, x, w);
/// <summary>
/// Returns vec4.zxwx swizzling.
/// </summary>
public vec4 zxwx => new vec4(z, x, w, x);
/// <summary>
/// Returns vec4.brar swizzling (equivalent to vec4.zxwx).
/// </summary>
public vec4 brar => new vec4(z, x, w, x);
/// <summary>
/// Returns vec4.zxwxx swizzling.
/// </summary>
public vec5 zxwxx => new vec5(z, x, w, x, x);
/// <summary>
/// Returns vec4.brarr swizzling (equivalent to vec4.zxwxx).
/// </summary>
public vec5 brarr => new vec5(z, x, w, x, x);
/// <summary>
/// Returns vec4.zxwxy swizzling.
/// </summary>
public vec5 zxwxy => new vec5(z, x, w, x, y);
/// <summary>
/// Returns vec4.brarg swizzling (equivalent to vec4.zxwxy).
/// </summary>
public vec5 brarg => new vec5(z, x, w, x, y);
/// <summary>
/// Returns vec4.zxwxz swizzling.
/// </summary>
public vec5 zxwxz => new vec5(z, x, w, x, z);
/// <summary>
/// Returns vec4.brarb swizzling (equivalent to vec4.zxwxz).
/// </summary>
public vec5 brarb => new vec5(z, x, w, x, z);
/// <summary>
/// Returns vec4.zxwxw swizzling.
/// </summary>
public vec5 zxwxw => new vec5(z, x, w, x, w);
/// <summary>
/// Returns vec4.brara swizzling (equivalent to vec4.zxwxw).
/// </summary>
public vec5 brara => new vec5(z, x, w, x, w);
/// <summary>
/// Returns vec4.zxwy swizzling.
/// </summary>
public vec4 zxwy => new vec4(z, x, w, y);
/// <summary>
/// Returns vec4.brag swizzling (equivalent to vec4.zxwy).
/// </summary>
public vec4 brag => new vec4(z, x, w, y);
/// <summary>
/// Returns vec4.zxwyx swizzling.
/// </summary>
public vec5 zxwyx => new vec5(z, x, w, y, x);
/// <summary>
/// Returns vec4.bragr swizzling (equivalent to vec4.zxwyx).
/// </summary>
public vec5 bragr => new vec5(z, x, w, y, x);
/// <summary>
/// Returns vec4.zxwyy swizzling.
/// </summary>
public vec5 zxwyy => new vec5(z, x, w, y, y);
/// <summary>
/// Returns vec4.bragg swizzling (equivalent to vec4.zxwyy).
/// </summary>
public vec5 bragg => new vec5(z, x, w, y, y);
/// <summary>
/// Returns vec4.zxwyz swizzling.
/// </summary>
public vec5 zxwyz => new vec5(z, x, w, y, z);
/// <summary>
/// Returns vec4.bragb swizzling (equivalent to vec4.zxwyz).
/// </summary>
public vec5 bragb => new vec5(z, x, w, y, z);
/// <summary>
/// Returns vec4.zxwyw swizzling.
/// </summary>
public vec5 zxwyw => new vec5(z, x, w, y, w);
/// <summary>
/// Returns vec4.braga swizzling (equivalent to vec4.zxwyw).
/// </summary>
public vec5 braga => new vec5(z, x, w, y, w);
/// <summary>
/// Returns vec4.zxwz swizzling.
/// </summary>
public vec4 zxwz => new vec4(z, x, w, z);
/// <summary>
/// Returns vec4.brab swizzling (equivalent to vec4.zxwz).
/// </summary>
public vec4 brab => new vec4(z, x, w, z);
/// <summary>
/// Returns vec4.zxwzx swizzling.
/// </summary>
public vec5 zxwzx => new vec5(z, x, w, z, x);
/// <summary>
/// Returns vec4.brabr swizzling (equivalent to vec4.zxwzx).
/// </summary>
public vec5 brabr => new vec5(z, x, w, z, x);
/// <summary>
/// Returns vec4.zxwzy swizzling.
/// </summary>
public vec5 zxwzy => new vec5(z, x, w, z, y);
/// <summary>
/// Returns vec4.brabg swizzling (equivalent to vec4.zxwzy).
/// </summary>
public vec5 brabg => new vec5(z, x, w, z, y);
/// <summary>
/// Returns vec4.zxwzz swizzling.
/// </summary>
public vec5 zxwzz => new vec5(z, x, w, z, z);
/// <summary>
/// Returns vec4.brabb swizzling (equivalent to vec4.zxwzz).
/// </summary>
public vec5 brabb => new vec5(z, x, w, z, z);
/// <summary>
/// Returns vec4.zxwzw swizzling.
/// </summary>
public vec5 zxwzw => new vec5(z, x, w, z, w);
/// <summary>
/// Returns vec4.braba swizzling (equivalent to vec4.zxwzw).
/// </summary>
public vec5 braba => new vec5(z, x, w, z, w);
/// <summary>
/// Returns vec4.zxww swizzling.
/// </summary>
public vec4 zxww => new vec4(z, x, w, w);
/// <summary>
/// Returns vec4.braa swizzling (equivalent to vec4.zxww).
/// </summary>
public vec4 braa => new vec4(z, x, w, w);
/// <summary>
/// Returns vec4.zxwwx swizzling.
/// </summary>
public vec5 zxwwx => new vec5(z, x, w, w, x);
/// <summary>
/// Returns vec4.braar swizzling (equivalent to vec4.zxwwx).
/// </summary>
public vec5 braar => new vec5(z, x, w, w, x);
/// <summary>
/// Returns vec4.zxwwy swizzling.
/// </summary>
public vec5 zxwwy => new vec5(z, x, w, w, y);
/// <summary>
/// Returns vec4.braag swizzling (equivalent to vec4.zxwwy).
/// </summary>
public vec5 braag => new vec5(z, x, w, w, y);
/// <summary>
/// Returns vec4.zxwwz swizzling.
/// </summary>
public vec5 zxwwz => new vec5(z, x, w, w, z);
/// <summary>
/// Returns vec4.braab swizzling (equivalent to vec4.zxwwz).
/// </summary>
public vec5 braab => new vec5(z, x, w, w, z);
/// <summary>
/// Returns vec4.zxwww swizzling.
/// </summary>
public vec5 zxwww => new vec5(z, x, w, w, w);
/// <summary>
/// Returns vec4.braaa swizzling (equivalent to vec4.zxwww).
/// </summary>
public vec5 braaa => new vec5(z, x, w, w, w);
/// <summary>
/// Returns vec4.zy swizzling.
/// </summary>
public vec2 zy => new vec2(z, y);
/// <summary>
/// Returns vec4.bg swizzling (equivalent to vec4.zy).
/// </summary>
public vec2 bg => new vec2(z, y);
/// <summary>
/// Returns vec4.zyx swizzling.
/// </summary>
public vec3 zyx => new vec3(z, y, x);
/// <summary>
/// Returns vec4.bgr swizzling (equivalent to vec4.zyx).
/// </summary>
public vec3 bgr => new vec3(z, y, x);
/// <summary>
/// Returns vec4.zyxx swizzling.
/// </summary>
public vec4 zyxx => new vec4(z, y, x, x);
/// <summary>
/// Returns vec4.bgrr swizzling (equivalent to vec4.zyxx).
/// </summary>
public vec4 bgrr => new vec4(z, y, x, x);
/// <summary>
/// Returns vec4.zyxxx swizzling.
/// </summary>
public vec5 zyxxx => new vec5(z, y, x, x, x);
/// <summary>
/// Returns vec4.bgrrr swizzling (equivalent to vec4.zyxxx).
/// </summary>
public vec5 bgrrr => new vec5(z, y, x, x, x);
/// <summary>
/// Returns vec4.zyxxy swizzling.
/// </summary>
public vec5 zyxxy => new vec5(z, y, x, x, y);
/// <summary>
/// Returns vec4.bgrrg swizzling (equivalent to vec4.zyxxy).
/// </summary>
public vec5 bgrrg => new vec5(z, y, x, x, y);
/// <summary>
/// Returns vec4.zyxxz swizzling.
/// </summary>
public vec5 zyxxz => new vec5(z, y, x, x, z);
/// <summary>
/// Returns vec4.bgrrb swizzling (equivalent to vec4.zyxxz).
/// </summary>
public vec5 bgrrb => new vec5(z, y, x, x, z);
/// <summary>
/// Returns vec4.zyxxw swizzling.
/// </summary>
public vec5 zyxxw => new vec5(z, y, x, x, w);
/// <summary>
/// Returns vec4.bgrra swizzling (equivalent to vec4.zyxxw).
/// </summary>
public vec5 bgrra => new vec5(z, y, x, x, w);
/// <summary>
/// Returns vec4.zyxy swizzling.
/// </summary>
public vec4 zyxy => new vec4(z, y, x, y);
/// <summary>
/// Returns vec4.bgrg swizzling (equivalent to vec4.zyxy).
/// </summary>
public vec4 bgrg => new vec4(z, y, x, y);
/// <summary>
/// Returns vec4.zyxyx swizzling.
/// </summary>
public vec5 zyxyx => new vec5(z, y, x, y, x);
/// <summary>
/// Returns vec4.bgrgr swizzling (equivalent to vec4.zyxyx).
/// </summary>
public vec5 bgrgr => new vec5(z, y, x, y, x);
/// <summary>
/// Returns vec4.zyxyy swizzling.
/// </summary>
public vec5 zyxyy => new vec5(z, y, x, y, y);
/// <summary>
/// Returns vec4.bgrgg swizzling (equivalent to vec4.zyxyy).
/// </summary>
public vec5 bgrgg => new vec5(z, y, x, y, y);
/// <summary>
/// Returns vec4.zyxyz swizzling.
/// </summary>
public vec5 zyxyz => new vec5(z, y, x, y, z);
/// <summary>
/// Returns vec4.bgrgb swizzling (equivalent to vec4.zyxyz).
/// </summary>
public vec5 bgrgb => new vec5(z, y, x, y, z);
/// <summary>
/// Returns vec4.zyxyw swizzling.
/// </summary>
public vec5 zyxyw => new vec5(z, y, x, y, w);
/// <summary>
/// Returns vec4.bgrga swizzling (equivalent to vec4.zyxyw).
/// </summary>
public vec5 bgrga => new vec5(z, y, x, y, w);
/// <summary>
/// Returns vec4.zyxz swizzling.
/// </summary>
public vec4 zyxz => new vec4(z, y, x, z);
/// <summary>
/// Returns vec4.bgrb swizzling (equivalent to vec4.zyxz).
/// </summary>
public vec4 bgrb => new vec4(z, y, x, z);
/// <summary>
/// Returns vec4.zyxzx swizzling.
/// </summary>
public vec5 zyxzx => new vec5(z, y, x, z, x);
/// <summary>
/// Returns vec4.bgrbr swizzling (equivalent to vec4.zyxzx).
/// </summary>
public vec5 bgrbr => new vec5(z, y, x, z, x);
/// <summary>
/// Returns vec4.zyxzy swizzling.
/// </summary>
public vec5 zyxzy => new vec5(z, y, x, z, y);
/// <summary>
/// Returns vec4.bgrbg swizzling (equivalent to vec4.zyxzy).
/// </summary>
public vec5 bgrbg => new vec5(z, y, x, z, y);
/// <summary>
/// Returns vec4.zyxzz swizzling.
/// </summary>
public vec5 zyxzz => new vec5(z, y, x, z, z);
/// <summary>
/// Returns vec4.bgrbb swizzling (equivalent to vec4.zyxzz).
/// </summary>
public vec5 bgrbb => new vec5(z, y, x, z, z);
/// <summary>
/// Returns vec4.zyxzw swizzling.
/// </summary>
public vec5 zyxzw => new vec5(z, y, x, z, w);
/// <summary>
/// Returns vec4.bgrba swizzling (equivalent to vec4.zyxzw).
/// </summary>
public vec5 bgrba => new vec5(z, y, x, z, w);
/// <summary>
/// Returns vec4.zyxw swizzling.
/// </summary>
public vec4 zyxw => new vec4(z, y, x, w);
/// <summary>
/// Returns vec4.bgra swizzling (equivalent to vec4.zyxw).
/// </summary>
public vec4 bgra => new vec4(z, y, x, w);
/// <summary>
/// Returns vec4.zyxwx swizzling.
/// </summary>
public vec5 zyxwx => new vec5(z, y, x, w, x);
/// <summary>
/// Returns vec4.bgrar swizzling (equivalent to vec4.zyxwx).
/// </summary>
public vec5 bgrar => new vec5(z, y, x, w, x);
/// <summary>
/// Returns vec4.zyxwy swizzling.
/// </summary>
public vec5 zyxwy => new vec5(z, y, x, w, y);
/// <summary>
/// Returns vec4.bgrag swizzling (equivalent to vec4.zyxwy).
/// </summary>
public vec5 bgrag => new vec5(z, y, x, w, y);
/// <summary>
/// Returns vec4.zyxwz swizzling.
/// </summary>
public vec5 zyxwz => new vec5(z, y, x, w, z);
/// <summary>
/// Returns vec4.bgrab swizzling (equivalent to vec4.zyxwz).
/// </summary>
public vec5 bgrab => new vec5(z, y, x, w, z);
/// <summary>
/// Returns vec4.zyxww swizzling.
/// </summary>
public vec5 zyxww => new vec5(z, y, x, w, w);
/// <summary>
/// Returns vec4.bgraa swizzling (equivalent to vec4.zyxww).
/// </summary>
public vec5 bgraa => new vec5(z, y, x, w, w);
/// <summary>
/// Returns vec4.zyy swizzling.
/// </summary>
public vec3 zyy => new vec3(z, y, y);
/// <summary>
/// Returns vec4.bgg swizzling (equivalent to vec4.zyy).
/// </summary>
public vec3 bgg => new vec3(z, y, y);
/// <summary>
/// Returns vec4.zyyx swizzling.
/// </summary>
public vec4 zyyx => new vec4(z, y, y, x);
/// <summary>
/// Returns vec4.bggr swizzling (equivalent to vec4.zyyx).
/// </summary>
public vec4 bggr => new vec4(z, y, y, x);
/// <summary>
/// Returns vec4.zyyxx swizzling.
/// </summary>
public vec5 zyyxx => new vec5(z, y, y, x, x);
/// <summary>
/// Returns vec4.bggrr swizzling (equivalent to vec4.zyyxx).
/// </summary>
public vec5 bggrr => new vec5(z, y, y, x, x);
/// <summary>
/// Returns vec4.zyyxy swizzling.
/// </summary>
public vec5 zyyxy => new vec5(z, y, y, x, y);
/// <summary>
/// Returns vec4.bggrg swizzling (equivalent to vec4.zyyxy).
/// </summary>
public vec5 bggrg => new vec5(z, y, y, x, y);
/// <summary>
/// Returns vec4.zyyxz swizzling.
/// </summary>
public vec5 zyyxz => new vec5(z, y, y, x, z);
/// <summary>
/// Returns vec4.bggrb swizzling (equivalent to vec4.zyyxz).
/// </summary>
public vec5 bggrb => new vec5(z, y, y, x, z);
/// <summary>
/// Returns vec4.zyyxw swizzling.
/// </summary>
public vec5 zyyxw => new vec5(z, y, y, x, w);
/// <summary>
/// Returns vec4.bggra swizzling (equivalent to vec4.zyyxw).
/// </summary>
public vec5 bggra => new vec5(z, y, y, x, w);
/// <summary>
/// Returns vec4.zyyy swizzling.
/// </summary>
public vec4 zyyy => new vec4(z, y, y, y);
/// <summary>
/// Returns vec4.bggg swizzling (equivalent to vec4.zyyy).
/// </summary>
public vec4 bggg => new vec4(z, y, y, y);
/// <summary>
/// Returns vec4.zyyyx swizzling.
/// </summary>
public vec5 zyyyx => new vec5(z, y, y, y, x);
/// <summary>
/// Returns vec4.bgggr swizzling (equivalent to vec4.zyyyx).
/// </summary>
public vec5 bgggr => new vec5(z, y, y, y, x);
/// <summary>
/// Returns vec4.zyyyy swizzling.
/// </summary>
public vec5 zyyyy => new vec5(z, y, y, y, y);
/// <summary>
/// Returns vec4.bgggg swizzling (equivalent to vec4.zyyyy).
/// </summary>
public vec5 bgggg => new vec5(z, y, y, y, y);
/// <summary>
/// Returns vec4.zyyyz swizzling.
/// </summary>
public vec5 zyyyz => new vec5(z, y, y, y, z);
/// <summary>
/// Returns vec4.bgggb swizzling (equivalent to vec4.zyyyz).
/// </summary>
public vec5 bgggb => new vec5(z, y, y, y, z);
/// <summary>
/// Returns vec4.zyyyw swizzling.
/// </summary>
public vec5 zyyyw => new vec5(z, y, y, y, w);
/// <summary>
/// Returns vec4.bggga swizzling (equivalent to vec4.zyyyw).
/// </summary>
public vec5 bggga => new vec5(z, y, y, y, w);
/// <summary>
/// Returns vec4.zyyz swizzling.
/// </summary>
public vec4 zyyz => new vec4(z, y, y, z);
/// <summary>
/// Returns vec4.bggb swizzling (equivalent to vec4.zyyz).
/// </summary>
public vec4 bggb => new vec4(z, y, y, z);
/// <summary>
/// Returns vec4.zyyzx swizzling.
/// </summary>
public vec5 zyyzx => new vec5(z, y, y, z, x);
/// <summary>
/// Returns vec4.bggbr swizzling (equivalent to vec4.zyyzx).
/// </summary>
public vec5 bggbr => new vec5(z, y, y, z, x);
/// <summary>
/// Returns vec4.zyyzy swizzling.
/// </summary>
public vec5 zyyzy => new vec5(z, y, y, z, y);
/// <summary>
/// Returns vec4.bggbg swizzling (equivalent to vec4.zyyzy).
/// </summary>
public vec5 bggbg => new vec5(z, y, y, z, y);
/// <summary>
/// Returns vec4.zyyzz swizzling.
/// </summary>
public vec5 zyyzz => new vec5(z, y, y, z, z);
/// <summary>
/// Returns vec4.bggbb swizzling (equivalent to vec4.zyyzz).
/// </summary>
public vec5 bggbb => new vec5(z, y, y, z, z);
/// <summary>
/// Returns vec4.zyyzw swizzling.
/// </summary>
public vec5 zyyzw => new vec5(z, y, y, z, w);
/// <summary>
/// Returns vec4.bggba swizzling (equivalent to vec4.zyyzw).
/// </summary>
public vec5 bggba => new vec5(z, y, y, z, w);
/// <summary>
/// Returns vec4.zyyw swizzling.
/// </summary>
public vec4 zyyw => new vec4(z, y, y, w);
/// <summary>
/// Returns vec4.bgga swizzling (equivalent to vec4.zyyw).
/// </summary>
public vec4 bgga => new vec4(z, y, y, w);
/// <summary>
/// Returns vec4.zyywx swizzling.
/// </summary>
public vec5 zyywx => new vec5(z, y, y, w, x);
/// <summary>
/// Returns vec4.bggar swizzling (equivalent to vec4.zyywx).
/// </summary>
public vec5 bggar => new vec5(z, y, y, w, x);
/// <summary>
/// Returns vec4.zyywy swizzling.
/// </summary>
public vec5 zyywy => new vec5(z, y, y, w, y);
/// <summary>
/// Returns vec4.bggag swizzling (equivalent to vec4.zyywy).
/// </summary>
public vec5 bggag => new vec5(z, y, y, w, y);
/// <summary>
/// Returns vec4.zyywz swizzling.
/// </summary>
public vec5 zyywz => new vec5(z, y, y, w, z);
/// <summary>
/// Returns vec4.bggab swizzling (equivalent to vec4.zyywz).
/// </summary>
public vec5 bggab => new vec5(z, y, y, w, z);
/// <summary>
/// Returns vec4.zyyww swizzling.
/// </summary>
public vec5 zyyww => new vec5(z, y, y, w, w);
/// <summary>
/// Returns vec4.bggaa swizzling (equivalent to vec4.zyyww).
/// </summary>
public vec5 bggaa => new vec5(z, y, y, w, w);
/// <summary>
/// Returns vec4.zyz swizzling.
/// </summary>
public vec3 zyz => new vec3(z, y, z);
/// <summary>
/// Returns vec4.bgb swizzling (equivalent to vec4.zyz).
/// </summary>
public vec3 bgb => new vec3(z, y, z);
/// <summary>
/// Returns vec4.zyzx swizzling.
/// </summary>
public vec4 zyzx => new vec4(z, y, z, x);
/// <summary>
/// Returns vec4.bgbr swizzling (equivalent to vec4.zyzx).
/// </summary>
public vec4 bgbr => new vec4(z, y, z, x);
/// <summary>
/// Returns vec4.zyzxx swizzling.
/// </summary>
public vec5 zyzxx => new vec5(z, y, z, x, x);
/// <summary>
/// Returns vec4.bgbrr swizzling (equivalent to vec4.zyzxx).
/// </summary>
public vec5 bgbrr => new vec5(z, y, z, x, x);
/// <summary>
/// Returns vec4.zyzxy swizzling.
/// </summary>
public vec5 zyzxy => new vec5(z, y, z, x, y);
/// <summary>
/// Returns vec4.bgbrg swizzling (equivalent to vec4.zyzxy).
/// </summary>
public vec5 bgbrg => new vec5(z, y, z, x, y);
/// <summary>
/// Returns vec4.zyzxz swizzling.
/// </summary>
public vec5 zyzxz => new vec5(z, y, z, x, z);
/// <summary>
/// Returns vec4.bgbrb swizzling (equivalent to vec4.zyzxz).
/// </summary>
public vec5 bgbrb => new vec5(z, y, z, x, z);
/// <summary>
/// Returns vec4.zyzxw swizzling.
/// </summary>
public vec5 zyzxw => new vec5(z, y, z, x, w);
/// <summary>
/// Returns vec4.bgbra swizzling (equivalent to vec4.zyzxw).
/// </summary>
public vec5 bgbra => new vec5(z, y, z, x, w);
/// <summary>
/// Returns vec4.zyzy swizzling.
/// </summary>
public vec4 zyzy => new vec4(z, y, z, y);
/// <summary>
/// Returns vec4.bgbg swizzling (equivalent to vec4.zyzy).
/// </summary>
public vec4 bgbg => new vec4(z, y, z, y);
/// <summary>
/// Returns vec4.zyzyx swizzling.
/// </summary>
public vec5 zyzyx => new vec5(z, y, z, y, x);
/// <summary>
/// Returns vec4.bgbgr swizzling (equivalent to vec4.zyzyx).
/// </summary>
public vec5 bgbgr => new vec5(z, y, z, y, x);
/// <summary>
/// Returns vec4.zyzyy swizzling.
/// </summary>
public vec5 zyzyy => new vec5(z, y, z, y, y);
/// <summary>
/// Returns vec4.bgbgg swizzling (equivalent to vec4.zyzyy).
/// </summary>
public vec5 bgbgg => new vec5(z, y, z, y, y);
/// <summary>
/// Returns vec4.zyzyz swizzling.
/// </summary>
public vec5 zyzyz => new vec5(z, y, z, y, z);
/// <summary>
/// Returns vec4.bgbgb swizzling (equivalent to vec4.zyzyz).
/// </summary>
public vec5 bgbgb => new vec5(z, y, z, y, z);
/// <summary>
/// Returns vec4.zyzyw swizzling.
/// </summary>
public vec5 zyzyw => new vec5(z, y, z, y, w);
/// <summary>
/// Returns vec4.bgbga swizzling (equivalent to vec4.zyzyw).
/// </summary>
public vec5 bgbga => new vec5(z, y, z, y, w);
/// <summary>
/// Returns vec4.zyzz swizzling.
/// </summary>
public vec4 zyzz => new vec4(z, y, z, z);
/// <summary>
/// Returns vec4.bgbb swizzling (equivalent to vec4.zyzz).
/// </summary>
public vec4 bgbb => new vec4(z, y, z, z);
/// <summary>
/// Returns vec4.zyzzx swizzling.
/// </summary>
public vec5 zyzzx => new vec5(z, y, z, z, x);
/// <summary>
/// Returns vec4.bgbbr swizzling (equivalent to vec4.zyzzx).
/// </summary>
public vec5 bgbbr => new vec5(z, y, z, z, x);
/// <summary>
/// Returns vec4.zyzzy swizzling.
/// </summary>
public vec5 zyzzy => new vec5(z, y, z, z, y);
/// <summary>
/// Returns vec4.bgbbg swizzling (equivalent to vec4.zyzzy).
/// </summary>
public vec5 bgbbg => new vec5(z, y, z, z, y);
/// <summary>
/// Returns vec4.zyzzz swizzling.
/// </summary>
public vec5 zyzzz => new vec5(z, y, z, z, z);
/// <summary>
/// Returns vec4.bgbbb swizzling (equivalent to vec4.zyzzz).
/// </summary>
public vec5 bgbbb => new vec5(z, y, z, z, z);
/// <summary>
/// Returns vec4.zyzzw swizzling.
/// </summary>
public vec5 zyzzw => new vec5(z, y, z, z, w);
/// <summary>
/// Returns vec4.bgbba swizzling (equivalent to vec4.zyzzw).
/// </summary>
public vec5 bgbba => new vec5(z, y, z, z, w);
/// <summary>
/// Returns vec4.zyzw swizzling.
/// </summary>
public vec4 zyzw => new vec4(z, y, z, w);
/// <summary>
/// Returns vec4.bgba swizzling (equivalent to vec4.zyzw).
/// </summary>
public vec4 bgba => new vec4(z, y, z, w);
/// <summary>
/// Returns vec4.zyzwx swizzling.
/// </summary>
public vec5 zyzwx => new vec5(z, y, z, w, x);
/// <summary>
/// Returns vec4.bgbar swizzling (equivalent to vec4.zyzwx).
/// </summary>
public vec5 bgbar => new vec5(z, y, z, w, x);
/// <summary>
/// Returns vec4.zyzwy swizzling.
/// </summary>
public vec5 zyzwy => new vec5(z, y, z, w, y);
/// <summary>
/// Returns vec4.bgbag swizzling (equivalent to vec4.zyzwy).
/// </summary>
public vec5 bgbag => new vec5(z, y, z, w, y);
/// <summary>
/// Returns vec4.zyzwz swizzling.
/// </summary>
public vec5 zyzwz => new vec5(z, y, z, w, z);
/// <summary>
/// Returns vec4.bgbab swizzling (equivalent to vec4.zyzwz).
/// </summary>
public vec5 bgbab => new vec5(z, y, z, w, z);
/// <summary>
/// Returns vec4.zyzww swizzling.
/// </summary>
public vec5 zyzww => new vec5(z, y, z, w, w);
/// <summary>
/// Returns vec4.bgbaa swizzling (equivalent to vec4.zyzww).
/// </summary>
public vec5 bgbaa => new vec5(z, y, z, w, w);
/// <summary>
/// Returns vec4.zyw swizzling.
/// </summary>
public vec3 zyw => new vec3(z, y, w);
/// <summary>
/// Returns vec4.bga swizzling (equivalent to vec4.zyw).
/// </summary>
public vec3 bga => new vec3(z, y, w);
/// <summary>
/// Returns vec4.zywx swizzling.
/// </summary>
public vec4 zywx => new vec4(z, y, w, x);
/// <summary>
/// Returns vec4.bgar swizzling (equivalent to vec4.zywx).
/// </summary>
public vec4 bgar => new vec4(z, y, w, x);
/// <summary>
/// Returns vec4.zywxx swizzling.
/// </summary>
public vec5 zywxx => new vec5(z, y, w, x, x);
/// <summary>
/// Returns vec4.bgarr swizzling (equivalent to vec4.zywxx).
/// </summary>
public vec5 bgarr => new vec5(z, y, w, x, x);
/// <summary>
/// Returns vec4.zywxy swizzling.
/// </summary>
public vec5 zywxy => new vec5(z, y, w, x, y);
/// <summary>
/// Returns vec4.bgarg swizzling (equivalent to vec4.zywxy).
/// </summary>
public vec5 bgarg => new vec5(z, y, w, x, y);
/// <summary>
/// Returns vec4.zywxz swizzling.
/// </summary>
public vec5 zywxz => new vec5(z, y, w, x, z);
/// <summary>
/// Returns vec4.bgarb swizzling (equivalent to vec4.zywxz).
/// </summary>
public vec5 bgarb => new vec5(z, y, w, x, z);
/// <summary>
/// Returns vec4.zywxw swizzling.
/// </summary>
public vec5 zywxw => new vec5(z, y, w, x, w);
/// <summary>
/// Returns vec4.bgara swizzling (equivalent to vec4.zywxw).
/// </summary>
public vec5 bgara => new vec5(z, y, w, x, w);
/// <summary>
/// Returns vec4.zywy swizzling.
/// </summary>
public vec4 zywy => new vec4(z, y, w, y);
/// <summary>
/// Returns vec4.bgag swizzling (equivalent to vec4.zywy).
/// </summary>
public vec4 bgag => new vec4(z, y, w, y);
/// <summary>
/// Returns vec4.zywyx swizzling.
/// </summary>
public vec5 zywyx => new vec5(z, y, w, y, x);
/// <summary>
/// Returns vec4.bgagr swizzling (equivalent to vec4.zywyx).
/// </summary>
public vec5 bgagr => new vec5(z, y, w, y, x);
/// <summary>
/// Returns vec4.zywyy swizzling.
/// </summary>
public vec5 zywyy => new vec5(z, y, w, y, y);
/// <summary>
/// Returns vec4.bgagg swizzling (equivalent to vec4.zywyy).
/// </summary>
public vec5 bgagg => new vec5(z, y, w, y, y);
/// <summary>
/// Returns vec4.zywyz swizzling.
/// </summary>
public vec5 zywyz => new vec5(z, y, w, y, z);
/// <summary>
/// Returns vec4.bgagb swizzling (equivalent to vec4.zywyz).
/// </summary>
public vec5 bgagb => new vec5(z, y, w, y, z);
/// <summary>
/// Returns vec4.zywyw swizzling.
/// </summary>
public vec5 zywyw => new vec5(z, y, w, y, w);
/// <summary>
/// Returns vec4.bgaga swizzling (equivalent to vec4.zywyw).
/// </summary>
public vec5 bgaga => new vec5(z, y, w, y, w);
/// <summary>
/// Returns vec4.zywz swizzling.
/// </summary>
public vec4 zywz => new vec4(z, y, w, z);
/// <summary>
/// Returns vec4.bgab swizzling (equivalent to vec4.zywz).
/// </summary>
public vec4 bgab => new vec4(z, y, w, z);
/// <summary>
/// Returns vec4.zywzx swizzling.
/// </summary>
public vec5 zywzx => new vec5(z, y, w, z, x);
/// <summary>
/// Returns vec4.bgabr swizzling (equivalent to vec4.zywzx).
/// </summary>
public vec5 bgabr => new vec5(z, y, w, z, x);
/// <summary>
/// Returns vec4.zywzy swizzling.
/// </summary>
public vec5 zywzy => new vec5(z, y, w, z, y);
/// <summary>
/// Returns vec4.bgabg swizzling (equivalent to vec4.zywzy).
/// </summary>
public vec5 bgabg => new vec5(z, y, w, z, y);
/// <summary>
/// Returns vec4.zywzz swizzling.
/// </summary>
public vec5 zywzz => new vec5(z, y, w, z, z);
/// <summary>
/// Returns vec4.bgabb swizzling (equivalent to vec4.zywzz).
/// </summary>
public vec5 bgabb => new vec5(z, y, w, z, z);
/// <summary>
/// Returns vec4.zywzw swizzling.
/// </summary>
public vec5 zywzw => new vec5(z, y, w, z, w);
/// <summary>
/// Returns vec4.bgaba swizzling (equivalent to vec4.zywzw).
/// </summary>
public vec5 bgaba => new vec5(z, y, w, z, w);
/// <summary>
/// Returns vec4.zyww swizzling.
/// </summary>
public vec4 zyww => new vec4(z, y, w, w);
/// <summary>
/// Returns vec4.bgaa swizzling (equivalent to vec4.zyww).
/// </summary>
public vec4 bgaa => new vec4(z, y, w, w);
/// <summary>
/// Returns vec4.zywwx swizzling.
/// </summary>
public vec5 zywwx => new vec5(z, y, w, w, x);
/// <summary>
/// Returns vec4.bgaar swizzling (equivalent to vec4.zywwx).
/// </summary>
public vec5 bgaar => new vec5(z, y, w, w, x);
/// <summary>
/// Returns vec4.zywwy swizzling.
/// </summary>
public vec5 zywwy => new vec5(z, y, w, w, y);
/// <summary>
/// Returns vec4.bgaag swizzling (equivalent to vec4.zywwy).
/// </summary>
public vec5 bgaag => new vec5(z, y, w, w, y);
/// <summary>
/// Returns vec4.zywwz swizzling.
/// </summary>
public vec5 zywwz => new vec5(z, y, w, w, z);
/// <summary>
/// Returns vec4.bgaab swizzling (equivalent to vec4.zywwz).
/// </summary>
public vec5 bgaab => new vec5(z, y, w, w, z);
/// <summary>
/// Returns vec4.zywww swizzling.
/// </summary>
public vec5 zywww => new vec5(z, y, w, w, w);
/// <summary>
/// Returns vec4.bgaaa swizzling (equivalent to vec4.zywww).
/// </summary>
public vec5 bgaaa => new vec5(z, y, w, w, w);
/// <summary>
/// Returns vec4.zz swizzling.
/// </summary>
public vec2 zz => new vec2(z, z);
/// <summary>
/// Returns vec4.bb swizzling (equivalent to vec4.zz).
/// </summary>
public vec2 bb => new vec2(z, z);
/// <summary>
/// Returns vec4.zzx swizzling.
/// </summary>
public vec3 zzx => new vec3(z, z, x);
/// <summary>
/// Returns vec4.bbr swizzling (equivalent to vec4.zzx).
/// </summary>
public vec3 bbr => new vec3(z, z, x);
/// <summary>
/// Returns vec4.zzxx swizzling.
/// </summary>
public vec4 zzxx => new vec4(z, z, x, x);
/// <summary>
/// Returns vec4.bbrr swizzling (equivalent to vec4.zzxx).
/// </summary>
public vec4 bbrr => new vec4(z, z, x, x);
/// <summary>
/// Returns vec4.zzxxx swizzling.
/// </summary>
public vec5 zzxxx => new vec5(z, z, x, x, x);
/// <summary>
/// Returns vec4.bbrrr swizzling (equivalent to vec4.zzxxx).
/// </summary>
public vec5 bbrrr => new vec5(z, z, x, x, x);
/// <summary>
/// Returns vec4.zzxxy swizzling.
/// </summary>
public vec5 zzxxy => new vec5(z, z, x, x, y);
/// <summary>
/// Returns vec4.bbrrg swizzling (equivalent to vec4.zzxxy).
/// </summary>
public vec5 bbrrg => new vec5(z, z, x, x, y);
/// <summary>
/// Returns vec4.zzxxz swizzling.
/// </summary>
public vec5 zzxxz => new vec5(z, z, x, x, z);
/// <summary>
/// Returns vec4.bbrrb swizzling (equivalent to vec4.zzxxz).
/// </summary>
public vec5 bbrrb => new vec5(z, z, x, x, z);
/// <summary>
/// Returns vec4.zzxxw swizzling.
/// </summary>
public vec5 zzxxw => new vec5(z, z, x, x, w);
/// <summary>
/// Returns vec4.bbrra swizzling (equivalent to vec4.zzxxw).
/// </summary>
public vec5 bbrra => new vec5(z, z, x, x, w);
/// <summary>
/// Returns vec4.zzxy swizzling.
/// </summary>
public vec4 zzxy => new vec4(z, z, x, y);
/// <summary>
/// Returns vec4.bbrg swizzling (equivalent to vec4.zzxy).
/// </summary>
public vec4 bbrg => new vec4(z, z, x, y);
/// <summary>
/// Returns vec4.zzxyx swizzling.
/// </summary>
public vec5 zzxyx => new vec5(z, z, x, y, x);
/// <summary>
/// Returns vec4.bbrgr swizzling (equivalent to vec4.zzxyx).
/// </summary>
public vec5 bbrgr => new vec5(z, z, x, y, x);
/// <summary>
/// Returns vec4.zzxyy swizzling.
/// </summary>
public vec5 zzxyy => new vec5(z, z, x, y, y);
/// <summary>
/// Returns vec4.bbrgg swizzling (equivalent to vec4.zzxyy).
/// </summary>
public vec5 bbrgg => new vec5(z, z, x, y, y);
/// <summary>
/// Returns vec4.zzxyz swizzling.
/// </summary>
public vec5 zzxyz => new vec5(z, z, x, y, z);
/// <summary>
/// Returns vec4.bbrgb swizzling (equivalent to vec4.zzxyz).
/// </summary>
public vec5 bbrgb => new vec5(z, z, x, y, z);
/// <summary>
/// Returns vec4.zzxyw swizzling.
/// </summary>
public vec5 zzxyw => new vec5(z, z, x, y, w);
/// <summary>
/// Returns vec4.bbrga swizzling (equivalent to vec4.zzxyw).
/// </summary>
public vec5 bbrga => new vec5(z, z, x, y, w);
/// <summary>
/// Returns vec4.zzxz swizzling.
/// </summary>
public vec4 zzxz => new vec4(z, z, x, z);
/// <summary>
/// Returns vec4.bbrb swizzling (equivalent to vec4.zzxz).
/// </summary>
public vec4 bbrb => new vec4(z, z, x, z);
/// <summary>
/// Returns vec4.zzxzx swizzling.
/// </summary>
public vec5 zzxzx => new vec5(z, z, x, z, x);
/// <summary>
/// Returns vec4.bbrbr swizzling (equivalent to vec4.zzxzx).
/// </summary>
public vec5 bbrbr => new vec5(z, z, x, z, x);
/// <summary>
/// Returns vec4.zzxzy swizzling.
/// </summary>
public vec5 zzxzy => new vec5(z, z, x, z, y);
/// <summary>
/// Returns vec4.bbrbg swizzling (equivalent to vec4.zzxzy).
/// </summary>
public vec5 bbrbg => new vec5(z, z, x, z, y);
/// <summary>
/// Returns vec4.zzxzz swizzling.
/// </summary>
public vec5 zzxzz => new vec5(z, z, x, z, z);
/// <summary>
/// Returns vec4.bbrbb swizzling (equivalent to vec4.zzxzz).
/// </summary>
public vec5 bbrbb => new vec5(z, z, x, z, z);
/// <summary>
/// Returns vec4.zzxzw swizzling.
/// </summary>
public vec5 zzxzw => new vec5(z, z, x, z, w);
/// <summary>
/// Returns vec4.bbrba swizzling (equivalent to vec4.zzxzw).
/// </summary>
public vec5 bbrba => new vec5(z, z, x, z, w);
/// <summary>
/// Returns vec4.zzxw swizzling.
/// </summary>
public vec4 zzxw => new vec4(z, z, x, w);
/// <summary>
/// Returns vec4.bbra swizzling (equivalent to vec4.zzxw).
/// </summary>
public vec4 bbra => new vec4(z, z, x, w);
/// <summary>
/// Returns vec4.zzxwx swizzling.
/// </summary>
public vec5 zzxwx => new vec5(z, z, x, w, x);
/// <summary>
/// Returns vec4.bbrar swizzling (equivalent to vec4.zzxwx).
/// </summary>
public vec5 bbrar => new vec5(z, z, x, w, x);
/// <summary>
/// Returns vec4.zzxwy swizzling.
/// </summary>
public vec5 zzxwy => new vec5(z, z, x, w, y);
/// <summary>
/// Returns vec4.bbrag swizzling (equivalent to vec4.zzxwy).
/// </summary>
public vec5 bbrag => new vec5(z, z, x, w, y);
/// <summary>
/// Returns vec4.zzxwz swizzling.
/// </summary>
public vec5 zzxwz => new vec5(z, z, x, w, z);
/// <summary>
/// Returns vec4.bbrab swizzling (equivalent to vec4.zzxwz).
/// </summary>
public vec5 bbrab => new vec5(z, z, x, w, z);
/// <summary>
/// Returns vec4.zzxww swizzling.
/// </summary>
public vec5 zzxww => new vec5(z, z, x, w, w);
/// <summary>
/// Returns vec4.bbraa swizzling (equivalent to vec4.zzxww).
/// </summary>
public vec5 bbraa => new vec5(z, z, x, w, w);
/// <summary>
/// Returns vec4.zzy swizzling.
/// </summary>
public vec3 zzy => new vec3(z, z, y);
/// <summary>
/// Returns vec4.bbg swizzling (equivalent to vec4.zzy).
/// </summary>
public vec3 bbg => new vec3(z, z, y);
/// <summary>
/// Returns vec4.zzyx swizzling.
/// </summary>
public vec4 zzyx => new vec4(z, z, y, x);
/// <summary>
/// Returns vec4.bbgr swizzling (equivalent to vec4.zzyx).
/// </summary>
public vec4 bbgr => new vec4(z, z, y, x);
/// <summary>
/// Returns vec4.zzyxx swizzling.
/// </summary>
public vec5 zzyxx => new vec5(z, z, y, x, x);
/// <summary>
/// Returns vec4.bbgrr swizzling (equivalent to vec4.zzyxx).
/// </summary>
public vec5 bbgrr => new vec5(z, z, y, x, x);
/// <summary>
/// Returns vec4.zzyxy swizzling.
/// </summary>
public vec5 zzyxy => new vec5(z, z, y, x, y);
/// <summary>
/// Returns vec4.bbgrg swizzling (equivalent to vec4.zzyxy).
/// </summary>
public vec5 bbgrg => new vec5(z, z, y, x, y);
/// <summary>
/// Returns vec4.zzyxz swizzling.
/// </summary>
public vec5 zzyxz => new vec5(z, z, y, x, z);
/// <summary>
/// Returns vec4.bbgrb swizzling (equivalent to vec4.zzyxz).
/// </summary>
public vec5 bbgrb => new vec5(z, z, y, x, z);
/// <summary>
/// Returns vec4.zzyxw swizzling.
/// </summary>
public vec5 zzyxw => new vec5(z, z, y, x, w);
/// <summary>
/// Returns vec4.bbgra swizzling (equivalent to vec4.zzyxw).
/// </summary>
public vec5 bbgra => new vec5(z, z, y, x, w);
/// <summary>
/// Returns vec4.zzyy swizzling.
/// </summary>
public vec4 zzyy => new vec4(z, z, y, y);
/// <summary>
/// Returns vec4.bbgg swizzling (equivalent to vec4.zzyy).
/// </summary>
public vec4 bbgg => new vec4(z, z, y, y);
/// <summary>
/// Returns vec4.zzyyx swizzling.
/// </summary>
public vec5 zzyyx => new vec5(z, z, y, y, x);
/// <summary>
/// Returns vec4.bbggr swizzling (equivalent to vec4.zzyyx).
/// </summary>
public vec5 bbggr => new vec5(z, z, y, y, x);
/// <summary>
/// Returns vec4.zzyyy swizzling.
/// </summary>
public vec5 zzyyy => new vec5(z, z, y, y, y);
/// <summary>
/// Returns vec4.bbggg swizzling (equivalent to vec4.zzyyy).
/// </summary>
public vec5 bbggg => new vec5(z, z, y, y, y);
/// <summary>
/// Returns vec4.zzyyz swizzling.
/// </summary>
public vec5 zzyyz => new vec5(z, z, y, y, z);
/// <summary>
/// Returns vec4.bbggb swizzling (equivalent to vec4.zzyyz).
/// </summary>
public vec5 bbggb => new vec5(z, z, y, y, z);
/// <summary>
/// Returns vec4.zzyyw swizzling.
/// </summary>
public vec5 zzyyw => new vec5(z, z, y, y, w);
/// <summary>
/// Returns vec4.bbgga swizzling (equivalent to vec4.zzyyw).
/// </summary>
public vec5 bbgga => new vec5(z, z, y, y, w);
/// <summary>
/// Returns vec4.zzyz swizzling.
/// </summary>
public vec4 zzyz => new vec4(z, z, y, z);
/// <summary>
/// Returns vec4.bbgb swizzling (equivalent to vec4.zzyz).
/// </summary>
public vec4 bbgb => new vec4(z, z, y, z);
/// <summary>
/// Returns vec4.zzyzx swizzling.
/// </summary>
public vec5 zzyzx => new vec5(z, z, y, z, x);
/// <summary>
/// Returns vec4.bbgbr swizzling (equivalent to vec4.zzyzx).
/// </summary>
public vec5 bbgbr => new vec5(z, z, y, z, x);
/// <summary>
/// Returns vec4.zzyzy swizzling.
/// </summary>
public vec5 zzyzy => new vec5(z, z, y, z, y);
/// <summary>
/// Returns vec4.bbgbg swizzling (equivalent to vec4.zzyzy).
/// </summary>
public vec5 bbgbg => new vec5(z, z, y, z, y);
/// <summary>
/// Returns vec4.zzyzz swizzling.
/// </summary>
public vec5 zzyzz => new vec5(z, z, y, z, z);
/// <summary>
/// Returns vec4.bbgbb swizzling (equivalent to vec4.zzyzz).
/// </summary>
public vec5 bbgbb => new vec5(z, z, y, z, z);
/// <summary>
/// Returns vec4.zzyzw swizzling.
/// </summary>
public vec5 zzyzw => new vec5(z, z, y, z, w);
/// <summary>
/// Returns vec4.bbgba swizzling (equivalent to vec4.zzyzw).
/// </summary>
public vec5 bbgba => new vec5(z, z, y, z, w);
/// <summary>
/// Returns vec4.zzyw swizzling.
/// </summary>
public vec4 zzyw => new vec4(z, z, y, w);
/// <summary>
/// Returns vec4.bbga swizzling (equivalent to vec4.zzyw).
/// </summary>
public vec4 bbga => new vec4(z, z, y, w);
/// <summary>
/// Returns vec4.zzywx swizzling.
/// </summary>
public vec5 zzywx => new vec5(z, z, y, w, x);
/// <summary>
/// Returns vec4.bbgar swizzling (equivalent to vec4.zzywx).
/// </summary>
public vec5 bbgar => new vec5(z, z, y, w, x);
/// <summary>
/// Returns vec4.zzywy swizzling.
/// </summary>
public vec5 zzywy => new vec5(z, z, y, w, y);
/// <summary>
/// Returns vec4.bbgag swizzling (equivalent to vec4.zzywy).
/// </summary>
public vec5 bbgag => new vec5(z, z, y, w, y);
/// <summary>
/// Returns vec4.zzywz swizzling.
/// </summary>
public vec5 zzywz => new vec5(z, z, y, w, z);
/// <summary>
/// Returns vec4.bbgab swizzling (equivalent to vec4.zzywz).
/// </summary>
public vec5 bbgab => new vec5(z, z, y, w, z);
/// <summary>
/// Returns vec4.zzyww swizzling.
/// </summary>
public vec5 zzyww => new vec5(z, z, y, w, w);
/// <summary>
/// Returns vec4.bbgaa swizzling (equivalent to vec4.zzyww).
/// </summary>
public vec5 bbgaa => new vec5(z, z, y, w, w);
/// <summary>
/// Returns vec4.zzz swizzling.
/// </summary>
public vec3 zzz => new vec3(z, z, z);
/// <summary>
/// Returns vec4.bbb swizzling (equivalent to vec4.zzz).
/// </summary>
public vec3 bbb => new vec3(z, z, z);
/// <summary>
/// Returns vec4.zzzx swizzling.
/// </summary>
public vec4 zzzx => new vec4(z, z, z, x);
/// <summary>
/// Returns vec4.bbbr swizzling (equivalent to vec4.zzzx).
/// </summary>
public vec4 bbbr => new vec4(z, z, z, x);
/// <summary>
/// Returns vec4.zzzxx swizzling.
/// </summary>
public vec5 zzzxx => new vec5(z, z, z, x, x);
/// <summary>
/// Returns vec4.bbbrr swizzling (equivalent to vec4.zzzxx).
/// </summary>
public vec5 bbbrr => new vec5(z, z, z, x, x);
/// <summary>
/// Returns vec4.zzzxy swizzling.
/// </summary>
public vec5 zzzxy => new vec5(z, z, z, x, y);
/// <summary>
/// Returns vec4.bbbrg swizzling (equivalent to vec4.zzzxy).
/// </summary>
public vec5 bbbrg => new vec5(z, z, z, x, y);
/// <summary>
/// Returns vec4.zzzxz swizzling.
/// </summary>
public vec5 zzzxz => new vec5(z, z, z, x, z);
/// <summary>
/// Returns vec4.bbbrb swizzling (equivalent to vec4.zzzxz).
/// </summary>
public vec5 bbbrb => new vec5(z, z, z, x, z);
/// <summary>
/// Returns vec4.zzzxw swizzling.
/// </summary>
public vec5 zzzxw => new vec5(z, z, z, x, w);
/// <summary>
/// Returns vec4.bbbra swizzling (equivalent to vec4.zzzxw).
/// </summary>
public vec5 bbbra => new vec5(z, z, z, x, w);
/// <summary>
/// Returns vec4.zzzy swizzling.
/// </summary>
public vec4 zzzy => new vec4(z, z, z, y);
/// <summary>
/// Returns vec4.bbbg swizzling (equivalent to vec4.zzzy).
/// </summary>
public vec4 bbbg => new vec4(z, z, z, y);
/// <summary>
/// Returns vec4.zzzyx swizzling.
/// </summary>
public vec5 zzzyx => new vec5(z, z, z, y, x);
/// <summary>
/// Returns vec4.bbbgr swizzling (equivalent to vec4.zzzyx).
/// </summary>
public vec5 bbbgr => new vec5(z, z, z, y, x);
/// <summary>
/// Returns vec4.zzzyy swizzling.
/// </summary>
public vec5 zzzyy => new vec5(z, z, z, y, y);
/// <summary>
/// Returns vec4.bbbgg swizzling (equivalent to vec4.zzzyy).
/// </summary>
public vec5 bbbgg => new vec5(z, z, z, y, y);
/// <summary>
/// Returns vec4.zzzyz swizzling.
/// </summary>
public vec5 zzzyz => new vec5(z, z, z, y, z);
/// <summary>
/// Returns vec4.bbbgb swizzling (equivalent to vec4.zzzyz).
/// </summary>
public vec5 bbbgb => new vec5(z, z, z, y, z);
/// <summary>
/// Returns vec4.zzzyw swizzling.
/// </summary>
public vec5 zzzyw => new vec5(z, z, z, y, w);
/// <summary>
/// Returns vec4.bbbga swizzling (equivalent to vec4.zzzyw).
/// </summary>
public vec5 bbbga => new vec5(z, z, z, y, w);
/// <summary>
/// Returns vec4.zzzz swizzling.
/// </summary>
public vec4 zzzz => new vec4(z, z, z, z);
/// <summary>
/// Returns vec4.bbbb swizzling (equivalent to vec4.zzzz).
/// </summary>
public vec4 bbbb => new vec4(z, z, z, z);
/// <summary>
/// Returns vec4.zzzzx swizzling.
/// </summary>
public vec5 zzzzx => new vec5(z, z, z, z, x);
/// <summary>
/// Returns vec4.bbbbr swizzling (equivalent to vec4.zzzzx).
/// </summary>
public vec5 bbbbr => new vec5(z, z, z, z, x);
/// <summary>
/// Returns vec4.zzzzy swizzling.
/// </summary>
public vec5 zzzzy => new vec5(z, z, z, z, y);
/// <summary>
/// Returns vec4.bbbbg swizzling (equivalent to vec4.zzzzy).
/// </summary>
public vec5 bbbbg => new vec5(z, z, z, z, y);
/// <summary>
/// Returns vec4.zzzzz swizzling.
/// </summary>
public vec5 zzzzz => new vec5(z, z, z, z, z);
/// <summary>
/// Returns vec4.bbbbb swizzling (equivalent to vec4.zzzzz).
/// </summary>
public vec5 bbbbb => new vec5(z, z, z, z, z);
/// <summary>
/// Returns vec4.zzzzw swizzling.
/// </summary>
public vec5 zzzzw => new vec5(z, z, z, z, w);
/// <summary>
/// Returns vec4.bbbba swizzling (equivalent to vec4.zzzzw).
/// </summary>
public vec5 bbbba => new vec5(z, z, z, z, w);
/// <summary>
/// Returns vec4.zzzw swizzling.
/// </summary>
public vec4 zzzw => new vec4(z, z, z, w);
/// <summary>
/// Returns vec4.bbba swizzling (equivalent to vec4.zzzw).
/// </summary>
public vec4 bbba => new vec4(z, z, z, w);
/// <summary>
/// Returns vec4.zzzwx swizzling.
/// </summary>
public vec5 zzzwx => new vec5(z, z, z, w, x);
/// <summary>
/// Returns vec4.bbbar swizzling (equivalent to vec4.zzzwx).
/// </summary>
public vec5 bbbar => new vec5(z, z, z, w, x);
/// <summary>
/// Returns vec4.zzzwy swizzling.
/// </summary>
public vec5 zzzwy => new vec5(z, z, z, w, y);
/// <summary>
/// Returns vec4.bbbag swizzling (equivalent to vec4.zzzwy).
/// </summary>
public vec5 bbbag => new vec5(z, z, z, w, y);
/// <summary>
/// Returns vec4.zzzwz swizzling.
/// </summary>
public vec5 zzzwz => new vec5(z, z, z, w, z);
/// <summary>
/// Returns vec4.bbbab swizzling (equivalent to vec4.zzzwz).
/// </summary>
public vec5 bbbab => new vec5(z, z, z, w, z);
/// <summary>
/// Returns vec4.zzzww swizzling.
/// </summary>
public vec5 zzzww => new vec5(z, z, z, w, w);
/// <summary>
/// Returns vec4.bbbaa swizzling (equivalent to vec4.zzzww).
/// </summary>
public vec5 bbbaa => new vec5(z, z, z, w, w);
/// <summary>
/// Returns vec4.zzw swizzling.
/// </summary>
public vec3 zzw => new vec3(z, z, w);
/// <summary>
/// Returns vec4.bba swizzling (equivalent to vec4.zzw).
/// </summary>
public vec3 bba => new vec3(z, z, w);
/// <summary>
/// Returns vec4.zzwx swizzling.
/// </summary>
public vec4 zzwx => new vec4(z, z, w, x);
/// <summary>
/// Returns vec4.bbar swizzling (equivalent to vec4.zzwx).
/// </summary>
public vec4 bbar => new vec4(z, z, w, x);
/// <summary>
/// Returns vec4.zzwxx swizzling.
/// </summary>
public vec5 zzwxx => new vec5(z, z, w, x, x);
/// <summary>
/// Returns vec4.bbarr swizzling (equivalent to vec4.zzwxx).
/// </summary>
public vec5 bbarr => new vec5(z, z, w, x, x);
/// <summary>
/// Returns vec4.zzwxy swizzling.
/// </summary>
public vec5 zzwxy => new vec5(z, z, w, x, y);
/// <summary>
/// Returns vec4.bbarg swizzling (equivalent to vec4.zzwxy).
/// </summary>
public vec5 bbarg => new vec5(z, z, w, x, y);
/// <summary>
/// Returns vec4.zzwxz swizzling.
/// </summary>
public vec5 zzwxz => new vec5(z, z, w, x, z);
/// <summary>
/// Returns vec4.bbarb swizzling (equivalent to vec4.zzwxz).
/// </summary>
public vec5 bbarb => new vec5(z, z, w, x, z);
/// <summary>
/// Returns vec4.zzwxw swizzling.
/// </summary>
public vec5 zzwxw => new vec5(z, z, w, x, w);
/// <summary>
/// Returns vec4.bbara swizzling (equivalent to vec4.zzwxw).
/// </summary>
public vec5 bbara => new vec5(z, z, w, x, w);
/// <summary>
/// Returns vec4.zzwy swizzling.
/// </summary>
public vec4 zzwy => new vec4(z, z, w, y);
/// <summary>
/// Returns vec4.bbag swizzling (equivalent to vec4.zzwy).
/// </summary>
public vec4 bbag => new vec4(z, z, w, y);
/// <summary>
/// Returns vec4.zzwyx swizzling.
/// </summary>
public vec5 zzwyx => new vec5(z, z, w, y, x);
/// <summary>
/// Returns vec4.bbagr swizzling (equivalent to vec4.zzwyx).
/// </summary>
public vec5 bbagr => new vec5(z, z, w, y, x);
/// <summary>
/// Returns vec4.zzwyy swizzling.
/// </summary>
public vec5 zzwyy => new vec5(z, z, w, y, y);
/// <summary>
/// Returns vec4.bbagg swizzling (equivalent to vec4.zzwyy).
/// </summary>
public vec5 bbagg => new vec5(z, z, w, y, y);
/// <summary>
/// Returns vec4.zzwyz swizzling.
/// </summary>
public vec5 zzwyz => new vec5(z, z, w, y, z);
/// <summary>
/// Returns vec4.bbagb swizzling (equivalent to vec4.zzwyz).
/// </summary>
public vec5 bbagb => new vec5(z, z, w, y, z);
/// <summary>
/// Returns vec4.zzwyw swizzling.
/// </summary>
public vec5 zzwyw => new vec5(z, z, w, y, w);
/// <summary>
/// Returns vec4.bbaga swizzling (equivalent to vec4.zzwyw).
/// </summary>
public vec5 bbaga => new vec5(z, z, w, y, w);
/// <summary>
/// Returns vec4.zzwz swizzling.
/// </summary>
public vec4 zzwz => new vec4(z, z, w, z);
/// <summary>
/// Returns vec4.bbab swizzling (equivalent to vec4.zzwz).
/// </summary>
public vec4 bbab => new vec4(z, z, w, z);
/// <summary>
/// Returns vec4.zzwzx swizzling.
/// </summary>
public vec5 zzwzx => new vec5(z, z, w, z, x);
/// <summary>
/// Returns vec4.bbabr swizzling (equivalent to vec4.zzwzx).
/// </summary>
public vec5 bbabr => new vec5(z, z, w, z, x);
/// <summary>
/// Returns vec4.zzwzy swizzling.
/// </summary>
public vec5 zzwzy => new vec5(z, z, w, z, y);
/// <summary>
/// Returns vec4.bbabg swizzling (equivalent to vec4.zzwzy).
/// </summary>
public vec5 bbabg => new vec5(z, z, w, z, y);
/// <summary>
/// Returns vec4.zzwzz swizzling.
/// </summary>
public vec5 zzwzz => new vec5(z, z, w, z, z);
/// <summary>
/// Returns vec4.bbabb swizzling (equivalent to vec4.zzwzz).
/// </summary>
public vec5 bbabb => new vec5(z, z, w, z, z);
/// <summary>
/// Returns vec4.zzwzw swizzling.
/// </summary>
public vec5 zzwzw => new vec5(z, z, w, z, w);
/// <summary>
/// Returns vec4.bbaba swizzling (equivalent to vec4.zzwzw).
/// </summary>
public vec5 bbaba => new vec5(z, z, w, z, w);
/// <summary>
/// Returns vec4.zzww swizzling.
/// </summary>
public vec4 zzww => new vec4(z, z, w, w);
/// <summary>
/// Returns vec4.bbaa swizzling (equivalent to vec4.zzww).
/// </summary>
public vec4 bbaa => new vec4(z, z, w, w);
/// <summary>
/// Returns vec4.zzwwx swizzling.
/// </summary>
public vec5 zzwwx => new vec5(z, z, w, w, x);
/// <summary>
/// Returns vec4.bbaar swizzling (equivalent to vec4.zzwwx).
/// </summary>
public vec5 bbaar => new vec5(z, z, w, w, x);
/// <summary>
/// Returns vec4.zzwwy swizzling.
/// </summary>
public vec5 zzwwy => new vec5(z, z, w, w, y);
/// <summary>
/// Returns vec4.bbaag swizzling (equivalent to vec4.zzwwy).
/// </summary>
public vec5 bbaag => new vec5(z, z, w, w, y);
/// <summary>
/// Returns vec4.zzwwz swizzling.
/// </summary>
public vec5 zzwwz => new vec5(z, z, w, w, z);
/// <summary>
/// Returns vec4.bbaab swizzling (equivalent to vec4.zzwwz).
/// </summary>
public vec5 bbaab => new vec5(z, z, w, w, z);
/// <summary>
/// Returns vec4.zzwww swizzling.
/// </summary>
public vec5 zzwww => new vec5(z, z, w, w, w);
/// <summary>
/// Returns vec4.bbaaa swizzling (equivalent to vec4.zzwww).
/// </summary>
public vec5 bbaaa => new vec5(z, z, w, w, w);
/// <summary>
/// Returns vec4.zw swizzling.
/// </summary>
public vec2 zw => new vec2(z, w);
/// <summary>
/// Returns vec4.ba swizzling (equivalent to vec4.zw).
/// </summary>
public vec2 ba => new vec2(z, w);
/// <summary>
/// Returns vec4.zwx swizzling.
/// </summary>
public vec3 zwx => new vec3(z, w, x);
/// <summary>
/// Returns vec4.bar swizzling (equivalent to vec4.zwx).
/// </summary>
public vec3 bar => new vec3(z, w, x);
/// <summary>
/// Returns vec4.zwxx swizzling.
/// </summary>
public vec4 zwxx => new vec4(z, w, x, x);
/// <summary>
/// Returns vec4.barr swizzling (equivalent to vec4.zwxx).
/// </summary>
public vec4 barr => new vec4(z, w, x, x);
/// <summary>
/// Returns vec4.zwxxx swizzling.
/// </summary>
public vec5 zwxxx => new vec5(z, w, x, x, x);
/// <summary>
/// Returns vec4.barrr swizzling (equivalent to vec4.zwxxx).
/// </summary>
public vec5 barrr => new vec5(z, w, x, x, x);
/// <summary>
/// Returns vec4.zwxxy swizzling.
/// </summary>
public vec5 zwxxy => new vec5(z, w, x, x, y);
/// <summary>
/// Returns vec4.barrg swizzling (equivalent to vec4.zwxxy).
/// </summary>
public vec5 barrg => new vec5(z, w, x, x, y);
/// <summary>
/// Returns vec4.zwxxz swizzling.
/// </summary>
public vec5 zwxxz => new vec5(z, w, x, x, z);
/// <summary>
/// Returns vec4.barrb swizzling (equivalent to vec4.zwxxz).
/// </summary>
public vec5 barrb => new vec5(z, w, x, x, z);
/// <summary>
/// Returns vec4.zwxxw swizzling.
/// </summary>
public vec5 zwxxw => new vec5(z, w, x, x, w);
/// <summary>
/// Returns vec4.barra swizzling (equivalent to vec4.zwxxw).
/// </summary>
public vec5 barra => new vec5(z, w, x, x, w);
/// <summary>
/// Returns vec4.zwxy swizzling.
/// </summary>
public vec4 zwxy => new vec4(z, w, x, y);
/// <summary>
/// Returns vec4.barg swizzling (equivalent to vec4.zwxy).
/// </summary>
public vec4 barg => new vec4(z, w, x, y);
/// <summary>
/// Returns vec4.zwxyx swizzling.
/// </summary>
public vec5 zwxyx => new vec5(z, w, x, y, x);
/// <summary>
/// Returns vec4.bargr swizzling (equivalent to vec4.zwxyx).
/// </summary>
public vec5 bargr => new vec5(z, w, x, y, x);
/// <summary>
/// Returns vec4.zwxyy swizzling.
/// </summary>
public vec5 zwxyy => new vec5(z, w, x, y, y);
/// <summary>
/// Returns vec4.bargg swizzling (equivalent to vec4.zwxyy).
/// </summary>
public vec5 bargg => new vec5(z, w, x, y, y);
/// <summary>
/// Returns vec4.zwxyz swizzling.
/// </summary>
public vec5 zwxyz => new vec5(z, w, x, y, z);
/// <summary>
/// Returns vec4.bargb swizzling (equivalent to vec4.zwxyz).
/// </summary>
public vec5 bargb => new vec5(z, w, x, y, z);
/// <summary>
/// Returns vec4.zwxyw swizzling.
/// </summary>
public vec5 zwxyw => new vec5(z, w, x, y, w);
/// <summary>
/// Returns vec4.barga swizzling (equivalent to vec4.zwxyw).
/// </summary>
public vec5 barga => new vec5(z, w, x, y, w);
/// <summary>
/// Returns vec4.zwxz swizzling.
/// </summary>
public vec4 zwxz => new vec4(z, w, x, z);
/// <summary>
/// Returns vec4.barb swizzling (equivalent to vec4.zwxz).
/// </summary>
public vec4 barb => new vec4(z, w, x, z);
/// <summary>
/// Returns vec4.zwxzx swizzling.
/// </summary>
public vec5 zwxzx => new vec5(z, w, x, z, x);
/// <summary>
/// Returns vec4.barbr swizzling (equivalent to vec4.zwxzx).
/// </summary>
public vec5 barbr => new vec5(z, w, x, z, x);
/// <summary>
/// Returns vec4.zwxzy swizzling.
/// </summary>
public vec5 zwxzy => new vec5(z, w, x, z, y);
/// <summary>
/// Returns vec4.barbg swizzling (equivalent to vec4.zwxzy).
/// </summary>
public vec5 barbg => new vec5(z, w, x, z, y);
/// <summary>
/// Returns vec4.zwxzz swizzling.
/// </summary>
public vec5 zwxzz => new vec5(z, w, x, z, z);
/// <summary>
/// Returns vec4.barbb swizzling (equivalent to vec4.zwxzz).
/// </summary>
public vec5 barbb => new vec5(z, w, x, z, z);
/// <summary>
/// Returns vec4.zwxzw swizzling.
/// </summary>
public vec5 zwxzw => new vec5(z, w, x, z, w);
/// <summary>
/// Returns vec4.barba swizzling (equivalent to vec4.zwxzw).
/// </summary>
public vec5 barba => new vec5(z, w, x, z, w);
/// <summary>
/// Returns vec4.zwxw swizzling.
/// </summary>
public vec4 zwxw => new vec4(z, w, x, w);
/// <summary>
/// Returns vec4.bara swizzling (equivalent to vec4.zwxw).
/// </summary>
public vec4 bara => new vec4(z, w, x, w);
/// <summary>
/// Returns vec4.zwxwx swizzling.
/// </summary>
public vec5 zwxwx => new vec5(z, w, x, w, x);
/// <summary>
/// Returns vec4.barar swizzling (equivalent to vec4.zwxwx).
/// </summary>
public vec5 barar => new vec5(z, w, x, w, x);
/// <summary>
/// Returns vec4.zwxwy swizzling.
/// </summary>
public vec5 zwxwy => new vec5(z, w, x, w, y);
/// <summary>
/// Returns vec4.barag swizzling (equivalent to vec4.zwxwy).
/// </summary>
public vec5 barag => new vec5(z, w, x, w, y);
/// <summary>
/// Returns vec4.zwxwz swizzling.
/// </summary>
public vec5 zwxwz => new vec5(z, w, x, w, z);
/// <summary>
/// Returns vec4.barab swizzling (equivalent to vec4.zwxwz).
/// </summary>
public vec5 barab => new vec5(z, w, x, w, z);
/// <summary>
/// Returns vec4.zwxww swizzling.
/// </summary>
public vec5 zwxww => new vec5(z, w, x, w, w);
/// <summary>
/// Returns vec4.baraa swizzling (equivalent to vec4.zwxww).
/// </summary>
public vec5 baraa => new vec5(z, w, x, w, w);
/// <summary>
/// Returns vec4.zwy swizzling.
/// </summary>
public vec3 zwy => new vec3(z, w, y);
/// <summary>
/// Returns vec4.bag swizzling (equivalent to vec4.zwy).
/// </summary>
public vec3 bag => new vec3(z, w, y);
/// <summary>
/// Returns vec4.zwyx swizzling.
/// </summary>
public vec4 zwyx => new vec4(z, w, y, x);
/// <summary>
/// Returns vec4.bagr swizzling (equivalent to vec4.zwyx).
/// </summary>
public vec4 bagr => new vec4(z, w, y, x);
/// <summary>
/// Returns vec4.zwyxx swizzling.
/// </summary>
public vec5 zwyxx => new vec5(z, w, y, x, x);
/// <summary>
/// Returns vec4.bagrr swizzling (equivalent to vec4.zwyxx).
/// </summary>
public vec5 bagrr => new vec5(z, w, y, x, x);
/// <summary>
/// Returns vec4.zwyxy swizzling.
/// </summary>
public vec5 zwyxy => new vec5(z, w, y, x, y);
/// <summary>
/// Returns vec4.bagrg swizzling (equivalent to vec4.zwyxy).
/// </summary>
public vec5 bagrg => new vec5(z, w, y, x, y);
/// <summary>
/// Returns vec4.zwyxz swizzling.
/// </summary>
public vec5 zwyxz => new vec5(z, w, y, x, z);
/// <summary>
/// Returns vec4.bagrb swizzling (equivalent to vec4.zwyxz).
/// </summary>
public vec5 bagrb => new vec5(z, w, y, x, z);
/// <summary>
/// Returns vec4.zwyxw swizzling.
/// </summary>
public vec5 zwyxw => new vec5(z, w, y, x, w);
/// <summary>
/// Returns vec4.bagra swizzling (equivalent to vec4.zwyxw).
/// </summary>
public vec5 bagra => new vec5(z, w, y, x, w);
/// <summary>
/// Returns vec4.zwyy swizzling.
/// </summary>
public vec4 zwyy => new vec4(z, w, y, y);
/// <summary>
/// Returns vec4.bagg swizzling (equivalent to vec4.zwyy).
/// </summary>
public vec4 bagg => new vec4(z, w, y, y);
/// <summary>
/// Returns vec4.zwyyx swizzling.
/// </summary>
public vec5 zwyyx => new vec5(z, w, y, y, x);
/// <summary>
/// Returns vec4.baggr swizzling (equivalent to vec4.zwyyx).
/// </summary>
public vec5 baggr => new vec5(z, w, y, y, x);
/// <summary>
/// Returns vec4.zwyyy swizzling.
/// </summary>
public vec5 zwyyy => new vec5(z, w, y, y, y);
/// <summary>
/// Returns vec4.baggg swizzling (equivalent to vec4.zwyyy).
/// </summary>
public vec5 baggg => new vec5(z, w, y, y, y);
/// <summary>
/// Returns vec4.zwyyz swizzling.
/// </summary>
public vec5 zwyyz => new vec5(z, w, y, y, z);
/// <summary>
/// Returns vec4.baggb swizzling (equivalent to vec4.zwyyz).
/// </summary>
public vec5 baggb => new vec5(z, w, y, y, z);
/// <summary>
/// Returns vec4.zwyyw swizzling.
/// </summary>
public vec5 zwyyw => new vec5(z, w, y, y, w);
/// <summary>
/// Returns vec4.bagga swizzling (equivalent to vec4.zwyyw).
/// </summary>
public vec5 bagga => new vec5(z, w, y, y, w);
/// <summary>
/// Returns vec4.zwyz swizzling.
/// </summary>
public vec4 zwyz => new vec4(z, w, y, z);
/// <summary>
/// Returns vec4.bagb swizzling (equivalent to vec4.zwyz).
/// </summary>
public vec4 bagb => new vec4(z, w, y, z);
/// <summary>
/// Returns vec4.zwyzx swizzling.
/// </summary>
public vec5 zwyzx => new vec5(z, w, y, z, x);
/// <summary>
/// Returns vec4.bagbr swizzling (equivalent to vec4.zwyzx).
/// </summary>
public vec5 bagbr => new vec5(z, w, y, z, x);
/// <summary>
/// Returns vec4.zwyzy swizzling.
/// </summary>
public vec5 zwyzy => new vec5(z, w, y, z, y);
/// <summary>
/// Returns vec4.bagbg swizzling (equivalent to vec4.zwyzy).
/// </summary>
public vec5 bagbg => new vec5(z, w, y, z, y);
/// <summary>
/// Returns vec4.zwyzz swizzling.
/// </summary>
public vec5 zwyzz => new vec5(z, w, y, z, z);
/// <summary>
/// Returns vec4.bagbb swizzling (equivalent to vec4.zwyzz).
/// </summary>
public vec5 bagbb => new vec5(z, w, y, z, z);
/// <summary>
/// Returns vec4.zwyzw swizzling.
/// </summary>
public vec5 zwyzw => new vec5(z, w, y, z, w);
/// <summary>
/// Returns vec4.bagba swizzling (equivalent to vec4.zwyzw).
/// </summary>
public vec5 bagba => new vec5(z, w, y, z, w);
/// <summary>
/// Returns vec4.zwyw swizzling.
/// </summary>
public vec4 zwyw => new vec4(z, w, y, w);
/// <summary>
/// Returns vec4.baga swizzling (equivalent to vec4.zwyw).
/// </summary>
public vec4 baga => new vec4(z, w, y, w);
/// <summary>
/// Returns vec4.zwywx swizzling.
/// </summary>
public vec5 zwywx => new vec5(z, w, y, w, x);
/// <summary>
/// Returns vec4.bagar swizzling (equivalent to vec4.zwywx).
/// </summary>
public vec5 bagar => new vec5(z, w, y, w, x);
/// <summary>
/// Returns vec4.zwywy swizzling.
/// </summary>
public vec5 zwywy => new vec5(z, w, y, w, y);
/// <summary>
/// Returns vec4.bagag swizzling (equivalent to vec4.zwywy).
/// </summary>
public vec5 bagag => new vec5(z, w, y, w, y);
/// <summary>
/// Returns vec4.zwywz swizzling.
/// </summary>
public vec5 zwywz => new vec5(z, w, y, w, z);
/// <summary>
/// Returns vec4.bagab swizzling (equivalent to vec4.zwywz).
/// </summary>
public vec5 bagab => new vec5(z, w, y, w, z);
/// <summary>
/// Returns vec4.zwyww swizzling.
/// </summary>
public vec5 zwyww => new vec5(z, w, y, w, w);
/// <summary>
/// Returns vec4.bagaa swizzling (equivalent to vec4.zwyww).
/// </summary>
public vec5 bagaa => new vec5(z, w, y, w, w);
/// <summary>
/// Returns vec4.zwz swizzling.
/// </summary>
public vec3 zwz => new vec3(z, w, z);
/// <summary>
/// Returns vec4.bab swizzling (equivalent to vec4.zwz).
/// </summary>
public vec3 bab => new vec3(z, w, z);
/// <summary>
/// Returns vec4.zwzx swizzling.
/// </summary>
public vec4 zwzx => new vec4(z, w, z, x);
/// <summary>
/// Returns vec4.babr swizzling (equivalent to vec4.zwzx).
/// </summary>
public vec4 babr => new vec4(z, w, z, x);
/// <summary>
/// Returns vec4.zwzxx swizzling.
/// </summary>
public vec5 zwzxx => new vec5(z, w, z, x, x);
/// <summary>
/// Returns vec4.babrr swizzling (equivalent to vec4.zwzxx).
/// </summary>
public vec5 babrr => new vec5(z, w, z, x, x);
/// <summary>
/// Returns vec4.zwzxy swizzling.
/// </summary>
public vec5 zwzxy => new vec5(z, w, z, x, y);
/// <summary>
/// Returns vec4.babrg swizzling (equivalent to vec4.zwzxy).
/// </summary>
public vec5 babrg => new vec5(z, w, z, x, y);
/// <summary>
/// Returns vec4.zwzxz swizzling.
/// </summary>
public vec5 zwzxz => new vec5(z, w, z, x, z);
/// <summary>
/// Returns vec4.babrb swizzling (equivalent to vec4.zwzxz).
/// </summary>
public vec5 babrb => new vec5(z, w, z, x, z);
/// <summary>
/// Returns vec4.zwzxw swizzling.
/// </summary>
public vec5 zwzxw => new vec5(z, w, z, x, w);
/// <summary>
/// Returns vec4.babra swizzling (equivalent to vec4.zwzxw).
/// </summary>
public vec5 babra => new vec5(z, w, z, x, w);
/// <summary>
/// Returns vec4.zwzy swizzling.
/// </summary>
public vec4 zwzy => new vec4(z, w, z, y);
/// <summary>
/// Returns vec4.babg swizzling (equivalent to vec4.zwzy).
/// </summary>
public vec4 babg => new vec4(z, w, z, y);
/// <summary>
/// Returns vec4.zwzyx swizzling.
/// </summary>
public vec5 zwzyx => new vec5(z, w, z, y, x);
/// <summary>
/// Returns vec4.babgr swizzling (equivalent to vec4.zwzyx).
/// </summary>
public vec5 babgr => new vec5(z, w, z, y, x);
/// <summary>
/// Returns vec4.zwzyy swizzling.
/// </summary>
public vec5 zwzyy => new vec5(z, w, z, y, y);
/// <summary>
/// Returns vec4.babgg swizzling (equivalent to vec4.zwzyy).
/// </summary>
public vec5 babgg => new vec5(z, w, z, y, y);
/// <summary>
/// Returns vec4.zwzyz swizzling.
/// </summary>
public vec5 zwzyz => new vec5(z, w, z, y, z);
/// <summary>
/// Returns vec4.babgb swizzling (equivalent to vec4.zwzyz).
/// </summary>
public vec5 babgb => new vec5(z, w, z, y, z);
/// <summary>
/// Returns vec4.zwzyw swizzling.
/// </summary>
public vec5 zwzyw => new vec5(z, w, z, y, w);
/// <summary>
/// Returns vec4.babga swizzling (equivalent to vec4.zwzyw).
/// </summary>
public vec5 babga => new vec5(z, w, z, y, w);
/// <summary>
/// Returns vec4.zwzz swizzling.
/// </summary>
public vec4 zwzz => new vec4(z, w, z, z);
/// <summary>
/// Returns vec4.babb swizzling (equivalent to vec4.zwzz).
/// </summary>
public vec4 babb => new vec4(z, w, z, z);
/// <summary>
/// Returns vec4.zwzzx swizzling.
/// </summary>
public vec5 zwzzx => new vec5(z, w, z, z, x);
/// <summary>
/// Returns vec4.babbr swizzling (equivalent to vec4.zwzzx).
/// </summary>
public vec5 babbr => new vec5(z, w, z, z, x);
/// <summary>
/// Returns vec4.zwzzy swizzling.
/// </summary>
public vec5 zwzzy => new vec5(z, w, z, z, y);
/// <summary>
/// Returns vec4.babbg swizzling (equivalent to vec4.zwzzy).
/// </summary>
public vec5 babbg => new vec5(z, w, z, z, y);
/// <summary>
/// Returns vec4.zwzzz swizzling.
/// </summary>
public vec5 zwzzz => new vec5(z, w, z, z, z);
/// <summary>
/// Returns vec4.babbb swizzling (equivalent to vec4.zwzzz).
/// </summary>
public vec5 babbb => new vec5(z, w, z, z, z);
/// <summary>
/// Returns vec4.zwzzw swizzling.
/// </summary>
public vec5 zwzzw => new vec5(z, w, z, z, w);
/// <summary>
/// Returns vec4.babba swizzling (equivalent to vec4.zwzzw).
/// </summary>
public vec5 babba => new vec5(z, w, z, z, w);
/// <summary>
/// Returns vec4.zwzw swizzling.
/// </summary>
public vec4 zwzw => new vec4(z, w, z, w);
/// <summary>
/// Returns vec4.baba swizzling (equivalent to vec4.zwzw).
/// </summary>
public vec4 baba => new vec4(z, w, z, w);
/// <summary>
/// Returns vec4.zwzwx swizzling.
/// </summary>
public vec5 zwzwx => new vec5(z, w, z, w, x);
/// <summary>
/// Returns vec4.babar swizzling (equivalent to vec4.zwzwx).
/// </summary>
public vec5 babar => new vec5(z, w, z, w, x);
/// <summary>
/// Returns vec4.zwzwy swizzling.
/// </summary>
public vec5 zwzwy => new vec5(z, w, z, w, y);
/// <summary>
/// Returns vec4.babag swizzling (equivalent to vec4.zwzwy).
/// </summary>
public vec5 babag => new vec5(z, w, z, w, y);
/// <summary>
/// Returns vec4.zwzwz swizzling.
/// </summary>
public vec5 zwzwz => new vec5(z, w, z, w, z);
/// <summary>
/// Returns vec4.babab swizzling (equivalent to vec4.zwzwz).
/// </summary>
public vec5 babab => new vec5(z, w, z, w, z);
/// <summary>
/// Returns vec4.zwzww swizzling.
/// </summary>
public vec5 zwzww => new vec5(z, w, z, w, w);
/// <summary>
/// Returns vec4.babaa swizzling (equivalent to vec4.zwzww).
/// </summary>
public vec5 babaa => new vec5(z, w, z, w, w);
/// <summary>
/// Returns vec4.zww swizzling.
/// </summary>
public vec3 zww => new vec3(z, w, w);
/// <summary>
/// Returns vec4.baa swizzling (equivalent to vec4.zww).
/// </summary>
public vec3 baa => new vec3(z, w, w);
/// <summary>
/// Returns vec4.zwwx swizzling.
/// </summary>
public vec4 zwwx => new vec4(z, w, w, x);
/// <summary>
/// Returns vec4.baar swizzling (equivalent to vec4.zwwx).
/// </summary>
public vec4 baar => new vec4(z, w, w, x);
/// <summary>
/// Returns vec4.zwwxx swizzling.
/// </summary>
public vec5 zwwxx => new vec5(z, w, w, x, x);
/// <summary>
/// Returns vec4.baarr swizzling (equivalent to vec4.zwwxx).
/// </summary>
public vec5 baarr => new vec5(z, w, w, x, x);
/// <summary>
/// Returns vec4.zwwxy swizzling.
/// </summary>
public vec5 zwwxy => new vec5(z, w, w, x, y);
/// <summary>
/// Returns vec4.baarg swizzling (equivalent to vec4.zwwxy).
/// </summary>
public vec5 baarg => new vec5(z, w, w, x, y);
/// <summary>
/// Returns vec4.zwwxz swizzling.
/// </summary>
public vec5 zwwxz => new vec5(z, w, w, x, z);
/// <summary>
/// Returns vec4.baarb swizzling (equivalent to vec4.zwwxz).
/// </summary>
public vec5 baarb => new vec5(z, w, w, x, z);
/// <summary>
/// Returns vec4.zwwxw swizzling.
/// </summary>
public vec5 zwwxw => new vec5(z, w, w, x, w);
/// <summary>
/// Returns vec4.baara swizzling (equivalent to vec4.zwwxw).
/// </summary>
public vec5 baara => new vec5(z, w, w, x, w);
/// <summary>
/// Returns vec4.zwwy swizzling.
/// </summary>
public vec4 zwwy => new vec4(z, w, w, y);
/// <summary>
/// Returns vec4.baag swizzling (equivalent to vec4.zwwy).
/// </summary>
public vec4 baag => new vec4(z, w, w, y);
/// <summary>
/// Returns vec4.zwwyx swizzling.
/// </summary>
public vec5 zwwyx => new vec5(z, w, w, y, x);
/// <summary>
/// Returns vec4.baagr swizzling (equivalent to vec4.zwwyx).
/// </summary>
public vec5 baagr => new vec5(z, w, w, y, x);
/// <summary>
/// Returns vec4.zwwyy swizzling.
/// </summary>
public vec5 zwwyy => new vec5(z, w, w, y, y);
/// <summary>
/// Returns vec4.baagg swizzling (equivalent to vec4.zwwyy).
/// </summary>
public vec5 baagg => new vec5(z, w, w, y, y);
/// <summary>
/// Returns vec4.zwwyz swizzling.
/// </summary>
public vec5 zwwyz => new vec5(z, w, w, y, z);
/// <summary>
/// Returns vec4.baagb swizzling (equivalent to vec4.zwwyz).
/// </summary>
public vec5 baagb => new vec5(z, w, w, y, z);
/// <summary>
/// Returns vec4.zwwyw swizzling.
/// </summary>
public vec5 zwwyw => new vec5(z, w, w, y, w);
/// <summary>
/// Returns vec4.baaga swizzling (equivalent to vec4.zwwyw).
/// </summary>
public vec5 baaga => new vec5(z, w, w, y, w);
/// <summary>
/// Returns vec4.zwwz swizzling.
/// </summary>
public vec4 zwwz => new vec4(z, w, w, z);
/// <summary>
/// Returns vec4.baab swizzling (equivalent to vec4.zwwz).
/// </summary>
public vec4 baab => new vec4(z, w, w, z);
/// <summary>
/// Returns vec4.zwwzx swizzling.
/// </summary>
public vec5 zwwzx => new vec5(z, w, w, z, x);
/// <summary>
/// Returns vec4.baabr swizzling (equivalent to vec4.zwwzx).
/// </summary>
public vec5 baabr => new vec5(z, w, w, z, x);
/// <summary>
/// Returns vec4.zwwzy swizzling.
/// </summary>
public vec5 zwwzy => new vec5(z, w, w, z, y);
/// <summary>
/// Returns vec4.baabg swizzling (equivalent to vec4.zwwzy).
/// </summary>
public vec5 baabg => new vec5(z, w, w, z, y);
/// <summary>
/// Returns vec4.zwwzz swizzling.
/// </summary>
public vec5 zwwzz => new vec5(z, w, w, z, z);
/// <summary>
/// Returns vec4.baabb swizzling (equivalent to vec4.zwwzz).
/// </summary>
public vec5 baabb => new vec5(z, w, w, z, z);
/// <summary>
/// Returns vec4.zwwzw swizzling.
/// </summary>
public vec5 zwwzw => new vec5(z, w, w, z, w);
/// <summary>
/// Returns vec4.baaba swizzling (equivalent to vec4.zwwzw).
/// </summary>
public vec5 baaba => new vec5(z, w, w, z, w);
/// <summary>
/// Returns vec4.zwww swizzling.
/// </summary>
public vec4 zwww => new vec4(z, w, w, w);
/// <summary>
/// Returns vec4.baaa swizzling (equivalent to vec4.zwww).
/// </summary>
public vec4 baaa => new vec4(z, w, w, w);
/// <summary>
/// Returns vec4.zwwwx swizzling.
/// </summary>
public vec5 zwwwx => new vec5(z, w, w, w, x);
/// <summary>
/// Returns vec4.baaar swizzling (equivalent to vec4.zwwwx).
/// </summary>
public vec5 baaar => new vec5(z, w, w, w, x);
/// <summary>
/// Returns vec4.zwwwy swizzling.
/// </summary>
public vec5 zwwwy => new vec5(z, w, w, w, y);
/// <summary>
/// Returns vec4.baaag swizzling (equivalent to vec4.zwwwy).
/// </summary>
public vec5 baaag => new vec5(z, w, w, w, y);
/// <summary>
/// Returns vec4.zwwwz swizzling.
/// </summary>
public vec5 zwwwz => new vec5(z, w, w, w, z);
/// <summary>
/// Returns vec4.baaab swizzling (equivalent to vec4.zwwwz).
/// </summary>
public vec5 baaab => new vec5(z, w, w, w, z);
/// <summary>
/// Returns vec4.zwwww swizzling.
/// </summary>
public vec5 zwwww => new vec5(z, w, w, w, w);
/// <summary>
/// Returns vec4.baaaa swizzling (equivalent to vec4.zwwww).
/// </summary>
public vec5 baaaa => new vec5(z, w, w, w, w);
/// <summary>
/// Returns vec4.wx swizzling.
/// </summary>
public vec2 wx => new vec2(w, x);
/// <summary>
/// Returns vec4.ar swizzling (equivalent to vec4.wx).
/// </summary>
public vec2 ar => new vec2(w, x);
/// <summary>
/// Returns vec4.wxx swizzling.
/// </summary>
public vec3 wxx => new vec3(w, x, x);
/// <summary>
/// Returns vec4.arr swizzling (equivalent to vec4.wxx).
/// </summary>
public vec3 arr => new vec3(w, x, x);
/// <summary>
/// Returns vec4.wxxx swizzling.
/// </summary>
public vec4 wxxx => new vec4(w, x, x, x);
/// <summary>
/// Returns vec4.arrr swizzling (equivalent to vec4.wxxx).
/// </summary>
public vec4 arrr => new vec4(w, x, x, x);
/// <summary>
/// Returns vec4.wxxxx swizzling.
/// </summary>
public vec5 wxxxx => new vec5(w, x, x, x, x);
/// <summary>
/// Returns vec4.arrrr swizzling (equivalent to vec4.wxxxx).
/// </summary>
public vec5 arrrr => new vec5(w, x, x, x, x);
/// <summary>
/// Returns vec4.wxxxy swizzling.
/// </summary>
public vec5 wxxxy => new vec5(w, x, x, x, y);
/// <summary>
/// Returns vec4.arrrg swizzling (equivalent to vec4.wxxxy).
/// </summary>
public vec5 arrrg => new vec5(w, x, x, x, y);
/// <summary>
/// Returns vec4.wxxxz swizzling.
/// </summary>
public vec5 wxxxz => new vec5(w, x, x, x, z);
/// <summary>
/// Returns vec4.arrrb swizzling (equivalent to vec4.wxxxz).
/// </summary>
public vec5 arrrb => new vec5(w, x, x, x, z);
/// <summary>
/// Returns vec4.wxxxw swizzling.
/// </summary>
public vec5 wxxxw => new vec5(w, x, x, x, w);
/// <summary>
/// Returns vec4.arrra swizzling (equivalent to vec4.wxxxw).
/// </summary>
public vec5 arrra => new vec5(w, x, x, x, w);
/// <summary>
/// Returns vec4.wxxy swizzling.
/// </summary>
public vec4 wxxy => new vec4(w, x, x, y);
/// <summary>
/// Returns vec4.arrg swizzling (equivalent to vec4.wxxy).
/// </summary>
public vec4 arrg => new vec4(w, x, x, y);
/// <summary>
/// Returns vec4.wxxyx swizzling.
/// </summary>
public vec5 wxxyx => new vec5(w, x, x, y, x);
/// <summary>
/// Returns vec4.arrgr swizzling (equivalent to vec4.wxxyx).
/// </summary>
public vec5 arrgr => new vec5(w, x, x, y, x);
/// <summary>
/// Returns vec4.wxxyy swizzling.
/// </summary>
public vec5 wxxyy => new vec5(w, x, x, y, y);
/// <summary>
/// Returns vec4.arrgg swizzling (equivalent to vec4.wxxyy).
/// </summary>
public vec5 arrgg => new vec5(w, x, x, y, y);
/// <summary>
/// Returns vec4.wxxyz swizzling.
/// </summary>
public vec5 wxxyz => new vec5(w, x, x, y, z);
/// <summary>
/// Returns vec4.arrgb swizzling (equivalent to vec4.wxxyz).
/// </summary>
public vec5 arrgb => new vec5(w, x, x, y, z);
/// <summary>
/// Returns vec4.wxxyw swizzling.
/// </summary>
public vec5 wxxyw => new vec5(w, x, x, y, w);
/// <summary>
/// Returns vec4.arrga swizzling (equivalent to vec4.wxxyw).
/// </summary>
public vec5 arrga => new vec5(w, x, x, y, w);
/// <summary>
/// Returns vec4.wxxz swizzling.
/// </summary>
public vec4 wxxz => new vec4(w, x, x, z);
/// <summary>
/// Returns vec4.arrb swizzling (equivalent to vec4.wxxz).
/// </summary>
public vec4 arrb => new vec4(w, x, x, z);
/// <summary>
/// Returns vec4.wxxzx swizzling.
/// </summary>
public vec5 wxxzx => new vec5(w, x, x, z, x);
/// <summary>
/// Returns vec4.arrbr swizzling (equivalent to vec4.wxxzx).
/// </summary>
public vec5 arrbr => new vec5(w, x, x, z, x);
/// <summary>
/// Returns vec4.wxxzy swizzling.
/// </summary>
public vec5 wxxzy => new vec5(w, x, x, z, y);
/// <summary>
/// Returns vec4.arrbg swizzling (equivalent to vec4.wxxzy).
/// </summary>
public vec5 arrbg => new vec5(w, x, x, z, y);
/// <summary>
/// Returns vec4.wxxzz swizzling.
/// </summary>
public vec5 wxxzz => new vec5(w, x, x, z, z);
/// <summary>
/// Returns vec4.arrbb swizzling (equivalent to vec4.wxxzz).
/// </summary>
public vec5 arrbb => new vec5(w, x, x, z, z);
/// <summary>
/// Returns vec4.wxxzw swizzling.
/// </summary>
public vec5 wxxzw => new vec5(w, x, x, z, w);
/// <summary>
/// Returns vec4.arrba swizzling (equivalent to vec4.wxxzw).
/// </summary>
public vec5 arrba => new vec5(w, x, x, z, w);
/// <summary>
/// Returns vec4.wxxw swizzling.
/// </summary>
public vec4 wxxw => new vec4(w, x, x, w);
/// <summary>
/// Returns vec4.arra swizzling (equivalent to vec4.wxxw).
/// </summary>
public vec4 arra => new vec4(w, x, x, w);
/// <summary>
/// Returns vec4.wxxwx swizzling.
/// </summary>
public vec5 wxxwx => new vec5(w, x, x, w, x);
/// <summary>
/// Returns vec4.arrar swizzling (equivalent to vec4.wxxwx).
/// </summary>
public vec5 arrar => new vec5(w, x, x, w, x);
/// <summary>
/// Returns vec4.wxxwy swizzling.
/// </summary>
public vec5 wxxwy => new vec5(w, x, x, w, y);
/// <summary>
/// Returns vec4.arrag swizzling (equivalent to vec4.wxxwy).
/// </summary>
public vec5 arrag => new vec5(w, x, x, w, y);
/// <summary>
/// Returns vec4.wxxwz swizzling.
/// </summary>
public vec5 wxxwz => new vec5(w, x, x, w, z);
/// <summary>
/// Returns vec4.arrab swizzling (equivalent to vec4.wxxwz).
/// </summary>
public vec5 arrab => new vec5(w, x, x, w, z);
/// <summary>
/// Returns vec4.wxxww swizzling.
/// </summary>
public vec5 wxxww => new vec5(w, x, x, w, w);
/// <summary>
/// Returns vec4.arraa swizzling (equivalent to vec4.wxxww).
/// </summary>
public vec5 arraa => new vec5(w, x, x, w, w);
/// <summary>
/// Returns vec4.wxy swizzling.
/// </summary>
public vec3 wxy => new vec3(w, x, y);
/// <summary>
/// Returns vec4.arg swizzling (equivalent to vec4.wxy).
/// </summary>
public vec3 arg => new vec3(w, x, y);
/// <summary>
/// Returns vec4.wxyx swizzling.
/// </summary>
public vec4 wxyx => new vec4(w, x, y, x);
/// <summary>
/// Returns vec4.argr swizzling (equivalent to vec4.wxyx).
/// </summary>
public vec4 argr => new vec4(w, x, y, x);
/// <summary>
/// Returns vec4.wxyxx swizzling.
/// </summary>
public vec5 wxyxx => new vec5(w, x, y, x, x);
/// <summary>
/// Returns vec4.argrr swizzling (equivalent to vec4.wxyxx).
/// </summary>
public vec5 argrr => new vec5(w, x, y, x, x);
/// <summary>
/// Returns vec4.wxyxy swizzling.
/// </summary>
public vec5 wxyxy => new vec5(w, x, y, x, y);
/// <summary>
/// Returns vec4.argrg swizzling (equivalent to vec4.wxyxy).
/// </summary>
public vec5 argrg => new vec5(w, x, y, x, y);
/// <summary>
/// Returns vec4.wxyxz swizzling.
/// </summary>
public vec5 wxyxz => new vec5(w, x, y, x, z);
/// <summary>
/// Returns vec4.argrb swizzling (equivalent to vec4.wxyxz).
/// </summary>
public vec5 argrb => new vec5(w, x, y, x, z);
/// <summary>
/// Returns vec4.wxyxw swizzling.
/// </summary>
public vec5 wxyxw => new vec5(w, x, y, x, w);
/// <summary>
/// Returns vec4.argra swizzling (equivalent to vec4.wxyxw).
/// </summary>
public vec5 argra => new vec5(w, x, y, x, w);
/// <summary>
/// Returns vec4.wxyy swizzling.
/// </summary>
public vec4 wxyy => new vec4(w, x, y, y);
/// <summary>
/// Returns vec4.argg swizzling (equivalent to vec4.wxyy).
/// </summary>
public vec4 argg => new vec4(w, x, y, y);
/// <summary>
/// Returns vec4.wxyyx swizzling.
/// </summary>
public vec5 wxyyx => new vec5(w, x, y, y, x);
/// <summary>
/// Returns vec4.arggr swizzling (equivalent to vec4.wxyyx).
/// </summary>
public vec5 arggr => new vec5(w, x, y, y, x);
/// <summary>
/// Returns vec4.wxyyy swizzling.
/// </summary>
public vec5 wxyyy => new vec5(w, x, y, y, y);
/// <summary>
/// Returns vec4.arggg swizzling (equivalent to vec4.wxyyy).
/// </summary>
public vec5 arggg => new vec5(w, x, y, y, y);
/// <summary>
/// Returns vec4.wxyyz swizzling.
/// </summary>
public vec5 wxyyz => new vec5(w, x, y, y, z);
/// <summary>
/// Returns vec4.arggb swizzling (equivalent to vec4.wxyyz).
/// </summary>
public vec5 arggb => new vec5(w, x, y, y, z);
/// <summary>
/// Returns vec4.wxyyw swizzling.
/// </summary>
public vec5 wxyyw => new vec5(w, x, y, y, w);
/// <summary>
/// Returns vec4.argga swizzling (equivalent to vec4.wxyyw).
/// </summary>
public vec5 argga => new vec5(w, x, y, y, w);
/// <summary>
/// Returns vec4.wxyz swizzling.
/// </summary>
public vec4 wxyz => new vec4(w, x, y, z);
/// <summary>
/// Returns vec4.argb swizzling (equivalent to vec4.wxyz).
/// </summary>
public vec4 argb => new vec4(w, x, y, z);
/// <summary>
/// Returns vec4.wxyzx swizzling.
/// </summary>
public vec5 wxyzx => new vec5(w, x, y, z, x);
/// <summary>
/// Returns vec4.argbr swizzling (equivalent to vec4.wxyzx).
/// </summary>
public vec5 argbr => new vec5(w, x, y, z, x);
/// <summary>
/// Returns vec4.wxyzy swizzling.
/// </summary>
public vec5 wxyzy => new vec5(w, x, y, z, y);
/// <summary>
/// Returns vec4.argbg swizzling (equivalent to vec4.wxyzy).
/// </summary>
public vec5 argbg => new vec5(w, x, y, z, y);
/// <summary>
/// Returns vec4.wxyzz swizzling.
/// </summary>
public vec5 wxyzz => new vec5(w, x, y, z, z);
/// <summary>
/// Returns vec4.argbb swizzling (equivalent to vec4.wxyzz).
/// </summary>
public vec5 argbb => new vec5(w, x, y, z, z);
/// <summary>
/// Returns vec4.wxyzw swizzling.
/// </summary>
public vec5 wxyzw => new vec5(w, x, y, z, w);
/// <summary>
/// Returns vec4.argba swizzling (equivalent to vec4.wxyzw).
/// </summary>
public vec5 argba => new vec5(w, x, y, z, w);
/// <summary>
/// Returns vec4.wxyw swizzling.
/// </summary>
public vec4 wxyw => new vec4(w, x, y, w);
/// <summary>
/// Returns vec4.arga swizzling (equivalent to vec4.wxyw).
/// </summary>
public vec4 arga => new vec4(w, x, y, w);
/// <summary>
/// Returns vec4.wxywx swizzling.
/// </summary>
public vec5 wxywx => new vec5(w, x, y, w, x);
/// <summary>
/// Returns vec4.argar swizzling (equivalent to vec4.wxywx).
/// </summary>
public vec5 argar => new vec5(w, x, y, w, x);
/// <summary>
/// Returns vec4.wxywy swizzling.
/// </summary>
public vec5 wxywy => new vec5(w, x, y, w, y);
/// <summary>
/// Returns vec4.argag swizzling (equivalent to vec4.wxywy).
/// </summary>
public vec5 argag => new vec5(w, x, y, w, y);
/// <summary>
/// Returns vec4.wxywz swizzling.
/// </summary>
public vec5 wxywz => new vec5(w, x, y, w, z);
/// <summary>
/// Returns vec4.argab swizzling (equivalent to vec4.wxywz).
/// </summary>
public vec5 argab => new vec5(w, x, y, w, z);
/// <summary>
/// Returns vec4.wxyww swizzling.
/// </summary>
public vec5 wxyww => new vec5(w, x, y, w, w);
/// <summary>
/// Returns vec4.argaa swizzling (equivalent to vec4.wxyww).
/// </summary>
public vec5 argaa => new vec5(w, x, y, w, w);
/// <summary>
/// Returns vec4.wxz swizzling.
/// </summary>
public vec3 wxz => new vec3(w, x, z);
/// <summary>
/// Returns vec4.arb swizzling (equivalent to vec4.wxz).
/// </summary>
public vec3 arb => new vec3(w, x, z);
/// <summary>
/// Returns vec4.wxzx swizzling.
/// </summary>
public vec4 wxzx => new vec4(w, x, z, x);
/// <summary>
/// Returns vec4.arbr swizzling (equivalent to vec4.wxzx).
/// </summary>
public vec4 arbr => new vec4(w, x, z, x);
/// <summary>
/// Returns vec4.wxzxx swizzling.
/// </summary>
public vec5 wxzxx => new vec5(w, x, z, x, x);
/// <summary>
/// Returns vec4.arbrr swizzling (equivalent to vec4.wxzxx).
/// </summary>
public vec5 arbrr => new vec5(w, x, z, x, x);
/// <summary>
/// Returns vec4.wxzxy swizzling.
/// </summary>
public vec5 wxzxy => new vec5(w, x, z, x, y);
/// <summary>
/// Returns vec4.arbrg swizzling (equivalent to vec4.wxzxy).
/// </summary>
public vec5 arbrg => new vec5(w, x, z, x, y);
/// <summary>
/// Returns vec4.wxzxz swizzling.
/// </summary>
public vec5 wxzxz => new vec5(w, x, z, x, z);
/// <summary>
/// Returns vec4.arbrb swizzling (equivalent to vec4.wxzxz).
/// </summary>
public vec5 arbrb => new vec5(w, x, z, x, z);
/// <summary>
/// Returns vec4.wxzxw swizzling.
/// </summary>
public vec5 wxzxw => new vec5(w, x, z, x, w);
/// <summary>
/// Returns vec4.arbra swizzling (equivalent to vec4.wxzxw).
/// </summary>
public vec5 arbra => new vec5(w, x, z, x, w);
/// <summary>
/// Returns vec4.wxzy swizzling.
/// </summary>
public vec4 wxzy => new vec4(w, x, z, y);
/// <summary>
/// Returns vec4.arbg swizzling (equivalent to vec4.wxzy).
/// </summary>
public vec4 arbg => new vec4(w, x, z, y);
/// <summary>
/// Returns vec4.wxzyx swizzling.
/// </summary>
public vec5 wxzyx => new vec5(w, x, z, y, x);
/// <summary>
/// Returns vec4.arbgr swizzling (equivalent to vec4.wxzyx).
/// </summary>
public vec5 arbgr => new vec5(w, x, z, y, x);
/// <summary>
/// Returns vec4.wxzyy swizzling.
/// </summary>
public vec5 wxzyy => new vec5(w, x, z, y, y);
/// <summary>
/// Returns vec4.arbgg swizzling (equivalent to vec4.wxzyy).
/// </summary>
public vec5 arbgg => new vec5(w, x, z, y, y);
/// <summary>
/// Returns vec4.wxzyz swizzling.
/// </summary>
public vec5 wxzyz => new vec5(w, x, z, y, z);
/// <summary>
/// Returns vec4.arbgb swizzling (equivalent to vec4.wxzyz).
/// </summary>
public vec5 arbgb => new vec5(w, x, z, y, z);
/// <summary>
/// Returns vec4.wxzyw swizzling.
/// </summary>
public vec5 wxzyw => new vec5(w, x, z, y, w);
/// <summary>
/// Returns vec4.arbga swizzling (equivalent to vec4.wxzyw).
/// </summary>
public vec5 arbga => new vec5(w, x, z, y, w);
/// <summary>
/// Returns vec4.wxzz swizzling.
/// </summary>
public vec4 wxzz => new vec4(w, x, z, z);
/// <summary>
/// Returns vec4.arbb swizzling (equivalent to vec4.wxzz).
/// </summary>
public vec4 arbb => new vec4(w, x, z, z);
/// <summary>
/// Returns vec4.wxzzx swizzling.
/// </summary>
public vec5 wxzzx => new vec5(w, x, z, z, x);
/// <summary>
/// Returns vec4.arbbr swizzling (equivalent to vec4.wxzzx).
/// </summary>
public vec5 arbbr => new vec5(w, x, z, z, x);
/// <summary>
/// Returns vec4.wxzzy swizzling.
/// </summary>
public vec5 wxzzy => new vec5(w, x, z, z, y);
/// <summary>
/// Returns vec4.arbbg swizzling (equivalent to vec4.wxzzy).
/// </summary>
public vec5 arbbg => new vec5(w, x, z, z, y);
/// <summary>
/// Returns vec4.wxzzz swizzling.
/// </summary>
public vec5 wxzzz => new vec5(w, x, z, z, z);
/// <summary>
/// Returns vec4.arbbb swizzling (equivalent to vec4.wxzzz).
/// </summary>
public vec5 arbbb => new vec5(w, x, z, z, z);
/// <summary>
/// Returns vec4.wxzzw swizzling.
/// </summary>
public vec5 wxzzw => new vec5(w, x, z, z, w);
/// <summary>
/// Returns vec4.arbba swizzling (equivalent to vec4.wxzzw).
/// </summary>
public vec5 arbba => new vec5(w, x, z, z, w);
/// <summary>
/// Returns vec4.wxzw swizzling.
/// </summary>
public vec4 wxzw => new vec4(w, x, z, w);
/// <summary>
/// Returns vec4.arba swizzling (equivalent to vec4.wxzw).
/// </summary>
public vec4 arba => new vec4(w, x, z, w);
/// <summary>
/// Returns vec4.wxzwx swizzling.
/// </summary>
public vec5 wxzwx => new vec5(w, x, z, w, x);
/// <summary>
/// Returns vec4.arbar swizzling (equivalent to vec4.wxzwx).
/// </summary>
public vec5 arbar => new vec5(w, x, z, w, x);
/// <summary>
/// Returns vec4.wxzwy swizzling.
/// </summary>
public vec5 wxzwy => new vec5(w, x, z, w, y);
/// <summary>
/// Returns vec4.arbag swizzling (equivalent to vec4.wxzwy).
/// </summary>
public vec5 arbag => new vec5(w, x, z, w, y);
/// <summary>
/// Returns vec4.wxzwz swizzling.
/// </summary>
public vec5 wxzwz => new vec5(w, x, z, w, z);
/// <summary>
/// Returns vec4.arbab swizzling (equivalent to vec4.wxzwz).
/// </summary>
public vec5 arbab => new vec5(w, x, z, w, z);
/// <summary>
/// Returns vec4.wxzww swizzling.
/// </summary>
public vec5 wxzww => new vec5(w, x, z, w, w);
/// <summary>
/// Returns vec4.arbaa swizzling (equivalent to vec4.wxzww).
/// </summary>
public vec5 arbaa => new vec5(w, x, z, w, w);
/// <summary>
/// Returns vec4.wxw swizzling.
/// </summary>
public vec3 wxw => new vec3(w, x, w);
/// <summary>
/// Returns vec4.ara swizzling (equivalent to vec4.wxw).
/// </summary>
public vec3 ara => new vec3(w, x, w);
/// <summary>
/// Returns vec4.wxwx swizzling.
/// </summary>
public vec4 wxwx => new vec4(w, x, w, x);
/// <summary>
/// Returns vec4.arar swizzling (equivalent to vec4.wxwx).
/// </summary>
public vec4 arar => new vec4(w, x, w, x);
/// <summary>
/// Returns vec4.wxwxx swizzling.
/// </summary>
public vec5 wxwxx => new vec5(w, x, w, x, x);
/// <summary>
/// Returns vec4.ararr swizzling (equivalent to vec4.wxwxx).
/// </summary>
public vec5 ararr => new vec5(w, x, w, x, x);
/// <summary>
/// Returns vec4.wxwxy swizzling.
/// </summary>
public vec5 wxwxy => new vec5(w, x, w, x, y);
/// <summary>
/// Returns vec4.ararg swizzling (equivalent to vec4.wxwxy).
/// </summary>
public vec5 ararg => new vec5(w, x, w, x, y);
/// <summary>
/// Returns vec4.wxwxz swizzling.
/// </summary>
public vec5 wxwxz => new vec5(w, x, w, x, z);
/// <summary>
/// Returns vec4.ararb swizzling (equivalent to vec4.wxwxz).
/// </summary>
public vec5 ararb => new vec5(w, x, w, x, z);
/// <summary>
/// Returns vec4.wxwxw swizzling.
/// </summary>
public vec5 wxwxw => new vec5(w, x, w, x, w);
/// <summary>
/// Returns vec4.arara swizzling (equivalent to vec4.wxwxw).
/// </summary>
public vec5 arara => new vec5(w, x, w, x, w);
/// <summary>
/// Returns vec4.wxwy swizzling.
/// </summary>
public vec4 wxwy => new vec4(w, x, w, y);
/// <summary>
/// Returns vec4.arag swizzling (equivalent to vec4.wxwy).
/// </summary>
public vec4 arag => new vec4(w, x, w, y);
/// <summary>
/// Returns vec4.wxwyx swizzling.
/// </summary>
public vec5 wxwyx => new vec5(w, x, w, y, x);
/// <summary>
/// Returns vec4.aragr swizzling (equivalent to vec4.wxwyx).
/// </summary>
public vec5 aragr => new vec5(w, x, w, y, x);
/// <summary>
/// Returns vec4.wxwyy swizzling.
/// </summary>
public vec5 wxwyy => new vec5(w, x, w, y, y);
/// <summary>
/// Returns vec4.aragg swizzling (equivalent to vec4.wxwyy).
/// </summary>
public vec5 aragg => new vec5(w, x, w, y, y);
/// <summary>
/// Returns vec4.wxwyz swizzling.
/// </summary>
public vec5 wxwyz => new vec5(w, x, w, y, z);
/// <summary>
/// Returns vec4.aragb swizzling (equivalent to vec4.wxwyz).
/// </summary>
public vec5 aragb => new vec5(w, x, w, y, z);
/// <summary>
/// Returns vec4.wxwyw swizzling.
/// </summary>
public vec5 wxwyw => new vec5(w, x, w, y, w);
/// <summary>
/// Returns vec4.araga swizzling (equivalent to vec4.wxwyw).
/// </summary>
public vec5 araga => new vec5(w, x, w, y, w);
/// <summary>
/// Returns vec4.wxwz swizzling.
/// </summary>
public vec4 wxwz => new vec4(w, x, w, z);
/// <summary>
/// Returns vec4.arab swizzling (equivalent to vec4.wxwz).
/// </summary>
public vec4 arab => new vec4(w, x, w, z);
/// <summary>
/// Returns vec4.wxwzx swizzling.
/// </summary>
public vec5 wxwzx => new vec5(w, x, w, z, x);
/// <summary>
/// Returns vec4.arabr swizzling (equivalent to vec4.wxwzx).
/// </summary>
public vec5 arabr => new vec5(w, x, w, z, x);
/// <summary>
/// Returns vec4.wxwzy swizzling.
/// </summary>
public vec5 wxwzy => new vec5(w, x, w, z, y);
/// <summary>
/// Returns vec4.arabg swizzling (equivalent to vec4.wxwzy).
/// </summary>
public vec5 arabg => new vec5(w, x, w, z, y);
/// <summary>
/// Returns vec4.wxwzz swizzling.
/// </summary>
public vec5 wxwzz => new vec5(w, x, w, z, z);
/// <summary>
/// Returns vec4.arabb swizzling (equivalent to vec4.wxwzz).
/// </summary>
public vec5 arabb => new vec5(w, x, w, z, z);
/// <summary>
/// Returns vec4.wxwzw swizzling.
/// </summary>
public vec5 wxwzw => new vec5(w, x, w, z, w);
/// <summary>
/// Returns vec4.araba swizzling (equivalent to vec4.wxwzw).
/// </summary>
public vec5 araba => new vec5(w, x, w, z, w);
/// <summary>
/// Returns vec4.wxww swizzling.
/// </summary>
public vec4 wxww => new vec4(w, x, w, w);
/// <summary>
/// Returns vec4.araa swizzling (equivalent to vec4.wxww).
/// </summary>
public vec4 araa => new vec4(w, x, w, w);
/// <summary>
/// Returns vec4.wxwwx swizzling.
/// </summary>
public vec5 wxwwx => new vec5(w, x, w, w, x);
/// <summary>
/// Returns vec4.araar swizzling (equivalent to vec4.wxwwx).
/// </summary>
public vec5 araar => new vec5(w, x, w, w, x);
/// <summary>
/// Returns vec4.wxwwy swizzling.
/// </summary>
public vec5 wxwwy => new vec5(w, x, w, w, y);
/// <summary>
/// Returns vec4.araag swizzling (equivalent to vec4.wxwwy).
/// </summary>
public vec5 araag => new vec5(w, x, w, w, y);
/// <summary>
/// Returns vec4.wxwwz swizzling.
/// </summary>
public vec5 wxwwz => new vec5(w, x, w, w, z);
/// <summary>
/// Returns vec4.araab swizzling (equivalent to vec4.wxwwz).
/// </summary>
public vec5 araab => new vec5(w, x, w, w, z);
/// <summary>
/// Returns vec4.wxwww swizzling.
/// </summary>
public vec5 wxwww => new vec5(w, x, w, w, w);
/// <summary>
/// Returns vec4.araaa swizzling (equivalent to vec4.wxwww).
/// </summary>
public vec5 araaa => new vec5(w, x, w, w, w);
/// <summary>
/// Returns vec4.wy swizzling.
/// </summary>
public vec2 wy => new vec2(w, y);
/// <summary>
/// Returns vec4.ag swizzling (equivalent to vec4.wy).
/// </summary>
public vec2 ag => new vec2(w, y);
/// <summary>
/// Returns vec4.wyx swizzling.
/// </summary>
public vec3 wyx => new vec3(w, y, x);
/// <summary>
/// Returns vec4.agr swizzling (equivalent to vec4.wyx).
/// </summary>
public vec3 agr => new vec3(w, y, x);
/// <summary>
/// Returns vec4.wyxx swizzling.
/// </summary>
public vec4 wyxx => new vec4(w, y, x, x);
/// <summary>
/// Returns vec4.agrr swizzling (equivalent to vec4.wyxx).
/// </summary>
public vec4 agrr => new vec4(w, y, x, x);
/// <summary>
/// Returns vec4.wyxxx swizzling.
/// </summary>
public vec5 wyxxx => new vec5(w, y, x, x, x);
/// <summary>
/// Returns vec4.agrrr swizzling (equivalent to vec4.wyxxx).
/// </summary>
public vec5 agrrr => new vec5(w, y, x, x, x);
/// <summary>
/// Returns vec4.wyxxy swizzling.
/// </summary>
public vec5 wyxxy => new vec5(w, y, x, x, y);
/// <summary>
/// Returns vec4.agrrg swizzling (equivalent to vec4.wyxxy).
/// </summary>
public vec5 agrrg => new vec5(w, y, x, x, y);
/// <summary>
/// Returns vec4.wyxxz swizzling.
/// </summary>
public vec5 wyxxz => new vec5(w, y, x, x, z);
/// <summary>
/// Returns vec4.agrrb swizzling (equivalent to vec4.wyxxz).
/// </summary>
public vec5 agrrb => new vec5(w, y, x, x, z);
/// <summary>
/// Returns vec4.wyxxw swizzling.
/// </summary>
public vec5 wyxxw => new vec5(w, y, x, x, w);
/// <summary>
/// Returns vec4.agrra swizzling (equivalent to vec4.wyxxw).
/// </summary>
public vec5 agrra => new vec5(w, y, x, x, w);
/// <summary>
/// Returns vec4.wyxy swizzling.
/// </summary>
public vec4 wyxy => new vec4(w, y, x, y);
/// <summary>
/// Returns vec4.agrg swizzling (equivalent to vec4.wyxy).
/// </summary>
public vec4 agrg => new vec4(w, y, x, y);
/// <summary>
/// Returns vec4.wyxyx swizzling.
/// </summary>
public vec5 wyxyx => new vec5(w, y, x, y, x);
/// <summary>
/// Returns vec4.agrgr swizzling (equivalent to vec4.wyxyx).
/// </summary>
public vec5 agrgr => new vec5(w, y, x, y, x);
/// <summary>
/// Returns vec4.wyxyy swizzling.
/// </summary>
public vec5 wyxyy => new vec5(w, y, x, y, y);
/// <summary>
/// Returns vec4.agrgg swizzling (equivalent to vec4.wyxyy).
/// </summary>
public vec5 agrgg => new vec5(w, y, x, y, y);
/// <summary>
/// Returns vec4.wyxyz swizzling.
/// </summary>
public vec5 wyxyz => new vec5(w, y, x, y, z);
/// <summary>
/// Returns vec4.agrgb swizzling (equivalent to vec4.wyxyz).
/// </summary>
public vec5 agrgb => new vec5(w, y, x, y, z);
/// <summary>
/// Returns vec4.wyxyw swizzling.
/// </summary>
public vec5 wyxyw => new vec5(w, y, x, y, w);
/// <summary>
/// Returns vec4.agrga swizzling (equivalent to vec4.wyxyw).
/// </summary>
public vec5 agrga => new vec5(w, y, x, y, w);
/// <summary>
/// Returns vec4.wyxz swizzling.
/// </summary>
public vec4 wyxz => new vec4(w, y, x, z);
/// <summary>
/// Returns vec4.agrb swizzling (equivalent to vec4.wyxz).
/// </summary>
public vec4 agrb => new vec4(w, y, x, z);
/// <summary>
/// Returns vec4.wyxzx swizzling.
/// </summary>
public vec5 wyxzx => new vec5(w, y, x, z, x);
/// <summary>
/// Returns vec4.agrbr swizzling (equivalent to vec4.wyxzx).
/// </summary>
public vec5 agrbr => new vec5(w, y, x, z, x);
/// <summary>
/// Returns vec4.wyxzy swizzling.
/// </summary>
public vec5 wyxzy => new vec5(w, y, x, z, y);
/// <summary>
/// Returns vec4.agrbg swizzling (equivalent to vec4.wyxzy).
/// </summary>
public vec5 agrbg => new vec5(w, y, x, z, y);
/// <summary>
/// Returns vec4.wyxzz swizzling.
/// </summary>
public vec5 wyxzz => new vec5(w, y, x, z, z);
/// <summary>
/// Returns vec4.agrbb swizzling (equivalent to vec4.wyxzz).
/// </summary>
public vec5 agrbb => new vec5(w, y, x, z, z);
/// <summary>
/// Returns vec4.wyxzw swizzling.
/// </summary>
public vec5 wyxzw => new vec5(w, y, x, z, w);
/// <summary>
/// Returns vec4.agrba swizzling (equivalent to vec4.wyxzw).
/// </summary>
public vec5 agrba => new vec5(w, y, x, z, w);
/// <summary>
/// Returns vec4.wyxw swizzling.
/// </summary>
public vec4 wyxw => new vec4(w, y, x, w);
/// <summary>
/// Returns vec4.agra swizzling (equivalent to vec4.wyxw).
/// </summary>
public vec4 agra => new vec4(w, y, x, w);
/// <summary>
/// Returns vec4.wyxwx swizzling.
/// </summary>
public vec5 wyxwx => new vec5(w, y, x, w, x);
/// <summary>
/// Returns vec4.agrar swizzling (equivalent to vec4.wyxwx).
/// </summary>
public vec5 agrar => new vec5(w, y, x, w, x);
/// <summary>
/// Returns vec4.wyxwy swizzling.
/// </summary>
public vec5 wyxwy => new vec5(w, y, x, w, y);
/// <summary>
/// Returns vec4.agrag swizzling (equivalent to vec4.wyxwy).
/// </summary>
public vec5 agrag => new vec5(w, y, x, w, y);
/// <summary>
/// Returns vec4.wyxwz swizzling.
/// </summary>
public vec5 wyxwz => new vec5(w, y, x, w, z);
/// <summary>
/// Returns vec4.agrab swizzling (equivalent to vec4.wyxwz).
/// </summary>
public vec5 agrab => new vec5(w, y, x, w, z);
/// <summary>
/// Returns vec4.wyxww swizzling.
/// </summary>
public vec5 wyxww => new vec5(w, y, x, w, w);
/// <summary>
/// Returns vec4.agraa swizzling (equivalent to vec4.wyxww).
/// </summary>
public vec5 agraa => new vec5(w, y, x, w, w);
/// <summary>
/// Returns vec4.wyy swizzling.
/// </summary>
public vec3 wyy => new vec3(w, y, y);
/// <summary>
/// Returns vec4.agg swizzling (equivalent to vec4.wyy).
/// </summary>
public vec3 agg => new vec3(w, y, y);
/// <summary>
/// Returns vec4.wyyx swizzling.
/// </summary>
public vec4 wyyx => new vec4(w, y, y, x);
/// <summary>
/// Returns vec4.aggr swizzling (equivalent to vec4.wyyx).
/// </summary>
public vec4 aggr => new vec4(w, y, y, x);
/// <summary>
/// Returns vec4.wyyxx swizzling.
/// </summary>
public vec5 wyyxx => new vec5(w, y, y, x, x);
/// <summary>
/// Returns vec4.aggrr swizzling (equivalent to vec4.wyyxx).
/// </summary>
public vec5 aggrr => new vec5(w, y, y, x, x);
/// <summary>
/// Returns vec4.wyyxy swizzling.
/// </summary>
public vec5 wyyxy => new vec5(w, y, y, x, y);
/// <summary>
/// Returns vec4.aggrg swizzling (equivalent to vec4.wyyxy).
/// </summary>
public vec5 aggrg => new vec5(w, y, y, x, y);
/// <summary>
/// Returns vec4.wyyxz swizzling.
/// </summary>
public vec5 wyyxz => new vec5(w, y, y, x, z);
/// <summary>
/// Returns vec4.aggrb swizzling (equivalent to vec4.wyyxz).
/// </summary>
public vec5 aggrb => new vec5(w, y, y, x, z);
/// <summary>
/// Returns vec4.wyyxw swizzling.
/// </summary>
public vec5 wyyxw => new vec5(w, y, y, x, w);
/// <summary>
/// Returns vec4.aggra swizzling (equivalent to vec4.wyyxw).
/// </summary>
public vec5 aggra => new vec5(w, y, y, x, w);
/// <summary>
/// Returns vec4.wyyy swizzling.
/// </summary>
public vec4 wyyy => new vec4(w, y, y, y);
/// <summary>
/// Returns vec4.aggg swizzling (equivalent to vec4.wyyy).
/// </summary>
public vec4 aggg => new vec4(w, y, y, y);
/// <summary>
/// Returns vec4.wyyyx swizzling.
/// </summary>
public vec5 wyyyx => new vec5(w, y, y, y, x);
/// <summary>
/// Returns vec4.agggr swizzling (equivalent to vec4.wyyyx).
/// </summary>
public vec5 agggr => new vec5(w, y, y, y, x);
/// <summary>
/// Returns vec4.wyyyy swizzling.
/// </summary>
public vec5 wyyyy => new vec5(w, y, y, y, y);
/// <summary>
/// Returns vec4.agggg swizzling (equivalent to vec4.wyyyy).
/// </summary>
public vec5 agggg => new vec5(w, y, y, y, y);
/// <summary>
/// Returns vec4.wyyyz swizzling.
/// </summary>
public vec5 wyyyz => new vec5(w, y, y, y, z);
/// <summary>
/// Returns vec4.agggb swizzling (equivalent to vec4.wyyyz).
/// </summary>
public vec5 agggb => new vec5(w, y, y, y, z);
/// <summary>
/// Returns vec4.wyyyw swizzling.
/// </summary>
public vec5 wyyyw => new vec5(w, y, y, y, w);
/// <summary>
/// Returns vec4.aggga swizzling (equivalent to vec4.wyyyw).
/// </summary>
public vec5 aggga => new vec5(w, y, y, y, w);
/// <summary>
/// Returns vec4.wyyz swizzling.
/// </summary>
public vec4 wyyz => new vec4(w, y, y, z);
/// <summary>
/// Returns vec4.aggb swizzling (equivalent to vec4.wyyz).
/// </summary>
public vec4 aggb => new vec4(w, y, y, z);
/// <summary>
/// Returns vec4.wyyzx swizzling.
/// </summary>
public vec5 wyyzx => new vec5(w, y, y, z, x);
/// <summary>
/// Returns vec4.aggbr swizzling (equivalent to vec4.wyyzx).
/// </summary>
public vec5 aggbr => new vec5(w, y, y, z, x);
/// <summary>
/// Returns vec4.wyyzy swizzling.
/// </summary>
public vec5 wyyzy => new vec5(w, y, y, z, y);
/// <summary>
/// Returns vec4.aggbg swizzling (equivalent to vec4.wyyzy).
/// </summary>
public vec5 aggbg => new vec5(w, y, y, z, y);
/// <summary>
/// Returns vec4.wyyzz swizzling.
/// </summary>
public vec5 wyyzz => new vec5(w, y, y, z, z);
/// <summary>
/// Returns vec4.aggbb swizzling (equivalent to vec4.wyyzz).
/// </summary>
public vec5 aggbb => new vec5(w, y, y, z, z);
/// <summary>
/// Returns vec4.wyyzw swizzling.
/// </summary>
public vec5 wyyzw => new vec5(w, y, y, z, w);
/// <summary>
/// Returns vec4.aggba swizzling (equivalent to vec4.wyyzw).
/// </summary>
public vec5 aggba => new vec5(w, y, y, z, w);
/// <summary>
/// Returns vec4.wyyw swizzling.
/// </summary>
public vec4 wyyw => new vec4(w, y, y, w);
/// <summary>
/// Returns vec4.agga swizzling (equivalent to vec4.wyyw).
/// </summary>
public vec4 agga => new vec4(w, y, y, w);
/// <summary>
/// Returns vec4.wyywx swizzling.
/// </summary>
public vec5 wyywx => new vec5(w, y, y, w, x);
/// <summary>
/// Returns vec4.aggar swizzling (equivalent to vec4.wyywx).
/// </summary>
public vec5 aggar => new vec5(w, y, y, w, x);
/// <summary>
/// Returns vec4.wyywy swizzling.
/// </summary>
public vec5 wyywy => new vec5(w, y, y, w, y);
/// <summary>
/// Returns vec4.aggag swizzling (equivalent to vec4.wyywy).
/// </summary>
public vec5 aggag => new vec5(w, y, y, w, y);
/// <summary>
/// Returns vec4.wyywz swizzling.
/// </summary>
public vec5 wyywz => new vec5(w, y, y, w, z);
/// <summary>
/// Returns vec4.aggab swizzling (equivalent to vec4.wyywz).
/// </summary>
public vec5 aggab => new vec5(w, y, y, w, z);
/// <summary>
/// Returns vec4.wyyww swizzling.
/// </summary>
public vec5 wyyww => new vec5(w, y, y, w, w);
/// <summary>
/// Returns vec4.aggaa swizzling (equivalent to vec4.wyyww).
/// </summary>
public vec5 aggaa => new vec5(w, y, y, w, w);
/// <summary>
/// Returns vec4.wyz swizzling.
/// </summary>
public vec3 wyz => new vec3(w, y, z);
/// <summary>
/// Returns vec4.agb swizzling (equivalent to vec4.wyz).
/// </summary>
public vec3 agb => new vec3(w, y, z);
/// <summary>
/// Returns vec4.wyzx swizzling.
/// </summary>
public vec4 wyzx => new vec4(w, y, z, x);
/// <summary>
/// Returns vec4.agbr swizzling (equivalent to vec4.wyzx).
/// </summary>
public vec4 agbr => new vec4(w, y, z, x);
/// <summary>
/// Returns vec4.wyzxx swizzling.
/// </summary>
public vec5 wyzxx => new vec5(w, y, z, x, x);
/// <summary>
/// Returns vec4.agbrr swizzling (equivalent to vec4.wyzxx).
/// </summary>
public vec5 agbrr => new vec5(w, y, z, x, x);
/// <summary>
/// Returns vec4.wyzxy swizzling.
/// </summary>
public vec5 wyzxy => new vec5(w, y, z, x, y);
/// <summary>
/// Returns vec4.agbrg swizzling (equivalent to vec4.wyzxy).
/// </summary>
public vec5 agbrg => new vec5(w, y, z, x, y);
/// <summary>
/// Returns vec4.wyzxz swizzling.
/// </summary>
public vec5 wyzxz => new vec5(w, y, z, x, z);
/// <summary>
/// Returns vec4.agbrb swizzling (equivalent to vec4.wyzxz).
/// </summary>
public vec5 agbrb => new vec5(w, y, z, x, z);
/// <summary>
/// Returns vec4.wyzxw swizzling.
/// </summary>
public vec5 wyzxw => new vec5(w, y, z, x, w);
/// <summary>
/// Returns vec4.agbra swizzling (equivalent to vec4.wyzxw).
/// </summary>
public vec5 agbra => new vec5(w, y, z, x, w);
/// <summary>
/// Returns vec4.wyzy swizzling.
/// </summary>
public vec4 wyzy => new vec4(w, y, z, y);
/// <summary>
/// Returns vec4.agbg swizzling (equivalent to vec4.wyzy).
/// </summary>
public vec4 agbg => new vec4(w, y, z, y);
/// <summary>
/// Returns vec4.wyzyx swizzling.
/// </summary>
public vec5 wyzyx => new vec5(w, y, z, y, x);
/// <summary>
/// Returns vec4.agbgr swizzling (equivalent to vec4.wyzyx).
/// </summary>
public vec5 agbgr => new vec5(w, y, z, y, x);
/// <summary>
/// Returns vec4.wyzyy swizzling.
/// </summary>
public vec5 wyzyy => new vec5(w, y, z, y, y);
/// <summary>
/// Returns vec4.agbgg swizzling (equivalent to vec4.wyzyy).
/// </summary>
public vec5 agbgg => new vec5(w, y, z, y, y);
/// <summary>
/// Returns vec4.wyzyz swizzling.
/// </summary>
public vec5 wyzyz => new vec5(w, y, z, y, z);
/// <summary>
/// Returns vec4.agbgb swizzling (equivalent to vec4.wyzyz).
/// </summary>
public vec5 agbgb => new vec5(w, y, z, y, z);
/// <summary>
/// Returns vec4.wyzyw swizzling.
/// </summary>
public vec5 wyzyw => new vec5(w, y, z, y, w);
/// <summary>
/// Returns vec4.agbga swizzling (equivalent to vec4.wyzyw).
/// </summary>
public vec5 agbga => new vec5(w, y, z, y, w);
/// <summary>
/// Returns vec4.wyzz swizzling.
/// </summary>
public vec4 wyzz => new vec4(w, y, z, z);
/// <summary>
/// Returns vec4.agbb swizzling (equivalent to vec4.wyzz).
/// </summary>
public vec4 agbb => new vec4(w, y, z, z);
/// <summary>
/// Returns vec4.wyzzx swizzling.
/// </summary>
public vec5 wyzzx => new vec5(w, y, z, z, x);
/// <summary>
/// Returns vec4.agbbr swizzling (equivalent to vec4.wyzzx).
/// </summary>
public vec5 agbbr => new vec5(w, y, z, z, x);
/// <summary>
/// Returns vec4.wyzzy swizzling.
/// </summary>
public vec5 wyzzy => new vec5(w, y, z, z, y);
/// <summary>
/// Returns vec4.agbbg swizzling (equivalent to vec4.wyzzy).
/// </summary>
public vec5 agbbg => new vec5(w, y, z, z, y);
/// <summary>
/// Returns vec4.wyzzz swizzling.
/// </summary>
public vec5 wyzzz => new vec5(w, y, z, z, z);
/// <summary>
/// Returns vec4.agbbb swizzling (equivalent to vec4.wyzzz).
/// </summary>
public vec5 agbbb => new vec5(w, y, z, z, z);
/// <summary>
/// Returns vec4.wyzzw swizzling.
/// </summary>
public vec5 wyzzw => new vec5(w, y, z, z, w);
/// <summary>
/// Returns vec4.agbba swizzling (equivalent to vec4.wyzzw).
/// </summary>
public vec5 agbba => new vec5(w, y, z, z, w);
/// <summary>
/// Returns vec4.wyzw swizzling.
/// </summary>
public vec4 wyzw => new vec4(w, y, z, w);
/// <summary>
/// Returns vec4.agba swizzling (equivalent to vec4.wyzw).
/// </summary>
public vec4 agba => new vec4(w, y, z, w);
/// <summary>
/// Returns vec4.wyzwx swizzling.
/// </summary>
public vec5 wyzwx => new vec5(w, y, z, w, x);
/// <summary>
/// Returns vec4.agbar swizzling (equivalent to vec4.wyzwx).
/// </summary>
public vec5 agbar => new vec5(w, y, z, w, x);
/// <summary>
/// Returns vec4.wyzwy swizzling.
/// </summary>
public vec5 wyzwy => new vec5(w, y, z, w, y);
/// <summary>
/// Returns vec4.agbag swizzling (equivalent to vec4.wyzwy).
/// </summary>
public vec5 agbag => new vec5(w, y, z, w, y);
/// <summary>
/// Returns vec4.wyzwz swizzling.
/// </summary>
public vec5 wyzwz => new vec5(w, y, z, w, z);
/// <summary>
/// Returns vec4.agbab swizzling (equivalent to vec4.wyzwz).
/// </summary>
public vec5 agbab => new vec5(w, y, z, w, z);
/// <summary>
/// Returns vec4.wyzww swizzling.
/// </summary>
public vec5 wyzww => new vec5(w, y, z, w, w);
/// <summary>
/// Returns vec4.agbaa swizzling (equivalent to vec4.wyzww).
/// </summary>
public vec5 agbaa => new vec5(w, y, z, w, w);
/// <summary>
/// Returns vec4.wyw swizzling.
/// </summary>
public vec3 wyw => new vec3(w, y, w);
/// <summary>
/// Returns vec4.aga swizzling (equivalent to vec4.wyw).
/// </summary>
public vec3 aga => new vec3(w, y, w);
/// <summary>
/// Returns vec4.wywx swizzling.
/// </summary>
public vec4 wywx => new vec4(w, y, w, x);
/// <summary>
/// Returns vec4.agar swizzling (equivalent to vec4.wywx).
/// </summary>
public vec4 agar => new vec4(w, y, w, x);
/// <summary>
/// Returns vec4.wywxx swizzling.
/// </summary>
public vec5 wywxx => new vec5(w, y, w, x, x);
/// <summary>
/// Returns vec4.agarr swizzling (equivalent to vec4.wywxx).
/// </summary>
public vec5 agarr => new vec5(w, y, w, x, x);
/// <summary>
/// Returns vec4.wywxy swizzling.
/// </summary>
public vec5 wywxy => new vec5(w, y, w, x, y);
/// <summary>
/// Returns vec4.agarg swizzling (equivalent to vec4.wywxy).
/// </summary>
public vec5 agarg => new vec5(w, y, w, x, y);
/// <summary>
/// Returns vec4.wywxz swizzling.
/// </summary>
public vec5 wywxz => new vec5(w, y, w, x, z);
/// <summary>
/// Returns vec4.agarb swizzling (equivalent to vec4.wywxz).
/// </summary>
public vec5 agarb => new vec5(w, y, w, x, z);
/// <summary>
/// Returns vec4.wywxw swizzling.
/// </summary>
public vec5 wywxw => new vec5(w, y, w, x, w);
/// <summary>
/// Returns vec4.agara swizzling (equivalent to vec4.wywxw).
/// </summary>
public vec5 agara => new vec5(w, y, w, x, w);
/// <summary>
/// Returns vec4.wywy swizzling.
/// </summary>
public vec4 wywy => new vec4(w, y, w, y);
/// <summary>
/// Returns vec4.agag swizzling (equivalent to vec4.wywy).
/// </summary>
public vec4 agag => new vec4(w, y, w, y);
/// <summary>
/// Returns vec4.wywyx swizzling.
/// </summary>
public vec5 wywyx => new vec5(w, y, w, y, x);
/// <summary>
/// Returns vec4.agagr swizzling (equivalent to vec4.wywyx).
/// </summary>
public vec5 agagr => new vec5(w, y, w, y, x);
/// <summary>
/// Returns vec4.wywyy swizzling.
/// </summary>
public vec5 wywyy => new vec5(w, y, w, y, y);
/// <summary>
/// Returns vec4.agagg swizzling (equivalent to vec4.wywyy).
/// </summary>
public vec5 agagg => new vec5(w, y, w, y, y);
/// <summary>
/// Returns vec4.wywyz swizzling.
/// </summary>
public vec5 wywyz => new vec5(w, y, w, y, z);
/// <summary>
/// Returns vec4.agagb swizzling (equivalent to vec4.wywyz).
/// </summary>
public vec5 agagb => new vec5(w, y, w, y, z);
/// <summary>
/// Returns vec4.wywyw swizzling.
/// </summary>
public vec5 wywyw => new vec5(w, y, w, y, w);
/// <summary>
/// Returns vec4.agaga swizzling (equivalent to vec4.wywyw).
/// </summary>
public vec5 agaga => new vec5(w, y, w, y, w);
/// <summary>
/// Returns vec4.wywz swizzling.
/// </summary>
public vec4 wywz => new vec4(w, y, w, z);
/// <summary>
/// Returns vec4.agab swizzling (equivalent to vec4.wywz).
/// </summary>
public vec4 agab => new vec4(w, y, w, z);
/// <summary>
/// Returns vec4.wywzx swizzling.
/// </summary>
public vec5 wywzx => new vec5(w, y, w, z, x);
/// <summary>
/// Returns vec4.agabr swizzling (equivalent to vec4.wywzx).
/// </summary>
public vec5 agabr => new vec5(w, y, w, z, x);
/// <summary>
/// Returns vec4.wywzy swizzling.
/// </summary>
public vec5 wywzy => new vec5(w, y, w, z, y);
/// <summary>
/// Returns vec4.agabg swizzling (equivalent to vec4.wywzy).
/// </summary>
public vec5 agabg => new vec5(w, y, w, z, y);
/// <summary>
/// Returns vec4.wywzz swizzling.
/// </summary>
public vec5 wywzz => new vec5(w, y, w, z, z);
/// <summary>
/// Returns vec4.agabb swizzling (equivalent to vec4.wywzz).
/// </summary>
public vec5 agabb => new vec5(w, y, w, z, z);
/// <summary>
/// Returns vec4.wywzw swizzling.
/// </summary>
public vec5 wywzw => new vec5(w, y, w, z, w);
/// <summary>
/// Returns vec4.agaba swizzling (equivalent to vec4.wywzw).
/// </summary>
public vec5 agaba => new vec5(w, y, w, z, w);
/// <summary>
/// Returns vec4.wyww swizzling.
/// </summary>
public vec4 wyww => new vec4(w, y, w, w);
/// <summary>
/// Returns vec4.agaa swizzling (equivalent to vec4.wyww).
/// </summary>
public vec4 agaa => new vec4(w, y, w, w);
/// <summary>
/// Returns vec4.wywwx swizzling.
/// </summary>
public vec5 wywwx => new vec5(w, y, w, w, x);
/// <summary>
/// Returns vec4.agaar swizzling (equivalent to vec4.wywwx).
/// </summary>
public vec5 agaar => new vec5(w, y, w, w, x);
/// <summary>
/// Returns vec4.wywwy swizzling.
/// </summary>
public vec5 wywwy => new vec5(w, y, w, w, y);
/// <summary>
/// Returns vec4.agaag swizzling (equivalent to vec4.wywwy).
/// </summary>
public vec5 agaag => new vec5(w, y, w, w, y);
/// <summary>
/// Returns vec4.wywwz swizzling.
/// </summary>
public vec5 wywwz => new vec5(w, y, w, w, z);
/// <summary>
/// Returns vec4.agaab swizzling (equivalent to vec4.wywwz).
/// </summary>
public vec5 agaab => new vec5(w, y, w, w, z);
/// <summary>
/// Returns vec4.wywww swizzling.
/// </summary>
public vec5 wywww => new vec5(w, y, w, w, w);
/// <summary>
/// Returns vec4.agaaa swizzling (equivalent to vec4.wywww).
/// </summary>
public vec5 agaaa => new vec5(w, y, w, w, w);
/// <summary>
/// Returns vec4.wz swizzling.
/// </summary>
public vec2 wz => new vec2(w, z);
/// <summary>
/// Returns vec4.ab swizzling (equivalent to vec4.wz).
/// </summary>
public vec2 ab => new vec2(w, z);
/// <summary>
/// Returns vec4.wzx swizzling.
/// </summary>
public vec3 wzx => new vec3(w, z, x);
/// <summary>
/// Returns vec4.abr swizzling (equivalent to vec4.wzx).
/// </summary>
public vec3 abr => new vec3(w, z, x);
/// <summary>
/// Returns vec4.wzxx swizzling.
/// </summary>
public vec4 wzxx => new vec4(w, z, x, x);
/// <summary>
/// Returns vec4.abrr swizzling (equivalent to vec4.wzxx).
/// </summary>
public vec4 abrr => new vec4(w, z, x, x);
/// <summary>
/// Returns vec4.wzxxx swizzling.
/// </summary>
public vec5 wzxxx => new vec5(w, z, x, x, x);
/// <summary>
/// Returns vec4.abrrr swizzling (equivalent to vec4.wzxxx).
/// </summary>
public vec5 abrrr => new vec5(w, z, x, x, x);
/// <summary>
/// Returns vec4.wzxxy swizzling.
/// </summary>
public vec5 wzxxy => new vec5(w, z, x, x, y);
/// <summary>
/// Returns vec4.abrrg swizzling (equivalent to vec4.wzxxy).
/// </summary>
public vec5 abrrg => new vec5(w, z, x, x, y);
/// <summary>
/// Returns vec4.wzxxz swizzling.
/// </summary>
public vec5 wzxxz => new vec5(w, z, x, x, z);
/// <summary>
/// Returns vec4.abrrb swizzling (equivalent to vec4.wzxxz).
/// </summary>
public vec5 abrrb => new vec5(w, z, x, x, z);
/// <summary>
/// Returns vec4.wzxxw swizzling.
/// </summary>
public vec5 wzxxw => new vec5(w, z, x, x, w);
/// <summary>
/// Returns vec4.abrra swizzling (equivalent to vec4.wzxxw).
/// </summary>
public vec5 abrra => new vec5(w, z, x, x, w);
/// <summary>
/// Returns vec4.wzxy swizzling.
/// </summary>
public vec4 wzxy => new vec4(w, z, x, y);
/// <summary>
/// Returns vec4.abrg swizzling (equivalent to vec4.wzxy).
/// </summary>
public vec4 abrg => new vec4(w, z, x, y);
/// <summary>
/// Returns vec4.wzxyx swizzling.
/// </summary>
public vec5 wzxyx => new vec5(w, z, x, y, x);
/// <summary>
/// Returns vec4.abrgr swizzling (equivalent to vec4.wzxyx).
/// </summary>
public vec5 abrgr => new vec5(w, z, x, y, x);
/// <summary>
/// Returns vec4.wzxyy swizzling.
/// </summary>
public vec5 wzxyy => new vec5(w, z, x, y, y);
/// <summary>
/// Returns vec4.abrgg swizzling (equivalent to vec4.wzxyy).
/// </summary>
public vec5 abrgg => new vec5(w, z, x, y, y);
/// <summary>
/// Returns vec4.wzxyz swizzling.
/// </summary>
public vec5 wzxyz => new vec5(w, z, x, y, z);
/// <summary>
/// Returns vec4.abrgb swizzling (equivalent to vec4.wzxyz).
/// </summary>
public vec5 abrgb => new vec5(w, z, x, y, z);
/// <summary>
/// Returns vec4.wzxyw swizzling.
/// </summary>
public vec5 wzxyw => new vec5(w, z, x, y, w);
/// <summary>
/// Returns vec4.abrga swizzling (equivalent to vec4.wzxyw).
/// </summary>
public vec5 abrga => new vec5(w, z, x, y, w);
/// <summary>
/// Returns vec4.wzxz swizzling.
/// </summary>
public vec4 wzxz => new vec4(w, z, x, z);
/// <summary>
/// Returns vec4.abrb swizzling (equivalent to vec4.wzxz).
/// </summary>
public vec4 abrb => new vec4(w, z, x, z);
/// <summary>
/// Returns vec4.wzxzx swizzling.
/// </summary>
public vec5 wzxzx => new vec5(w, z, x, z, x);
/// <summary>
/// Returns vec4.abrbr swizzling (equivalent to vec4.wzxzx).
/// </summary>
public vec5 abrbr => new vec5(w, z, x, z, x);
/// <summary>
/// Returns vec4.wzxzy swizzling.
/// </summary>
public vec5 wzxzy => new vec5(w, z, x, z, y);
/// <summary>
/// Returns vec4.abrbg swizzling (equivalent to vec4.wzxzy).
/// </summary>
public vec5 abrbg => new vec5(w, z, x, z, y);
/// <summary>
/// Returns vec4.wzxzz swizzling.
/// </summary>
public vec5 wzxzz => new vec5(w, z, x, z, z);
/// <summary>
/// Returns vec4.abrbb swizzling (equivalent to vec4.wzxzz).
/// </summary>
public vec5 abrbb => new vec5(w, z, x, z, z);
/// <summary>
/// Returns vec4.wzxzw swizzling.
/// </summary>
public vec5 wzxzw => new vec5(w, z, x, z, w);
/// <summary>
/// Returns vec4.abrba swizzling (equivalent to vec4.wzxzw).
/// </summary>
public vec5 abrba => new vec5(w, z, x, z, w);
/// <summary>
/// Returns vec4.wzxw swizzling.
/// </summary>
public vec4 wzxw => new vec4(w, z, x, w);
/// <summary>
/// Returns vec4.abra swizzling (equivalent to vec4.wzxw).
/// </summary>
public vec4 abra => new vec4(w, z, x, w);
/// <summary>
/// Returns vec4.wzxwx swizzling.
/// </summary>
public vec5 wzxwx => new vec5(w, z, x, w, x);
/// <summary>
/// Returns vec4.abrar swizzling (equivalent to vec4.wzxwx).
/// </summary>
public vec5 abrar => new vec5(w, z, x, w, x);
/// <summary>
/// Returns vec4.wzxwy swizzling.
/// </summary>
public vec5 wzxwy => new vec5(w, z, x, w, y);
/// <summary>
/// Returns vec4.abrag swizzling (equivalent to vec4.wzxwy).
/// </summary>
public vec5 abrag => new vec5(w, z, x, w, y);
/// <summary>
/// Returns vec4.wzxwz swizzling.
/// </summary>
public vec5 wzxwz => new vec5(w, z, x, w, z);
/// <summary>
/// Returns vec4.abrab swizzling (equivalent to vec4.wzxwz).
/// </summary>
public vec5 abrab => new vec5(w, z, x, w, z);
/// <summary>
/// Returns vec4.wzxww swizzling.
/// </summary>
public vec5 wzxww => new vec5(w, z, x, w, w);
/// <summary>
/// Returns vec4.abraa swizzling (equivalent to vec4.wzxww).
/// </summary>
public vec5 abraa => new vec5(w, z, x, w, w);
/// <summary>
/// Returns vec4.wzy swizzling.
/// </summary>
public vec3 wzy => new vec3(w, z, y);
/// <summary>
/// Returns vec4.abg swizzling (equivalent to vec4.wzy).
/// </summary>
public vec3 abg => new vec3(w, z, y);
/// <summary>
/// Returns vec4.wzyx swizzling.
/// </summary>
public vec4 wzyx => new vec4(w, z, y, x);
/// <summary>
/// Returns vec4.abgr swizzling (equivalent to vec4.wzyx).
/// </summary>
public vec4 abgr => new vec4(w, z, y, x);
/// <summary>
/// Returns vec4.wzyxx swizzling.
/// </summary>
public vec5 wzyxx => new vec5(w, z, y, x, x);
/// <summary>
/// Returns vec4.abgrr swizzling (equivalent to vec4.wzyxx).
/// </summary>
public vec5 abgrr => new vec5(w, z, y, x, x);
/// <summary>
/// Returns vec4.wzyxy swizzling.
/// </summary>
public vec5 wzyxy => new vec5(w, z, y, x, y);
/// <summary>
/// Returns vec4.abgrg swizzling (equivalent to vec4.wzyxy).
/// </summary>
public vec5 abgrg => new vec5(w, z, y, x, y);
/// <summary>
/// Returns vec4.wzyxz swizzling.
/// </summary>
public vec5 wzyxz => new vec5(w, z, y, x, z);
/// <summary>
/// Returns vec4.abgrb swizzling (equivalent to vec4.wzyxz).
/// </summary>
public vec5 abgrb => new vec5(w, z, y, x, z);
/// <summary>
/// Returns vec4.wzyxw swizzling.
/// </summary>
public vec5 wzyxw => new vec5(w, z, y, x, w);
/// <summary>
/// Returns vec4.abgra swizzling (equivalent to vec4.wzyxw).
/// </summary>
public vec5 abgra => new vec5(w, z, y, x, w);
/// <summary>
/// Returns vec4.wzyy swizzling.
/// </summary>
public vec4 wzyy => new vec4(w, z, y, y);
/// <summary>
/// Returns vec4.abgg swizzling (equivalent to vec4.wzyy).
/// </summary>
public vec4 abgg => new vec4(w, z, y, y);
/// <summary>
/// Returns vec4.wzyyx swizzling.
/// </summary>
public vec5 wzyyx => new vec5(w, z, y, y, x);
/// <summary>
/// Returns vec4.abggr swizzling (equivalent to vec4.wzyyx).
/// </summary>
public vec5 abggr => new vec5(w, z, y, y, x);
/// <summary>
/// Returns vec4.wzyyy swizzling.
/// </summary>
public vec5 wzyyy => new vec5(w, z, y, y, y);
/// <summary>
/// Returns vec4.abggg swizzling (equivalent to vec4.wzyyy).
/// </summary>
public vec5 abggg => new vec5(w, z, y, y, y);
/// <summary>
/// Returns vec4.wzyyz swizzling.
/// </summary>
public vec5 wzyyz => new vec5(w, z, y, y, z);
/// <summary>
/// Returns vec4.abggb swizzling (equivalent to vec4.wzyyz).
/// </summary>
public vec5 abggb => new vec5(w, z, y, y, z);
/// <summary>
/// Returns vec4.wzyyw swizzling.
/// </summary>
public vec5 wzyyw => new vec5(w, z, y, y, w);
/// <summary>
/// Returns vec4.abgga swizzling (equivalent to vec4.wzyyw).
/// </summary>
public vec5 abgga => new vec5(w, z, y, y, w);
/// <summary>
/// Returns vec4.wzyz swizzling.
/// </summary>
public vec4 wzyz => new vec4(w, z, y, z);
/// <summary>
/// Returns vec4.abgb swizzling (equivalent to vec4.wzyz).
/// </summary>
public vec4 abgb => new vec4(w, z, y, z);
/// <summary>
/// Returns vec4.wzyzx swizzling.
/// </summary>
public vec5 wzyzx => new vec5(w, z, y, z, x);
/// <summary>
/// Returns vec4.abgbr swizzling (equivalent to vec4.wzyzx).
/// </summary>
public vec5 abgbr => new vec5(w, z, y, z, x);
/// <summary>
/// Returns vec4.wzyzy swizzling.
/// </summary>
public vec5 wzyzy => new vec5(w, z, y, z, y);
/// <summary>
/// Returns vec4.abgbg swizzling (equivalent to vec4.wzyzy).
/// </summary>
public vec5 abgbg => new vec5(w, z, y, z, y);
/// <summary>
/// Returns vec4.wzyzz swizzling.
/// </summary>
public vec5 wzyzz => new vec5(w, z, y, z, z);
/// <summary>
/// Returns vec4.abgbb swizzling (equivalent to vec4.wzyzz).
/// </summary>
public vec5 abgbb => new vec5(w, z, y, z, z);
/// <summary>
/// Returns vec4.wzyzw swizzling.
/// </summary>
public vec5 wzyzw => new vec5(w, z, y, z, w);
/// <summary>
/// Returns vec4.abgba swizzling (equivalent to vec4.wzyzw).
/// </summary>
public vec5 abgba => new vec5(w, z, y, z, w);
/// <summary>
/// Returns vec4.wzyw swizzling.
/// </summary>
public vec4 wzyw => new vec4(w, z, y, w);
/// <summary>
/// Returns vec4.abga swizzling (equivalent to vec4.wzyw).
/// </summary>
public vec4 abga => new vec4(w, z, y, w);
/// <summary>
/// Returns vec4.wzywx swizzling.
/// </summary>
public vec5 wzywx => new vec5(w, z, y, w, x);
/// <summary>
/// Returns vec4.abgar swizzling (equivalent to vec4.wzywx).
/// </summary>
public vec5 abgar => new vec5(w, z, y, w, x);
/// <summary>
/// Returns vec4.wzywy swizzling.
/// </summary>
public vec5 wzywy => new vec5(w, z, y, w, y);
/// <summary>
/// Returns vec4.abgag swizzling (equivalent to vec4.wzywy).
/// </summary>
public vec5 abgag => new vec5(w, z, y, w, y);
/// <summary>
/// Returns vec4.wzywz swizzling.
/// </summary>
public vec5 wzywz => new vec5(w, z, y, w, z);
/// <summary>
/// Returns vec4.abgab swizzling (equivalent to vec4.wzywz).
/// </summary>
public vec5 abgab => new vec5(w, z, y, w, z);
/// <summary>
/// Returns vec4.wzyww swizzling.
/// </summary>
public vec5 wzyww => new vec5(w, z, y, w, w);
/// <summary>
/// Returns vec4.abgaa swizzling (equivalent to vec4.wzyww).
/// </summary>
public vec5 abgaa => new vec5(w, z, y, w, w);
/// <summary>
/// Returns vec4.wzz swizzling.
/// </summary>
public vec3 wzz => new vec3(w, z, z);
/// <summary>
/// Returns vec4.abb swizzling (equivalent to vec4.wzz).
/// </summary>
public vec3 abb => new vec3(w, z, z);
/// <summary>
/// Returns vec4.wzzx swizzling.
/// </summary>
public vec4 wzzx => new vec4(w, z, z, x);
/// <summary>
/// Returns vec4.abbr swizzling (equivalent to vec4.wzzx).
/// </summary>
public vec4 abbr => new vec4(w, z, z, x);
/// <summary>
/// Returns vec4.wzzxx swizzling.
/// </summary>
public vec5 wzzxx => new vec5(w, z, z, x, x);
/// <summary>
/// Returns vec4.abbrr swizzling (equivalent to vec4.wzzxx).
/// </summary>
public vec5 abbrr => new vec5(w, z, z, x, x);
/// <summary>
/// Returns vec4.wzzxy swizzling.
/// </summary>
public vec5 wzzxy => new vec5(w, z, z, x, y);
/// <summary>
/// Returns vec4.abbrg swizzling (equivalent to vec4.wzzxy).
/// </summary>
public vec5 abbrg => new vec5(w, z, z, x, y);
/// <summary>
/// Returns vec4.wzzxz swizzling.
/// </summary>
public vec5 wzzxz => new vec5(w, z, z, x, z);
/// <summary>
/// Returns vec4.abbrb swizzling (equivalent to vec4.wzzxz).
/// </summary>
public vec5 abbrb => new vec5(w, z, z, x, z);
/// <summary>
/// Returns vec4.wzzxw swizzling.
/// </summary>
public vec5 wzzxw => new vec5(w, z, z, x, w);
/// <summary>
/// Returns vec4.abbra swizzling (equivalent to vec4.wzzxw).
/// </summary>
public vec5 abbra => new vec5(w, z, z, x, w);
/// <summary>
/// Returns vec4.wzzy swizzling.
/// </summary>
public vec4 wzzy => new vec4(w, z, z, y);
/// <summary>
/// Returns vec4.abbg swizzling (equivalent to vec4.wzzy).
/// </summary>
public vec4 abbg => new vec4(w, z, z, y);
/// <summary>
/// Returns vec4.wzzyx swizzling.
/// </summary>
public vec5 wzzyx => new vec5(w, z, z, y, x);
/// <summary>
/// Returns vec4.abbgr swizzling (equivalent to vec4.wzzyx).
/// </summary>
public vec5 abbgr => new vec5(w, z, z, y, x);
/// <summary>
/// Returns vec4.wzzyy swizzling.
/// </summary>
public vec5 wzzyy => new vec5(w, z, z, y, y);
/// <summary>
/// Returns vec4.abbgg swizzling (equivalent to vec4.wzzyy).
/// </summary>
public vec5 abbgg => new vec5(w, z, z, y, y);
/// <summary>
/// Returns vec4.wzzyz swizzling.
/// </summary>
public vec5 wzzyz => new vec5(w, z, z, y, z);
/// <summary>
/// Returns vec4.abbgb swizzling (equivalent to vec4.wzzyz).
/// </summary>
public vec5 abbgb => new vec5(w, z, z, y, z);
/// <summary>
/// Returns vec4.wzzyw swizzling.
/// </summary>
public vec5 wzzyw => new vec5(w, z, z, y, w);
/// <summary>
/// Returns vec4.abbga swizzling (equivalent to vec4.wzzyw).
/// </summary>
public vec5 abbga => new vec5(w, z, z, y, w);
/// <summary>
/// Returns vec4.wzzz swizzling.
/// </summary>
public vec4 wzzz => new vec4(w, z, z, z);
/// <summary>
/// Returns vec4.abbb swizzling (equivalent to vec4.wzzz).
/// </summary>
public vec4 abbb => new vec4(w, z, z, z);
/// <summary>
/// Returns vec4.wzzzx swizzling.
/// </summary>
public vec5 wzzzx => new vec5(w, z, z, z, x);
/// <summary>
/// Returns vec4.abbbr swizzling (equivalent to vec4.wzzzx).
/// </summary>
public vec5 abbbr => new vec5(w, z, z, z, x);
/// <summary>
/// Returns vec4.wzzzy swizzling.
/// </summary>
public vec5 wzzzy => new vec5(w, z, z, z, y);
/// <summary>
/// Returns vec4.abbbg swizzling (equivalent to vec4.wzzzy).
/// </summary>
public vec5 abbbg => new vec5(w, z, z, z, y);
/// <summary>
/// Returns vec4.wzzzz swizzling.
/// </summary>
public vec5 wzzzz => new vec5(w, z, z, z, z);
/// <summary>
/// Returns vec4.abbbb swizzling (equivalent to vec4.wzzzz).
/// </summary>
public vec5 abbbb => new vec5(w, z, z, z, z);
/// <summary>
/// Returns vec4.wzzzw swizzling.
/// </summary>
public vec5 wzzzw => new vec5(w, z, z, z, w);
/// <summary>
/// Returns vec4.abbba swizzling (equivalent to vec4.wzzzw).
/// </summary>
public vec5 abbba => new vec5(w, z, z, z, w);
/// <summary>
/// Returns vec4.wzzw swizzling.
/// </summary>
public vec4 wzzw => new vec4(w, z, z, w);
/// <summary>
/// Returns vec4.abba swizzling (equivalent to vec4.wzzw).
/// </summary>
public vec4 abba => new vec4(w, z, z, w);
/// <summary>
/// Returns vec4.wzzwx swizzling.
/// </summary>
public vec5 wzzwx => new vec5(w, z, z, w, x);
/// <summary>
/// Returns vec4.abbar swizzling (equivalent to vec4.wzzwx).
/// </summary>
public vec5 abbar => new vec5(w, z, z, w, x);
/// <summary>
/// Returns vec4.wzzwy swizzling.
/// </summary>
public vec5 wzzwy => new vec5(w, z, z, w, y);
/// <summary>
/// Returns vec4.abbag swizzling (equivalent to vec4.wzzwy).
/// </summary>
public vec5 abbag => new vec5(w, z, z, w, y);
/// <summary>
/// Returns vec4.wzzwz swizzling.
/// </summary>
public vec5 wzzwz => new vec5(w, z, z, w, z);
/// <summary>
/// Returns vec4.abbab swizzling (equivalent to vec4.wzzwz).
/// </summary>
public vec5 abbab => new vec5(w, z, z, w, z);
/// <summary>
/// Returns vec4.wzzww swizzling.
/// </summary>
public vec5 wzzww => new vec5(w, z, z, w, w);
/// <summary>
/// Returns vec4.abbaa swizzling (equivalent to vec4.wzzww).
/// </summary>
public vec5 abbaa => new vec5(w, z, z, w, w);
/// <summary>
/// Returns vec4.wzw swizzling.
/// </summary>
public vec3 wzw => new vec3(w, z, w);
/// <summary>
/// Returns vec4.aba swizzling (equivalent to vec4.wzw).
/// </summary>
public vec3 aba => new vec3(w, z, w);
/// <summary>
/// Returns vec4.wzwx swizzling.
/// </summary>
public vec4 wzwx => new vec4(w, z, w, x);
/// <summary>
/// Returns vec4.abar swizzling (equivalent to vec4.wzwx).
/// </summary>
public vec4 abar => new vec4(w, z, w, x);
/// <summary>
/// Returns vec4.wzwxx swizzling.
/// </summary>
public vec5 wzwxx => new vec5(w, z, w, x, x);
/// <summary>
/// Returns vec4.abarr swizzling (equivalent to vec4.wzwxx).
/// </summary>
public vec5 abarr => new vec5(w, z, w, x, x);
/// <summary>
/// Returns vec4.wzwxy swizzling.
/// </summary>
public vec5 wzwxy => new vec5(w, z, w, x, y);
/// <summary>
/// Returns vec4.abarg swizzling (equivalent to vec4.wzwxy).
/// </summary>
public vec5 abarg => new vec5(w, z, w, x, y);
/// <summary>
/// Returns vec4.wzwxz swizzling.
/// </summary>
public vec5 wzwxz => new vec5(w, z, w, x, z);
/// <summary>
/// Returns vec4.abarb swizzling (equivalent to vec4.wzwxz).
/// </summary>
public vec5 abarb => new vec5(w, z, w, x, z);
/// <summary>
/// Returns vec4.wzwxw swizzling.
/// </summary>
public vec5 wzwxw => new vec5(w, z, w, x, w);
/// <summary>
/// Returns vec4.abara swizzling (equivalent to vec4.wzwxw).
/// </summary>
public vec5 abara => new vec5(w, z, w, x, w);
/// <summary>
/// Returns vec4.wzwy swizzling.
/// </summary>
public vec4 wzwy => new vec4(w, z, w, y);
/// <summary>
/// Returns vec4.abag swizzling (equivalent to vec4.wzwy).
/// </summary>
public vec4 abag => new vec4(w, z, w, y);
/// <summary>
/// Returns vec4.wzwyx swizzling.
/// </summary>
public vec5 wzwyx => new vec5(w, z, w, y, x);
/// <summary>
/// Returns vec4.abagr swizzling (equivalent to vec4.wzwyx).
/// </summary>
public vec5 abagr => new vec5(w, z, w, y, x);
/// <summary>
/// Returns vec4.wzwyy swizzling.
/// </summary>
public vec5 wzwyy => new vec5(w, z, w, y, y);
/// <summary>
/// Returns vec4.abagg swizzling (equivalent to vec4.wzwyy).
/// </summary>
public vec5 abagg => new vec5(w, z, w, y, y);
/// <summary>
/// Returns vec4.wzwyz swizzling.
/// </summary>
public vec5 wzwyz => new vec5(w, z, w, y, z);
/// <summary>
/// Returns vec4.abagb swizzling (equivalent to vec4.wzwyz).
/// </summary>
public vec5 abagb => new vec5(w, z, w, y, z);
/// <summary>
/// Returns vec4.wzwyw swizzling.
/// </summary>
public vec5 wzwyw => new vec5(w, z, w, y, w);
/// <summary>
/// Returns vec4.abaga swizzling (equivalent to vec4.wzwyw).
/// </summary>
public vec5 abaga => new vec5(w, z, w, y, w);
/// <summary>
/// Returns vec4.wzwz swizzling.
/// </summary>
public vec4 wzwz => new vec4(w, z, w, z);
/// <summary>
/// Returns vec4.abab swizzling (equivalent to vec4.wzwz).
/// </summary>
public vec4 abab => new vec4(w, z, w, z);
/// <summary>
/// Returns vec4.wzwzx swizzling.
/// </summary>
public vec5 wzwzx => new vec5(w, z, w, z, x);
/// <summary>
/// Returns vec4.ababr swizzling (equivalent to vec4.wzwzx).
/// </summary>
public vec5 ababr => new vec5(w, z, w, z, x);
/// <summary>
/// Returns vec4.wzwzy swizzling.
/// </summary>
public vec5 wzwzy => new vec5(w, z, w, z, y);
/// <summary>
/// Returns vec4.ababg swizzling (equivalent to vec4.wzwzy).
/// </summary>
public vec5 ababg => new vec5(w, z, w, z, y);
/// <summary>
/// Returns vec4.wzwzz swizzling.
/// </summary>
public vec5 wzwzz => new vec5(w, z, w, z, z);
/// <summary>
/// Returns vec4.ababb swizzling (equivalent to vec4.wzwzz).
/// </summary>
public vec5 ababb => new vec5(w, z, w, z, z);
/// <summary>
/// Returns vec4.wzwzw swizzling.
/// </summary>
public vec5 wzwzw => new vec5(w, z, w, z, w);
/// <summary>
/// Returns vec4.ababa swizzling (equivalent to vec4.wzwzw).
/// </summary>
public vec5 ababa => new vec5(w, z, w, z, w);
/// <summary>
/// Returns vec4.wzww swizzling.
/// </summary>
public vec4 wzww => new vec4(w, z, w, w);
/// <summary>
/// Returns vec4.abaa swizzling (equivalent to vec4.wzww).
/// </summary>
public vec4 abaa => new vec4(w, z, w, w);
/// <summary>
/// Returns vec4.wzwwx swizzling.
/// </summary>
public vec5 wzwwx => new vec5(w, z, w, w, x);
/// <summary>
/// Returns vec4.abaar swizzling (equivalent to vec4.wzwwx).
/// </summary>
public vec5 abaar => new vec5(w, z, w, w, x);
/// <summary>
/// Returns vec4.wzwwy swizzling.
/// </summary>
public vec5 wzwwy => new vec5(w, z, w, w, y);
/// <summary>
/// Returns vec4.abaag swizzling (equivalent to vec4.wzwwy).
/// </summary>
public vec5 abaag => new vec5(w, z, w, w, y);
/// <summary>
/// Returns vec4.wzwwz swizzling.
/// </summary>
public vec5 wzwwz => new vec5(w, z, w, w, z);
/// <summary>
/// Returns vec4.abaab swizzling (equivalent to vec4.wzwwz).
/// </summary>
public vec5 abaab => new vec5(w, z, w, w, z);
/// <summary>
/// Returns vec4.wzwww swizzling.
/// </summary>
public vec5 wzwww => new vec5(w, z, w, w, w);
/// <summary>
/// Returns vec4.abaaa swizzling (equivalent to vec4.wzwww).
/// </summary>
public vec5 abaaa => new vec5(w, z, w, w, w);
/// <summary>
/// Returns vec4.ww swizzling.
/// </summary>
public vec2 ww => new vec2(w, w);
/// <summary>
/// Returns vec4.aa swizzling (equivalent to vec4.ww).
/// </summary>
public vec2 aa => new vec2(w, w);
/// <summary>
/// Returns vec4.wwx swizzling.
/// </summary>
public vec3 wwx => new vec3(w, w, x);
/// <summary>
/// Returns vec4.aar swizzling (equivalent to vec4.wwx).
/// </summary>
public vec3 aar => new vec3(w, w, x);
/// <summary>
/// Returns vec4.wwxx swizzling.
/// </summary>
public vec4 wwxx => new vec4(w, w, x, x);
/// <summary>
/// Returns vec4.aarr swizzling (equivalent to vec4.wwxx).
/// </summary>
public vec4 aarr => new vec4(w, w, x, x);
/// <summary>
/// Returns vec4.wwxxx swizzling.
/// </summary>
public vec5 wwxxx => new vec5(w, w, x, x, x);
/// <summary>
/// Returns vec4.aarrr swizzling (equivalent to vec4.wwxxx).
/// </summary>
public vec5 aarrr => new vec5(w, w, x, x, x);
/// <summary>
/// Returns vec4.wwxxy swizzling.
/// </summary>
public vec5 wwxxy => new vec5(w, w, x, x, y);
/// <summary>
/// Returns vec4.aarrg swizzling (equivalent to vec4.wwxxy).
/// </summary>
public vec5 aarrg => new vec5(w, w, x, x, y);
/// <summary>
/// Returns vec4.wwxxz swizzling.
/// </summary>
public vec5 wwxxz => new vec5(w, w, x, x, z);
/// <summary>
/// Returns vec4.aarrb swizzling (equivalent to vec4.wwxxz).
/// </summary>
public vec5 aarrb => new vec5(w, w, x, x, z);
/// <summary>
/// Returns vec4.wwxxw swizzling.
/// </summary>
public vec5 wwxxw => new vec5(w, w, x, x, w);
/// <summary>
/// Returns vec4.aarra swizzling (equivalent to vec4.wwxxw).
/// </summary>
public vec5 aarra => new vec5(w, w, x, x, w);
/// <summary>
/// Returns vec4.wwxy swizzling.
/// </summary>
public vec4 wwxy => new vec4(w, w, x, y);
/// <summary>
/// Returns vec4.aarg swizzling (equivalent to vec4.wwxy).
/// </summary>
public vec4 aarg => new vec4(w, w, x, y);
/// <summary>
/// Returns vec4.wwxyx swizzling.
/// </summary>
public vec5 wwxyx => new vec5(w, w, x, y, x);
/// <summary>
/// Returns vec4.aargr swizzling (equivalent to vec4.wwxyx).
/// </summary>
public vec5 aargr => new vec5(w, w, x, y, x);
/// <summary>
/// Returns vec4.wwxyy swizzling.
/// </summary>
public vec5 wwxyy => new vec5(w, w, x, y, y);
/// <summary>
/// Returns vec4.aargg swizzling (equivalent to vec4.wwxyy).
/// </summary>
public vec5 aargg => new vec5(w, w, x, y, y);
/// <summary>
/// Returns vec4.wwxyz swizzling.
/// </summary>
public vec5 wwxyz => new vec5(w, w, x, y, z);
/// <summary>
/// Returns vec4.aargb swizzling (equivalent to vec4.wwxyz).
/// </summary>
public vec5 aargb => new vec5(w, w, x, y, z);
/// <summary>
/// Returns vec4.wwxyw swizzling.
/// </summary>
public vec5 wwxyw => new vec5(w, w, x, y, w);
/// <summary>
/// Returns vec4.aarga swizzling (equivalent to vec4.wwxyw).
/// </summary>
public vec5 aarga => new vec5(w, w, x, y, w);
/// <summary>
/// Returns vec4.wwxz swizzling.
/// </summary>
public vec4 wwxz => new vec4(w, w, x, z);
/// <summary>
/// Returns vec4.aarb swizzling (equivalent to vec4.wwxz).
/// </summary>
public vec4 aarb => new vec4(w, w, x, z);
/// <summary>
/// Returns vec4.wwxzx swizzling.
/// </summary>
public vec5 wwxzx => new vec5(w, w, x, z, x);
/// <summary>
/// Returns vec4.aarbr swizzling (equivalent to vec4.wwxzx).
/// </summary>
public vec5 aarbr => new vec5(w, w, x, z, x);
/// <summary>
/// Returns vec4.wwxzy swizzling.
/// </summary>
public vec5 wwxzy => new vec5(w, w, x, z, y);
/// <summary>
/// Returns vec4.aarbg swizzling (equivalent to vec4.wwxzy).
/// </summary>
public vec5 aarbg => new vec5(w, w, x, z, y);
/// <summary>
/// Returns vec4.wwxzz swizzling.
/// </summary>
public vec5 wwxzz => new vec5(w, w, x, z, z);
/// <summary>
/// Returns vec4.aarbb swizzling (equivalent to vec4.wwxzz).
/// </summary>
public vec5 aarbb => new vec5(w, w, x, z, z);
/// <summary>
/// Returns vec4.wwxzw swizzling.
/// </summary>
public vec5 wwxzw => new vec5(w, w, x, z, w);
/// <summary>
/// Returns vec4.aarba swizzling (equivalent to vec4.wwxzw).
/// </summary>
public vec5 aarba => new vec5(w, w, x, z, w);
/// <summary>
/// Returns vec4.wwxw swizzling.
/// </summary>
public vec4 wwxw => new vec4(w, w, x, w);
/// <summary>
/// Returns vec4.aara swizzling (equivalent to vec4.wwxw).
/// </summary>
public vec4 aara => new vec4(w, w, x, w);
/// <summary>
/// Returns vec4.wwxwx swizzling.
/// </summary>
public vec5 wwxwx => new vec5(w, w, x, w, x);
/// <summary>
/// Returns vec4.aarar swizzling (equivalent to vec4.wwxwx).
/// </summary>
public vec5 aarar => new vec5(w, w, x, w, x);
/// <summary>
/// Returns vec4.wwxwy swizzling.
/// </summary>
public vec5 wwxwy => new vec5(w, w, x, w, y);
/// <summary>
/// Returns vec4.aarag swizzling (equivalent to vec4.wwxwy).
/// </summary>
public vec5 aarag => new vec5(w, w, x, w, y);
/// <summary>
/// Returns vec4.wwxwz swizzling.
/// </summary>
public vec5 wwxwz => new vec5(w, w, x, w, z);
/// <summary>
/// Returns vec4.aarab swizzling (equivalent to vec4.wwxwz).
/// </summary>
public vec5 aarab => new vec5(w, w, x, w, z);
/// <summary>
/// Returns vec4.wwxww swizzling.
/// </summary>
public vec5 wwxww => new vec5(w, w, x, w, w);
/// <summary>
/// Returns vec4.aaraa swizzling (equivalent to vec4.wwxww).
/// </summary>
public vec5 aaraa => new vec5(w, w, x, w, w);
/// <summary>
/// Returns vec4.wwy swizzling.
/// </summary>
public vec3 wwy => new vec3(w, w, y);
/// <summary>
/// Returns vec4.aag swizzling (equivalent to vec4.wwy).
/// </summary>
public vec3 aag => new vec3(w, w, y);
/// <summary>
/// Returns vec4.wwyx swizzling.
/// </summary>
public vec4 wwyx => new vec4(w, w, y, x);
/// <summary>
/// Returns vec4.aagr swizzling (equivalent to vec4.wwyx).
/// </summary>
public vec4 aagr => new vec4(w, w, y, x);
/// <summary>
/// Returns vec4.wwyxx swizzling.
/// </summary>
public vec5 wwyxx => new vec5(w, w, y, x, x);
/// <summary>
/// Returns vec4.aagrr swizzling (equivalent to vec4.wwyxx).
/// </summary>
public vec5 aagrr => new vec5(w, w, y, x, x);
/// <summary>
/// Returns vec4.wwyxy swizzling.
/// </summary>
public vec5 wwyxy => new vec5(w, w, y, x, y);
/// <summary>
/// Returns vec4.aagrg swizzling (equivalent to vec4.wwyxy).
/// </summary>
public vec5 aagrg => new vec5(w, w, y, x, y);
/// <summary>
/// Returns vec4.wwyxz swizzling.
/// </summary>
public vec5 wwyxz => new vec5(w, w, y, x, z);
/// <summary>
/// Returns vec4.aagrb swizzling (equivalent to vec4.wwyxz).
/// </summary>
public vec5 aagrb => new vec5(w, w, y, x, z);
/// <summary>
/// Returns vec4.wwyxw swizzling.
/// </summary>
public vec5 wwyxw => new vec5(w, w, y, x, w);
/// <summary>
/// Returns vec4.aagra swizzling (equivalent to vec4.wwyxw).
/// </summary>
public vec5 aagra => new vec5(w, w, y, x, w);
/// <summary>
/// Returns vec4.wwyy swizzling.
/// </summary>
public vec4 wwyy => new vec4(w, w, y, y);
/// <summary>
/// Returns vec4.aagg swizzling (equivalent to vec4.wwyy).
/// </summary>
public vec4 aagg => new vec4(w, w, y, y);
/// <summary>
/// Returns vec4.wwyyx swizzling.
/// </summary>
public vec5 wwyyx => new vec5(w, w, y, y, x);
/// <summary>
/// Returns vec4.aaggr swizzling (equivalent to vec4.wwyyx).
/// </summary>
public vec5 aaggr => new vec5(w, w, y, y, x);
/// <summary>
/// Returns vec4.wwyyy swizzling.
/// </summary>
public vec5 wwyyy => new vec5(w, w, y, y, y);
/// <summary>
/// Returns vec4.aaggg swizzling (equivalent to vec4.wwyyy).
/// </summary>
public vec5 aaggg => new vec5(w, w, y, y, y);
/// <summary>
/// Returns vec4.wwyyz swizzling.
/// </summary>
public vec5 wwyyz => new vec5(w, w, y, y, z);
/// <summary>
/// Returns vec4.aaggb swizzling (equivalent to vec4.wwyyz).
/// </summary>
public vec5 aaggb => new vec5(w, w, y, y, z);
/// <summary>
/// Returns vec4.wwyyw swizzling.
/// </summary>
public vec5 wwyyw => new vec5(w, w, y, y, w);
/// <summary>
/// Returns vec4.aagga swizzling (equivalent to vec4.wwyyw).
/// </summary>
public vec5 aagga => new vec5(w, w, y, y, w);
/// <summary>
/// Returns vec4.wwyz swizzling.
/// </summary>
public vec4 wwyz => new vec4(w, w, y, z);
/// <summary>
/// Returns vec4.aagb swizzling (equivalent to vec4.wwyz).
/// </summary>
public vec4 aagb => new vec4(w, w, y, z);
/// <summary>
/// Returns vec4.wwyzx swizzling.
/// </summary>
public vec5 wwyzx => new vec5(w, w, y, z, x);
/// <summary>
/// Returns vec4.aagbr swizzling (equivalent to vec4.wwyzx).
/// </summary>
public vec5 aagbr => new vec5(w, w, y, z, x);
/// <summary>
/// Returns vec4.wwyzy swizzling.
/// </summary>
public vec5 wwyzy => new vec5(w, w, y, z, y);
/// <summary>
/// Returns vec4.aagbg swizzling (equivalent to vec4.wwyzy).
/// </summary>
public vec5 aagbg => new vec5(w, w, y, z, y);
/// <summary>
/// Returns vec4.wwyzz swizzling.
/// </summary>
public vec5 wwyzz => new vec5(w, w, y, z, z);
/// <summary>
/// Returns vec4.aagbb swizzling (equivalent to vec4.wwyzz).
/// </summary>
public vec5 aagbb => new vec5(w, w, y, z, z);
/// <summary>
/// Returns vec4.wwyzw swizzling.
/// </summary>
public vec5 wwyzw => new vec5(w, w, y, z, w);
/// <summary>
/// Returns vec4.aagba swizzling (equivalent to vec4.wwyzw).
/// </summary>
public vec5 aagba => new vec5(w, w, y, z, w);
/// <summary>
/// Returns vec4.wwyw swizzling.
/// </summary>
public vec4 wwyw => new vec4(w, w, y, w);
/// <summary>
/// Returns vec4.aaga swizzling (equivalent to vec4.wwyw).
/// </summary>
public vec4 aaga => new vec4(w, w, y, w);
/// <summary>
/// Returns vec4.wwywx swizzling.
/// </summary>
public vec5 wwywx => new vec5(w, w, y, w, x);
/// <summary>
/// Returns vec4.aagar swizzling (equivalent to vec4.wwywx).
/// </summary>
public vec5 aagar => new vec5(w, w, y, w, x);
/// <summary>
/// Returns vec4.wwywy swizzling.
/// </summary>
public vec5 wwywy => new vec5(w, w, y, w, y);
/// <summary>
/// Returns vec4.aagag swizzling (equivalent to vec4.wwywy).
/// </summary>
public vec5 aagag => new vec5(w, w, y, w, y);
/// <summary>
/// Returns vec4.wwywz swizzling.
/// </summary>
public vec5 wwywz => new vec5(w, w, y, w, z);
/// <summary>
/// Returns vec4.aagab swizzling (equivalent to vec4.wwywz).
/// </summary>
public vec5 aagab => new vec5(w, w, y, w, z);
/// <summary>
/// Returns vec4.wwyww swizzling.
/// </summary>
public vec5 wwyww => new vec5(w, w, y, w, w);
/// <summary>
/// Returns vec4.aagaa swizzling (equivalent to vec4.wwyww).
/// </summary>
public vec5 aagaa => new vec5(w, w, y, w, w);
/// <summary>
/// Returns vec4.wwz swizzling.
/// </summary>
public vec3 wwz => new vec3(w, w, z);
/// <summary>
/// Returns vec4.aab swizzling (equivalent to vec4.wwz).
/// </summary>
public vec3 aab => new vec3(w, w, z);
/// <summary>
/// Returns vec4.wwzx swizzling.
/// </summary>
public vec4 wwzx => new vec4(w, w, z, x);
/// <summary>
/// Returns vec4.aabr swizzling (equivalent to vec4.wwzx).
/// </summary>
public vec4 aabr => new vec4(w, w, z, x);
/// <summary>
/// Returns vec4.wwzxx swizzling.
/// </summary>
public vec5 wwzxx => new vec5(w, w, z, x, x);
/// <summary>
/// Returns vec4.aabrr swizzling (equivalent to vec4.wwzxx).
/// </summary>
public vec5 aabrr => new vec5(w, w, z, x, x);
/// <summary>
/// Returns vec4.wwzxy swizzling.
/// </summary>
public vec5 wwzxy => new vec5(w, w, z, x, y);
/// <summary>
/// Returns vec4.aabrg swizzling (equivalent to vec4.wwzxy).
/// </summary>
public vec5 aabrg => new vec5(w, w, z, x, y);
/// <summary>
/// Returns vec4.wwzxz swizzling.
/// </summary>
public vec5 wwzxz => new vec5(w, w, z, x, z);
/// <summary>
/// Returns vec4.aabrb swizzling (equivalent to vec4.wwzxz).
/// </summary>
public vec5 aabrb => new vec5(w, w, z, x, z);
/// <summary>
/// Returns vec4.wwzxw swizzling.
/// </summary>
public vec5 wwzxw => new vec5(w, w, z, x, w);
/// <summary>
/// Returns vec4.aabra swizzling (equivalent to vec4.wwzxw).
/// </summary>
public vec5 aabra => new vec5(w, w, z, x, w);
/// <summary>
/// Returns vec4.wwzy swizzling.
/// </summary>
public vec4 wwzy => new vec4(w, w, z, y);
/// <summary>
/// Returns vec4.aabg swizzling (equivalent to vec4.wwzy).
/// </summary>
public vec4 aabg => new vec4(w, w, z, y);
/// <summary>
/// Returns vec4.wwzyx swizzling.
/// </summary>
public vec5 wwzyx => new vec5(w, w, z, y, x);
/// <summary>
/// Returns vec4.aabgr swizzling (equivalent to vec4.wwzyx).
/// </summary>
public vec5 aabgr => new vec5(w, w, z, y, x);
/// <summary>
/// Returns vec4.wwzyy swizzling.
/// </summary>
public vec5 wwzyy => new vec5(w, w, z, y, y);
/// <summary>
/// Returns vec4.aabgg swizzling (equivalent to vec4.wwzyy).
/// </summary>
public vec5 aabgg => new vec5(w, w, z, y, y);
/// <summary>
/// Returns vec4.wwzyz swizzling.
/// </summary>
public vec5 wwzyz => new vec5(w, w, z, y, z);
/// <summary>
/// Returns vec4.aabgb swizzling (equivalent to vec4.wwzyz).
/// </summary>
public vec5 aabgb => new vec5(w, w, z, y, z);
/// <summary>
/// Returns vec4.wwzyw swizzling.
/// </summary>
public vec5 wwzyw => new vec5(w, w, z, y, w);
/// <summary>
/// Returns vec4.aabga swizzling (equivalent to vec4.wwzyw).
/// </summary>
public vec5 aabga => new vec5(w, w, z, y, w);
/// <summary>
/// Returns vec4.wwzz swizzling.
/// </summary>
public vec4 wwzz => new vec4(w, w, z, z);
/// <summary>
/// Returns vec4.aabb swizzling (equivalent to vec4.wwzz).
/// </summary>
public vec4 aabb => new vec4(w, w, z, z);
/// <summary>
/// Returns vec4.wwzzx swizzling.
/// </summary>
public vec5 wwzzx => new vec5(w, w, z, z, x);
/// <summary>
/// Returns vec4.aabbr swizzling (equivalent to vec4.wwzzx).
/// </summary>
public vec5 aabbr => new vec5(w, w, z, z, x);
/// <summary>
/// Returns vec4.wwzzy swizzling.
/// </summary>
public vec5 wwzzy => new vec5(w, w, z, z, y);
/// <summary>
/// Returns vec4.aabbg swizzling (equivalent to vec4.wwzzy).
/// </summary>
public vec5 aabbg => new vec5(w, w, z, z, y);
/// <summary>
/// Returns vec4.wwzzz swizzling.
/// </summary>
public vec5 wwzzz => new vec5(w, w, z, z, z);
/// <summary>
/// Returns vec4.aabbb swizzling (equivalent to vec4.wwzzz).
/// </summary>
public vec5 aabbb => new vec5(w, w, z, z, z);
/// <summary>
/// Returns vec4.wwzzw swizzling.
/// </summary>
public vec5 wwzzw => new vec5(w, w, z, z, w);
/// <summary>
/// Returns vec4.aabba swizzling (equivalent to vec4.wwzzw).
/// </summary>
public vec5 aabba => new vec5(w, w, z, z, w);
/// <summary>
/// Returns vec4.wwzw swizzling.
/// </summary>
public vec4 wwzw => new vec4(w, w, z, w);
/// <summary>
/// Returns vec4.aaba swizzling (equivalent to vec4.wwzw).
/// </summary>
public vec4 aaba => new vec4(w, w, z, w);
/// <summary>
/// Returns vec4.wwzwx swizzling.
/// </summary>
public vec5 wwzwx => new vec5(w, w, z, w, x);
/// <summary>
/// Returns vec4.aabar swizzling (equivalent to vec4.wwzwx).
/// </summary>
public vec5 aabar => new vec5(w, w, z, w, x);
/// <summary>
/// Returns vec4.wwzwy swizzling.
/// </summary>
public vec5 wwzwy => new vec5(w, w, z, w, y);
/// <summary>
/// Returns vec4.aabag swizzling (equivalent to vec4.wwzwy).
/// </summary>
public vec5 aabag => new vec5(w, w, z, w, y);
/// <summary>
/// Returns vec4.wwzwz swizzling.
/// </summary>
public vec5 wwzwz => new vec5(w, w, z, w, z);
/// <summary>
/// Returns vec4.aabab swizzling (equivalent to vec4.wwzwz).
/// </summary>
public vec5 aabab => new vec5(w, w, z, w, z);
/// <summary>
/// Returns vec4.wwzww swizzling.
/// </summary>
public vec5 wwzww => new vec5(w, w, z, w, w);
/// <summary>
/// Returns vec4.aabaa swizzling (equivalent to vec4.wwzww).
/// </summary>
public vec5 aabaa => new vec5(w, w, z, w, w);
/// <summary>
/// Returns vec4.www swizzling.
/// </summary>
public vec3 www => new vec3(w, w, w);
/// <summary>
/// Returns vec4.aaa swizzling (equivalent to vec4.www).
/// </summary>
public vec3 aaa => new vec3(w, w, w);
/// <summary>
/// Returns vec4.wwwx swizzling.
/// </summary>
public vec4 wwwx => new vec4(w, w, w, x);
/// <summary>
/// Returns vec4.aaar swizzling (equivalent to vec4.wwwx).
/// </summary>
public vec4 aaar => new vec4(w, w, w, x);
/// <summary>
/// Returns vec4.wwwxx swizzling.
/// </summary>
public vec5 wwwxx => new vec5(w, w, w, x, x);
/// <summary>
/// Returns vec4.aaarr swizzling (equivalent to vec4.wwwxx).
/// </summary>
public vec5 aaarr => new vec5(w, w, w, x, x);
/// <summary>
/// Returns vec4.wwwxy swizzling.
/// </summary>
public vec5 wwwxy => new vec5(w, w, w, x, y);
/// <summary>
/// Returns vec4.aaarg swizzling (equivalent to vec4.wwwxy).
/// </summary>
public vec5 aaarg => new vec5(w, w, w, x, y);
/// <summary>
/// Returns vec4.wwwxz swizzling.
/// </summary>
public vec5 wwwxz => new vec5(w, w, w, x, z);
/// <summary>
/// Returns vec4.aaarb swizzling (equivalent to vec4.wwwxz).
/// </summary>
public vec5 aaarb => new vec5(w, w, w, x, z);
/// <summary>
/// Returns vec4.wwwxw swizzling.
/// </summary>
public vec5 wwwxw => new vec5(w, w, w, x, w);
/// <summary>
/// Returns vec4.aaara swizzling (equivalent to vec4.wwwxw).
/// </summary>
public vec5 aaara => new vec5(w, w, w, x, w);
/// <summary>
/// Returns vec4.wwwy swizzling.
/// </summary>
public vec4 wwwy => new vec4(w, w, w, y);
/// <summary>
/// Returns vec4.aaag swizzling (equivalent to vec4.wwwy).
/// </summary>
public vec4 aaag => new vec4(w, w, w, y);
/// <summary>
/// Returns vec4.wwwyx swizzling.
/// </summary>
public vec5 wwwyx => new vec5(w, w, w, y, x);
/// <summary>
/// Returns vec4.aaagr swizzling (equivalent to vec4.wwwyx).
/// </summary>
public vec5 aaagr => new vec5(w, w, w, y, x);
/// <summary>
/// Returns vec4.wwwyy swizzling.
/// </summary>
public vec5 wwwyy => new vec5(w, w, w, y, y);
/// <summary>
/// Returns vec4.aaagg swizzling (equivalent to vec4.wwwyy).
/// </summary>
public vec5 aaagg => new vec5(w, w, w, y, y);
/// <summary>
/// Returns vec4.wwwyz swizzling.
/// </summary>
public vec5 wwwyz => new vec5(w, w, w, y, z);
/// <summary>
/// Returns vec4.aaagb swizzling (equivalent to vec4.wwwyz).
/// </summary>
public vec5 aaagb => new vec5(w, w, w, y, z);
/// <summary>
/// Returns vec4.wwwyw swizzling.
/// </summary>
public vec5 wwwyw => new vec5(w, w, w, y, w);
/// <summary>
/// Returns vec4.aaaga swizzling (equivalent to vec4.wwwyw).
/// </summary>
public vec5 aaaga => new vec5(w, w, w, y, w);
/// <summary>
/// Returns vec4.wwwz swizzling.
/// </summary>
public vec4 wwwz => new vec4(w, w, w, z);
/// <summary>
/// Returns vec4.aaab swizzling (equivalent to vec4.wwwz).
/// </summary>
public vec4 aaab => new vec4(w, w, w, z);
/// <summary>
/// Returns vec4.wwwzx swizzling.
/// </summary>
public vec5 wwwzx => new vec5(w, w, w, z, x);
/// <summary>
/// Returns vec4.aaabr swizzling (equivalent to vec4.wwwzx).
/// </summary>
public vec5 aaabr => new vec5(w, w, w, z, x);
/// <summary>
/// Returns vec4.wwwzy swizzling.
/// </summary>
public vec5 wwwzy => new vec5(w, w, w, z, y);
/// <summary>
/// Returns vec4.aaabg swizzling (equivalent to vec4.wwwzy).
/// </summary>
public vec5 aaabg => new vec5(w, w, w, z, y);
/// <summary>
/// Returns vec4.wwwzz swizzling.
/// </summary>
public vec5 wwwzz => new vec5(w, w, w, z, z);
/// <summary>
/// Returns vec4.aaabb swizzling (equivalent to vec4.wwwzz).
/// </summary>
public vec5 aaabb => new vec5(w, w, w, z, z);
/// <summary>
/// Returns vec4.wwwzw swizzling.
/// </summary>
public vec5 wwwzw => new vec5(w, w, w, z, w);
/// <summary>
/// Returns vec4.aaaba swizzling (equivalent to vec4.wwwzw).
/// </summary>
public vec5 aaaba => new vec5(w, w, w, z, w);
/// <summary>
/// Returns vec4.wwww swizzling.
/// </summary>
public vec4 wwww => new vec4(w, w, w, w);
/// <summary>
/// Returns vec4.aaaa swizzling (equivalent to vec4.wwww).
/// </summary>
public vec4 aaaa => new vec4(w, w, w, w);
/// <summary>
/// Returns vec4.wwwwx swizzling.
/// </summary>
public vec5 wwwwx => new vec5(w, w, w, w, x);
/// <summary>
/// Returns vec4.aaaar swizzling (equivalent to vec4.wwwwx).
/// </summary>
public vec5 aaaar => new vec5(w, w, w, w, x);
/// <summary>
/// Returns vec4.wwwwy swizzling.
/// </summary>
public vec5 wwwwy => new vec5(w, w, w, w, y);
/// <summary>
/// Returns vec4.aaaag swizzling (equivalent to vec4.wwwwy).
/// </summary>
public vec5 aaaag => new vec5(w, w, w, w, y);
/// <summary>
/// Returns vec4.wwwwz swizzling.
/// </summary>
public vec5 wwwwz => new vec5(w, w, w, w, z);
/// <summary>
/// Returns vec4.aaaab swizzling (equivalent to vec4.wwwwz).
/// </summary>
public vec5 aaaab => new vec5(w, w, w, w, z);
/// <summary>
/// Returns vec4.wwwww swizzling.
/// </summary>
public vec5 wwwww => new vec5(w, w, w, w, w);
/// <summary>
/// Returns vec4.aaaaa swizzling (equivalent to vec4.wwwww).
/// </summary>
public vec5 aaaaa => new vec5(w, w, w, w, w);
#endregion
}
}
| 32.289268 | 99 | 0.4663 | [
"MIT"
] | akriegman/GlmSharpN | GlmSharp/GlmSharpCompat5/Swizzle/swizzle_vec4.cs | 441,362 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;
using Prism.Mvvm;
namespace BgInfo.Models {
public class Settings : BindableBase {
private string _fontFamily = "Arial";
public string FontFamily {
get { return _fontFamily; }
set { SetProperty(ref _fontFamily, value); }
}
private int _fontSize = 14;
public int FontSize {
get { return _fontSize; }
set { SetProperty(ref _fontSize, value); }
}
private Brush _textColor = Brushes.White;
public Brush TextColor {
get { return _textColor; }
set { SetProperty(ref _textColor, value); }
}
public int IntervalSeconds { get; set; } = 60;
}
}
| 24.2 | 56 | 0.604486 | [
"MIT"
] | robseb/HorizonTCBGviewer | BgInfo/Models/Settings.cs | 849 | C# |
using System;
using System.Threading;
using System.Threading.Tasks;
using Elasticsearch.Net;
namespace Nest
{
public partial interface IElasticClient
{
/// <summary>
/// The delete API allows to delete a typed JSON document from a specific index based on its id.
/// <para> </para>
/// <a href="http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-delete.html">http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-delete.html</a>
/// </summary>
/// <typeparam name="TDocument">The type used to infer the default index and typename</typeparam>
/// <param name="selector">Describe the delete operation, i.e type/index/id</param>
DeleteResponse Delete<TDocument>(DocumentPath<TDocument> document, Func<DeleteDescriptor<TDocument>, IDeleteRequest> selector = null) where TDocument : class;
/// <inheritdoc />
DeleteResponse Delete(IDeleteRequest request);
/// <inheritdoc />
Task<DeleteResponse> DeleteAsync<TDocument>(
DocumentPath<TDocument> document, Func<DeleteDescriptor<TDocument>, IDeleteRequest> selector = null,
CancellationToken ct = default
) where TDocument : class;
/// <inheritdoc />
Task<DeleteResponse> DeleteAsync(IDeleteRequest request, CancellationToken ct = default);
}
public partial class ElasticClient
{
/// <inheritdoc />
public DeleteResponse Delete<TDocument>(DocumentPath<TDocument> document, Func<DeleteDescriptor<TDocument>, IDeleteRequest> selector = null) where TDocument : class =>
Delete(selector.InvokeOrDefault(new DeleteDescriptor<TDocument>(document.Self.Index, document.Self.Id)));
/// <inheritdoc />
public DeleteResponse Delete(IDeleteRequest request) =>
DoRequest<IDeleteRequest, DeleteResponse>(request, request.RequestParameters);
/// <inheritdoc />
public Task<DeleteResponse> DeleteAsync<TDocument>(
DocumentPath<TDocument> document,
Func<DeleteDescriptor<TDocument>, IDeleteRequest> selector = null,
CancellationToken ct = default
)
where TDocument : class =>
DeleteAsync(selector.InvokeOrDefault(new DeleteDescriptor<TDocument>(document.Self.Index, document.Self.Id)), ct);
/// <inheritdoc />
public Task<DeleteResponse> DeleteAsync(IDeleteRequest request, CancellationToken ct = default) =>
DoRequestAsync<IDeleteRequest, DeleteResponse>(request, request.RequestParameters, ct);
}
}
| 42.214286 | 193 | 0.75846 | [
"Apache-2.0"
] | 591094733/elasticsearch-net | src/Nest/Document/Single/Delete/ElasticClient-Delete.cs | 2,368 | C# |
using System;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Components;
using Microsoft.JSInterop;
using Oqtane.Providers;
using Oqtane.Services;
using Oqtane.UI;
namespace Oqtane.Themes.Controls
{
public class LoginBase : ThemeControlBase
{
[Inject] public NavigationManager NavigationManager {get;set;}
[Inject]public IUserService UserService {get;set;}
[Inject]public IJSRuntime jsRuntime {get;set;}
[Inject]public IServiceProvider ServiceProvider {get;set;}
protected void LoginUser()
{
var returnurl = PageState.Alias.Path;
if (PageState.Page.Path != "/")
{
returnurl += "/" + PageState.Page.Path;
}
NavigationManager.NavigateTo(NavigateUrl("login", "?returnurl=" + returnurl));
}
protected async Task LogoutUser()
{
await UserService.LogoutUserAsync(PageState.User);
PageState.User = null;
if (PageState.Runtime == Oqtane.Shared.Runtime.Server)
{
// server-side Blazor
var interop = new Interop(jsRuntime);
string antiforgerytoken = await interop.GetElementByName("__RequestVerificationToken");
var fields = new { __RequestVerificationToken = antiforgerytoken, returnurl = (PageState.Alias.Path + "/" + PageState.Page.Path) };
await interop.SubmitForm($"/{PageState.Alias.AliasId}/pages/logout/", fields);
}
else
{
// client-side Blazor
var authstateprovider = (IdentityAuthenticationStateProvider)ServiceProvider.GetService(typeof(IdentityAuthenticationStateProvider));
authstateprovider.NotifyAuthenticationChanged();
NavigationManager.NavigateTo(NavigateUrl(PageState.Page.Path, "reload"));
}
}
}
}
| 37.862745 | 149 | 0.623511 | [
"MIT"
] | AndreAbrantes/oqtane.framework | Oqtane.Client/Themes/Controls/LoginBase.cs | 1,931 | C# |
// Copyright (c) Richasy. All rights reserved.
using System.Threading.Tasks;
using Bilibili.App.Dynamic.V2;
using Bilibili.Main.Community.Reply.V1;
using Richasy.Bili.Models.Enums.Bili;
namespace Richasy.Bili.Lib.Interfaces
{
/// <summary>
/// 社区交互处理工具.
/// </summary>
public interface ICommunityProvider
{
/// <summary>
/// 获取评论列表.
/// </summary>
/// <param name="targetId">目标Id.</param>
/// <param name="type">评论区类型.</param>
/// <param name="cursor">游标.</param>
/// <returns>评论列表响应.</returns>
Task<MainListReply> GetReplyMainListAsync(int targetId, ReplyType type, CursorReq cursor);
/// <summary>
/// 获取单层评论详情列表.
/// </summary>
/// <param name="targetId">目标评论区Id.</param>
/// <param name="type">评论区类型.</param>
/// <param name="rootId">根评论Id.</param>
/// <param name="cursor">游标.</param>
/// <returns>评论列表响应.</returns>
Task<DetailListReply> GetReplyDetailListAsync(int targetId, ReplyType type, long rootId, CursorReq cursor);
/// <summary>
/// 给评论点赞/取消点赞.
/// </summary>
/// <param name="isLike">是否点赞.</param>
/// <param name="replyId">评论Id.</param>
/// <param name="targetId">目标评论区Id.</param>
/// <param name="type">评论区类型.</param>
/// <returns>结果.</returns>
Task<bool> LikeReplyAsync(bool isLike, long replyId, int targetId, ReplyType type);
/// <summary>
/// 添加评论.
/// </summary>
/// <param name="message">评论内容.</param>
/// <param name="targetId">评论区Id.</param>
/// <param name="type">评论区类型.</param>
/// <param name="rootId">根评论Id.</param>
/// <param name="parentId">正在回复的评论Id.</param>
/// <returns>发布结果.</returns>
Task<bool> AddReplyAsync(string message, int targetId, ReplyType type, long rootId, long parentId);
/// <summary>
/// 获取视频动态列表.
/// </summary>
/// <param name="historyOffset">历史偏移值.</param>
/// <param name="baseLine">更新基线.</param>
/// <returns>视频动态响应.</returns>
Task<DynVideoReply> GetDynamicVideoListAsync(string historyOffset, string baseLine);
/// <summary>
/// 点赞/取消点赞动态.
/// </summary>
/// <param name="dynamicId">动态Id.</param>
/// <param name="isLike">是否点赞.</param>
/// <param name="userId">用户Id.</param>
/// <param name="rid">扩展数据标识.</param>
/// <returns>是否操作成功.</returns>
Task<bool> LikeDynamicAsync(string dynamicId, bool isLike, long userId, string rid);
}
}
| 35.635135 | 115 | 0.566553 | [
"MIT"
] | EndDream/Bili.Uwp | src/Lib/Lib.Interfaces/ICommunityProvider.cs | 2,975 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the support-2013-04-15.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.AWSSupport.Model;
using Amazon.AWSSupport.Model.Internal.MarshallTransformations;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AWSSupport
{
/// <summary>
/// Implementation for accessing AWSSupport
///
/// AWS Support
/// <para>
/// The AWS Support API reference is intended for programmers who need detailed information
/// about the AWS Support operations and data types. This service enables you to manage
/// your AWS Support cases programmatically. It uses HTTP methods that return results
/// in JSON format.
/// </para>
///
/// <para>
/// The AWS Support service also exposes a set of <a href="https://aws.amazon.com/premiumsupport/trustedadvisor/">Trusted
/// Advisor</a> features. You can retrieve a list of checks and their descriptions, get
/// check results, specify checks to refresh, and get the refresh status of checks.
/// </para>
///
/// <para>
/// The following list describes the AWS Support case management operations:
/// </para>
/// <ul> <li> <b>Service names, issue categories, and available severity levels. </b>The
/// <a>DescribeServices</a> and <a>DescribeSeverityLevels</a> operations return AWS service
/// names, service codes, service categories, and problem severity levels. You use these
/// values when you call the <a>CreateCase</a> operation. </li> <li> <b>Case creation,
/// case details, and case resolution.</b> The <a>CreateCase</a>, <a>DescribeCases</a>,
/// <a>DescribeAttachment</a>, and <a>ResolveCase</a> operations create AWS Support cases,
/// retrieve information about cases, and resolve cases.</li> <li> <b>Case communication.</b>
/// The <a>DescribeCommunications</a>, <a>AddCommunicationToCase</a>, and <a>AddAttachmentsToSet</a>
/// operations retrieve and add communications and attachments to AWS Support cases. </li>
/// </ul>
/// <para>
/// The following list describes the operations available from the AWS Support service
/// for Trusted Advisor:
/// </para>
/// <ul> <li> <a>DescribeTrustedAdvisorChecks</a> returns the list of checks that run
/// against your AWS resources.</li> <li>Using the <code>CheckId</code> for a specific
/// check returned by <a>DescribeTrustedAdvisorChecks</a>, you can call <a>DescribeTrustedAdvisorCheckResult</a>
/// to obtain the results for the check you specified.</li> <li> <a>DescribeTrustedAdvisorCheckSummaries</a>
/// returns summarized results for one or more Trusted Advisor checks.</li> <li> <a>RefreshTrustedAdvisorCheck</a>
/// requests that Trusted Advisor rerun a specified check. </li> <li> <a>DescribeTrustedAdvisorCheckRefreshStatuses</a>
/// reports the refresh status of one or more checks. </li> </ul>
/// <para>
/// For authentication of requests, AWS Support uses <a href="http://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// See <a href="http://docs.aws.amazon.com/awssupport/latest/user/Welcome.html">About
/// the AWS Support API</a> in the <i>AWS Support User Guide</i> for information about
/// how to use this service to create and manage your support cases, and how to call Trusted
/// Advisor for results of checks on your resources.
/// </para>
/// </summary>
public partial class AmazonAWSSupportClient : AmazonServiceClient, IAmazonAWSSupport
{
#region Constructors
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAWSSupportClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSSupportConfig()) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSSupportConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(AmazonAWSSupportConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAWSSupportClient(AWSCredentials credentials)
: this(credentials, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAWSSupportConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(AWSCredentials credentials, AmazonAWSSupportConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSSupportConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSSupportConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSSupportConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSSupportConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
#endregion
#region Dispose
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AddAttachmentsToSet
/// <summary>
/// Adds one or more attachments to an attachment set. If an <code>AttachmentSetId</code>
/// is not specified, a new attachment set is created, and the ID of the set is returned
/// in the response. If an <code>AttachmentSetId</code> is specified, the attachments
/// are added to the specified set, if it exists.
///
///
/// <para>
/// An attachment set is a temporary container for attachments that are to be added to
/// a case or case communication. The set is available for one hour after it is created;
/// the <code>ExpiryTime</code> returned in the response indicates when the set expires.
/// The maximum number of attachments in a set is 3, and the maximum size of any attachment
/// in the set is 5 MB.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet service method.</param>
///
/// <returns>The response from the AddAttachmentsToSet service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentLimitExceededException">
/// The limit for the number of attachment sets created in a short period of time has
/// been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetSizeLimitExceededException">
/// A limit for the size of an attachment set has been exceeded. The limits are 3 attachments
/// and 5 MB per attachment.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public AddAttachmentsToSetResponse AddAttachmentsToSet(AddAttachmentsToSetRequest request)
{
var marshaller = new AddAttachmentsToSetRequestMarshaller();
var unmarshaller = AddAttachmentsToSetResponseUnmarshaller.Instance;
return Invoke<AddAttachmentsToSetRequest,AddAttachmentsToSetResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the AddAttachmentsToSet operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<AddAttachmentsToSetResponse> AddAttachmentsToSetAsync(AddAttachmentsToSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new AddAttachmentsToSetRequestMarshaller();
var unmarshaller = AddAttachmentsToSetResponseUnmarshaller.Instance;
return InvokeAsync<AddAttachmentsToSetRequest,AddAttachmentsToSetResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region AddCommunicationToCase
/// <summary>
/// Adds additional customer communication to an AWS Support case. You use the <code>CaseId</code>
/// value to identify the case to add communication to. You can list a set of email addresses
/// to copy on the communication using the <code>CcEmailAddresses</code> value. The <code>CommunicationBody</code>
/// value contains the text of the communication.
///
///
/// <para>
/// The response indicates the success or failure of the request.
/// </para>
///
/// <para>
/// This operation implements a subset of the features of the AWS Support Center.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase service method.</param>
///
/// <returns>The response from the AddCommunicationToCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>CaseId</code> could not be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public AddCommunicationToCaseResponse AddCommunicationToCase(AddCommunicationToCaseRequest request)
{
var marshaller = new AddCommunicationToCaseRequestMarshaller();
var unmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance;
return Invoke<AddCommunicationToCaseRequest,AddCommunicationToCaseResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the AddCommunicationToCase operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<AddCommunicationToCaseResponse> AddCommunicationToCaseAsync(AddCommunicationToCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new AddCommunicationToCaseRequestMarshaller();
var unmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance;
return InvokeAsync<AddCommunicationToCaseRequest,AddCommunicationToCaseResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region CreateCase
/// <summary>
/// Creates a new case in the AWS Support Center. This operation is modeled on the behavior
/// of the AWS Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. Its parameters require you to specify the following information:
///
/// <ol> <li> <b>IssueType.</b> The type of issue for the case. You can specify either
/// "customer-service" or "technical." If you do not indicate a value, the default is
/// "technical." </li> <li> <b>ServiceCode.</b> The code for an AWS service. You obtain
/// the <code>ServiceCode</code> by calling <a>DescribeServices</a>. </li> <li> <b>CategoryCode.</b>
/// The category for the service defined for the <code>ServiceCode</code> value. You also
/// obtain the category code for a service by calling <a>DescribeServices</a>. Each AWS
/// service defines its own set of category codes. </li> <li> <b>SeverityCode.</b> A value
/// that indicates the urgency of the case, which in turn determines the response time
/// according to your service level agreement with AWS Support. You obtain the SeverityCode
/// by calling <a>DescribeSeverityLevels</a>.</li> <li> <b>Subject.</b> The <b>Subject</b>
/// field on the AWS Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.</li> <li> <b>CommunicationBody.</b> The <b>Description</b> field on
/// the AWS Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.</li> <li> <b>AttachmentSetId.</b> The ID of a set of attachments that
/// has been created by using <a>AddAttachmentsToSet</a>.</li> <li> <b>Language.</b> The
/// human language in which AWS Support handles the case. English and Japanese are currently
/// supported.</li> <li> <b>CcEmailAddresses.</b> The AWS Support Center <b>CC</b> field
/// on the <a href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a>
/// page. You can list email addresses to be copied on any correspondence about the case.
/// The account that opens the case is already identified by passing the AWS Credentials
/// in the HTTP POST method or in a method or function call from one of the programming
/// languages supported by an <a href="http://aws.amazon.com/tools/">AWS SDK</a>. </li>
/// </ol> <note>
/// <para>
/// To add additional communication or attachments to an existing case, use <a>AddCommunicationToCase</a>.
/// </para>
/// </note>
/// <para>
/// A successful <a>CreateCase</a> request returns an AWS Support case number. Case numbers
/// are used by the <a>DescribeCases</a> operation to retrieve existing AWS Support cases.
///
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCase service method.</param>
///
/// <returns>The response from the CreateCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseCreationLimitExceededException">
/// The case creation limit for the account has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public CreateCaseResponse CreateCase(CreateCaseRequest request)
{
var marshaller = new CreateCaseRequestMarshaller();
var unmarshaller = CreateCaseResponseUnmarshaller.Instance;
return Invoke<CreateCaseRequest,CreateCaseResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateCase operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateCase operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<CreateCaseResponse> CreateCaseAsync(CreateCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new CreateCaseRequestMarshaller();
var unmarshaller = CreateCaseResponseUnmarshaller.Instance;
return InvokeAsync<CreateCaseRequest,CreateCaseResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region DescribeAttachment
/// <summary>
/// Returns the attachment that has the specified ID. Attachment IDs are generated by
/// the case management system when you add an attachment to a case or case communication.
/// Attachment IDs are returned in the <a>AttachmentDetails</a> objects that are returned
/// by the <a>DescribeCommunications</a> operation.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment service method.</param>
///
/// <returns>The response from the DescribeAttachment service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentIdNotFoundException">
/// An attachment with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.DescribeAttachmentLimitExceededException">
/// The limit for the number of <a>DescribeAttachment</a> requests in a short period of
/// time has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public DescribeAttachmentResponse DescribeAttachment(DescribeAttachmentRequest request)
{
var marshaller = new DescribeAttachmentRequestMarshaller();
var unmarshaller = DescribeAttachmentResponseUnmarshaller.Instance;
return Invoke<DescribeAttachmentRequest,DescribeAttachmentResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeAttachment operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<DescribeAttachmentResponse> DescribeAttachmentAsync(DescribeAttachmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new DescribeAttachmentRequestMarshaller();
var unmarshaller = DescribeAttachmentResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAttachmentRequest,DescribeAttachmentResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region DescribeCases
/// <summary>
/// Returns a list of cases that you specify by passing one or more case IDs. In addition,
/// you can filter the cases by date by setting values for the <code>AfterTime</code>
/// and <code>BeforeTime</code> request parameters. You can set values for the <code>IncludeResolvedCases</code>
/// and <code>IncludeCommunications</code> request parameters to control how much information
/// is returned.
///
///
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request for data might cause an error.
/// </para>
///
/// <para>
/// The response returns the following in JSON format:
/// </para>
/// <ol> <li>One or more <a>CaseDetails</a> data types. </li> <li>One or more <code>NextToken</code>
/// values, which specify where to paginate the returned records represented by the <code>CaseDetails</code>
/// objects.</li> </ol>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCases service method.</param>
///
/// <returns>The response from the DescribeCases service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>CaseId</code> could not be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public DescribeCasesResponse DescribeCases(DescribeCasesRequest request)
{
var marshaller = new DescribeCasesRequestMarshaller();
var unmarshaller = DescribeCasesResponseUnmarshaller.Instance;
return Invoke<DescribeCasesRequest,DescribeCasesResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeCases operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeCases operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<DescribeCasesResponse> DescribeCasesAsync(DescribeCasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new DescribeCasesRequestMarshaller();
var unmarshaller = DescribeCasesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeCasesRequest,DescribeCasesResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region DescribeCommunications
/// <summary>
/// Returns communications (and attachments) for one or more support cases. You can use
/// the <code>AfterTime</code> and <code>BeforeTime</code> parameters to filter by date.
/// You can use the <code>CaseId</code> parameter to restrict the results to a particular
/// case.
///
///
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request for data might cause an error.
/// </para>
///
/// <para>
/// You can use the <code>MaxResults</code> and <code>NextToken</code> parameters to control
/// the pagination of the result set. Set <code>MaxResults</code> to the number of cases
/// you want displayed on each page, and use <code>NextToken</code> to specify the resumption
/// of pagination.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications service method.</param>
///
/// <returns>The response from the DescribeCommunications service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>CaseId</code> could not be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public DescribeCommunicationsResponse DescribeCommunications(DescribeCommunicationsRequest request)
{
var marshaller = new DescribeCommunicationsRequestMarshaller();
var unmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance;
return Invoke<DescribeCommunicationsRequest,DescribeCommunicationsResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeCommunications operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<DescribeCommunicationsResponse> DescribeCommunicationsAsync(DescribeCommunicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new DescribeCommunicationsRequestMarshaller();
var unmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeCommunicationsRequest,DescribeCommunicationsResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region DescribeServices
/// <summary>
/// Returns the current list of AWS services and a list of service categories that applies
/// to each one. You then use service names and categories in your <a>CreateCase</a> requests.
/// Each AWS service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that are displayed in
/// the <b>Service</b> and <b>Category</b> drop-down lists on the AWS Support Center <a
/// href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.
/// The values in those fields, however, do not necessarily match the service codes and
/// categories returned by the <code>DescribeServices</code> request. Always use the service
/// codes and categories obtained programmatically. This practice ensures that you always
/// have the most recent set of service and category codes.
/// </para>
/// </summary>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public DescribeServicesResponse DescribeServices()
{
return DescribeServices(new DescribeServicesRequest());
}
/// <summary>
/// Returns the current list of AWS services and a list of service categories that applies
/// to each one. You then use service names and categories in your <a>CreateCase</a> requests.
/// Each AWS service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that are displayed in
/// the <b>Service</b> and <b>Category</b> drop-down lists on the AWS Support Center <a
/// href="https://console.aws.amazon.com/support/home#/case/create">Create Case</a> page.
/// The values in those fields, however, do not necessarily match the service codes and
/// categories returned by the <code>DescribeServices</code> request. Always use the service
/// codes and categories obtained programmatically. This practice ensures that you always
/// have the most recent set of service and category codes.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeServices service method.</param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public DescribeServicesResponse DescribeServices(DescribeServicesRequest request)
{
var marshaller = new DescribeServicesRequestMarshaller();
var unmarshaller = DescribeServicesResponseUnmarshaller.Instance;
return Invoke<DescribeServicesRequest,DescribeServicesResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeServices operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeServices operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<DescribeServicesResponse> DescribeServicesAsync(DescribeServicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new DescribeServicesRequestMarshaller();
var unmarshaller = DescribeServicesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeServicesRequest,DescribeServicesResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region DescribeSeverityLevels
/// <summary>
/// Returns the list of severity levels that you can assign to an AWS Support case. The
/// severity level for a case is also a field in the <a>CaseDetails</a> data type included
/// in any <a>CreateCase</a> request.
/// </summary>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public DescribeSeverityLevelsResponse DescribeSeverityLevels()
{
return DescribeSeverityLevels(new DescribeSeverityLevelsRequest());
}
/// <summary>
/// Returns the list of severity levels that you can assign to an AWS Support case. The
/// severity level for a case is also a field in the <a>CaseDetails</a> data type included
/// in any <a>CreateCase</a> request.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels service method.</param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public DescribeSeverityLevelsResponse DescribeSeverityLevels(DescribeSeverityLevelsRequest request)
{
var marshaller = new DescribeSeverityLevelsRequestMarshaller();
var unmarshaller = DescribeSeverityLevelsResponseUnmarshaller.Instance;
return Invoke<DescribeSeverityLevelsRequest,DescribeSeverityLevelsResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeSeverityLevels operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<DescribeSeverityLevelsResponse> DescribeSeverityLevelsAsync(DescribeSeverityLevelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new DescribeSeverityLevelsRequestMarshaller();
var unmarshaller = DescribeSeverityLevelsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeSeverityLevelsRequest,DescribeSeverityLevelsResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckRefreshStatuses
/// <summary>
/// Returns the refresh status of the Trusted Advisor checks that have the specified check
/// IDs. Check IDs can be obtained by calling <a>DescribeTrustedAdvisorChecks</a>.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckRefreshStatuses service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public DescribeTrustedAdvisorCheckRefreshStatusesResponse DescribeTrustedAdvisorCheckRefreshStatuses(DescribeTrustedAdvisorCheckRefreshStatusesRequest request)
{
var marshaller = new DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller();
var unmarshaller = DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckRefreshStatusesRequest,DescribeTrustedAdvisorCheckRefreshStatusesResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorCheckRefreshStatuses operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<DescribeTrustedAdvisorCheckRefreshStatusesResponse> DescribeTrustedAdvisorCheckRefreshStatusesAsync(DescribeTrustedAdvisorCheckRefreshStatusesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller();
var unmarshaller = DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorCheckRefreshStatusesRequest,DescribeTrustedAdvisorCheckRefreshStatusesResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckResult
/// <summary>
/// Returns the results of the Trusted Advisor check that has the specified check ID.
/// Check IDs can be obtained by calling <a>DescribeTrustedAdvisorChecks</a>.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckResult</a> object, which contains these
/// three objects:
/// </para>
/// <ul> <li><a>TrustedAdvisorCategorySpecificSummary</a></li> <li><a>TrustedAdvisorResourceDetail</a></li>
/// <li><a>TrustedAdvisorResourcesSummary</a></li> </ul>
/// <para>
/// In addition, the response contains these fields:
/// </para>
/// <ul> <li> <b>Status.</b> The alert status of the check: "ok" (green), "warning" (yellow),
/// "error" (red), or "not_available".</li> <li> <b>Timestamp.</b> The time of the last
/// refresh of the check.</li> <li> <b>CheckId.</b> The unique identifier for the check.</li>
/// </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckResult service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public DescribeTrustedAdvisorCheckResultResponse DescribeTrustedAdvisorCheckResult(DescribeTrustedAdvisorCheckResultRequest request)
{
var marshaller = new DescribeTrustedAdvisorCheckResultRequestMarshaller();
var unmarshaller = DescribeTrustedAdvisorCheckResultResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckResultRequest,DescribeTrustedAdvisorCheckResultResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorCheckResult operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<DescribeTrustedAdvisorCheckResultResponse> DescribeTrustedAdvisorCheckResultAsync(DescribeTrustedAdvisorCheckResultRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new DescribeTrustedAdvisorCheckResultRequestMarshaller();
var unmarshaller = DescribeTrustedAdvisorCheckResultResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorCheckResultRequest,DescribeTrustedAdvisorCheckResultResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorChecks
/// <summary>
/// Returns information about all available Trusted Advisor checks, including name, ID,
/// category, description, and metadata. You must specify a language code; English ("en")
/// and Japanese ("ja") are currently supported. The response contains a <a>TrustedAdvisorCheckDescription</a>
/// for each check.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorChecks service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public DescribeTrustedAdvisorChecksResponse DescribeTrustedAdvisorChecks(DescribeTrustedAdvisorChecksRequest request)
{
var marshaller = new DescribeTrustedAdvisorChecksRequestMarshaller();
var unmarshaller = DescribeTrustedAdvisorChecksResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorChecksRequest,DescribeTrustedAdvisorChecksResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorChecks operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<DescribeTrustedAdvisorChecksResponse> DescribeTrustedAdvisorChecksAsync(DescribeTrustedAdvisorChecksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new DescribeTrustedAdvisorChecksRequestMarshaller();
var unmarshaller = DescribeTrustedAdvisorChecksResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorChecksRequest,DescribeTrustedAdvisorChecksResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckSummaries
/// <summary>
/// Returns the summaries of the results of the Trusted Advisor checks that have the specified
/// check IDs. Check IDs can be obtained by calling <a>DescribeTrustedAdvisorChecks</a>.
///
///
/// <para>
/// The response contains an array of <a>TrustedAdvisorCheckSummary</a> objects.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckSummaries service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public DescribeTrustedAdvisorCheckSummariesResponse DescribeTrustedAdvisorCheckSummaries(DescribeTrustedAdvisorCheckSummariesRequest request)
{
var marshaller = new DescribeTrustedAdvisorCheckSummariesRequestMarshaller();
var unmarshaller = DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckSummariesRequest,DescribeTrustedAdvisorCheckSummariesResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorCheckSummaries operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<DescribeTrustedAdvisorCheckSummariesResponse> DescribeTrustedAdvisorCheckSummariesAsync(DescribeTrustedAdvisorCheckSummariesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new DescribeTrustedAdvisorCheckSummariesRequestMarshaller();
var unmarshaller = DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorCheckSummariesRequest,DescribeTrustedAdvisorCheckSummariesResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region RefreshTrustedAdvisorCheck
/// <summary>
/// Requests a refresh of the Trusted Advisor check that has the specified check ID. Check
/// IDs can be obtained by calling <a>DescribeTrustedAdvisorChecks</a>.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckRefreshStatus</a> object, which contains
/// these fields:
/// </para>
/// <ul> <li> <b>Status.</b> The refresh status of the check: "none", "enqueued", "processing",
/// "success", or "abandoned".</li> <li> <b>MillisUntilNextRefreshable.</b> The amount
/// of time, in milliseconds, until the check is eligible for refresh.</li> <li> <b>CheckId.</b>
/// The unique identifier for the check.</li> </ul>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck service method.</param>
///
/// <returns>The response from the RefreshTrustedAdvisorCheck service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public RefreshTrustedAdvisorCheckResponse RefreshTrustedAdvisorCheck(RefreshTrustedAdvisorCheckRequest request)
{
var marshaller = new RefreshTrustedAdvisorCheckRequestMarshaller();
var unmarshaller = RefreshTrustedAdvisorCheckResponseUnmarshaller.Instance;
return Invoke<RefreshTrustedAdvisorCheckRequest,RefreshTrustedAdvisorCheckResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the RefreshTrustedAdvisorCheck operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<RefreshTrustedAdvisorCheckResponse> RefreshTrustedAdvisorCheckAsync(RefreshTrustedAdvisorCheckRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new RefreshTrustedAdvisorCheckRequestMarshaller();
var unmarshaller = RefreshTrustedAdvisorCheckResponseUnmarshaller.Instance;
return InvokeAsync<RefreshTrustedAdvisorCheckRequest,RefreshTrustedAdvisorCheckResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
#region ResolveCase
/// <summary>
/// Takes a <code>CaseId</code> and returns the initial state of the case along with the
/// state of the case after the call to <a>ResolveCase</a> completed.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ResolveCase service method.</param>
///
/// <returns>The response from the ResolveCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>CaseId</code> could not be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
public ResolveCaseResponse ResolveCase(ResolveCaseRequest request)
{
var marshaller = new ResolveCaseRequestMarshaller();
var unmarshaller = ResolveCaseResponseUnmarshaller.Instance;
return Invoke<ResolveCaseRequest,ResolveCaseResponse>(request, marshaller, unmarshaller);
}
/// <summary>
/// Initiates the asynchronous execution of the ResolveCase operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ResolveCase operation.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
/// <returns>The task object representing the asynchronous operation.</returns>
public Task<ResolveCaseResponse> ResolveCaseAsync(ResolveCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var marshaller = new ResolveCaseRequestMarshaller();
var unmarshaller = ResolveCaseResponseUnmarshaller.Instance;
return InvokeAsync<ResolveCaseRequest,ResolveCaseResponse>(request, marshaller,
unmarshaller, cancellationToken);
}
#endregion
}
} | 54.195837 | 261 | 0.671799 | [
"Apache-2.0"
] | samritchie/aws-sdk-net | AWSSDK_DotNet45/Amazon.AWSSupport/AmazonAWSSupportClient.cs | 57,285 | C# |
/*
* Copyright (c) 2006-2016, openmetaverse.co
* All rights reserved.
*
* - Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
* - Neither the name of the openmetaverse.co nor the names
* of its contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Text;
namespace OpenMetaverse.StructuredData
{
/// <summary>
///
/// </summary>
public enum OSDType:byte
{
/// <summary></summary>
Unknown,
/// <summary></summary>
Boolean,
/// <summary></summary>
Integer,
/// <summary></summary>
Real,
/// <summary></summary>
String,
/// <summary></summary>
UUID,
/// <summary></summary>
Date,
/// <summary></summary>
URI,
/// <summary></summary>
Binary,
/// <summary></summary>
Map,
/// <summary></summary>
Array,
LLSDxml,
OSDUTF8
}
public enum OSDFormat
{
Xml = 0,
Json,
Binary
}
/// <summary>
///
/// </summary>
public class OSDException : Exception
{
public OSDException(string message) : base(message) { }
}
/// <summary>
///
/// </summary>
public partial class OSD
{
protected static readonly byte[] trueBinary = { 0x31 };
protected static readonly byte[] falseBinary = { 0x30 };
public OSDType Type = OSDType.Unknown;
// .net4.8 64Bit JIT fails polimorphism
public virtual bool AsBoolean()
{
switch (Type)
{
case OSDType.Boolean:
return ((OSDBoolean)this).value;
case OSDType.Integer:
return ((OSDInteger)this).value != 0;
case OSDType.Real:
double d = ((OSDReal)this).value;
return (!Double.IsNaN(d) && d != 0);
case OSDType.String:
string s = ((OSDString)this).value;
if (String.IsNullOrEmpty(s))
return false;
if (s == "0" || s.ToLower() == "false")
return false;
return true;
case OSDType.UUID:
return (((OSDUUID)this).value.IsZero()) ? false : true;
case OSDType.Map:
return ((OSDMap)this).dicvalue.Count > 0;
case OSDType.Array:
return ((OSDArray)this).value.Count > 0;
case OSDType.OSDUTF8:
osUTF8 u = ((OSDUTF8)this).value;
if (osUTF8.IsNullOrEmpty(u))
return false;
if (u.Equals('0') || u.ACSIILowerEquals("false"))
return false;
return true;
default:
return false;
}
}
public virtual int AsInteger()
{
switch (Type)
{
case OSDType.Boolean:
return ((OSDBoolean)this).value ? 1 : 0;
case OSDType.Integer:
return ((OSDInteger)this).value;
case OSDType.Real:
double v = ((OSDReal)this).value;
if (Double.IsNaN(v))
return 0;
if (v > Int32.MaxValue)
return Int32.MaxValue;
if (v < Int32.MinValue)
return Int32.MinValue;
return (int)Math.Round(v);
case OSDType.String:
string s = ((OSDString)this).value;
double dbl;
if (Double.TryParse(s, out dbl))
return (int)Math.Floor(dbl);
else
return 0;
case OSDType.OSDUTF8:
string us = ((OSDUTF8)this).value.ToString();
double udbl;
if (Double.TryParse(us, out udbl))
return (int)Math.Floor(udbl);
else
return 0;
case OSDType.Binary:
byte[] b = ((OSDBinary)this).value;
if (b.Length < 4)
return 0;
return (b[0] << 24) | (b[1] << 16) | (b[2] << 8) | b[3];
case OSDType.Array:
List<OSD> l = ((OSDArray)this).value;
if (l.Count < 4)
return 0;
byte[] by = new byte[4];
for (int i = 0; i < 4; i++)
by[i] = (byte)l[i].AsInteger();
return (by[0] << 24) | (by[1] << 16) | (by[2] << 8) | by[3];
case OSDType.Date:
return (int)Utils.DateTimeToUnixTime(((OSDDate)this).value);
default:
return 0;
}
}
public virtual uint AsUInteger()
{
switch (Type)
{
case OSDType.Boolean:
return ((OSDBoolean)this).value ? 1U : 0;
case OSDType.Integer:
return (uint)((OSDInteger)this).value;
case OSDType.Real:
double v = ((OSDReal)this).value;
if (Double.IsNaN(v))
return 0;
if (v > UInt32.MaxValue)
return UInt32.MaxValue;
if (v < UInt32.MinValue)
return UInt32.MinValue;
return (uint)Math.Round(v);
case OSDType.String:
string s = ((OSDString)this).value;
double dbl;
if (Double.TryParse(s, out dbl))
return (uint)Math.Floor(dbl);
else
return 0;
case OSDType.OSDUTF8:
string us = ((OSDUTF8)this).value.ToString();
double udbl;
if (Double.TryParse(us, out udbl))
return (uint)Math.Floor(udbl);
else
return 0;
case OSDType.Date:
return Utils.DateTimeToUnixTime(((OSDDate)this).value);
case OSDType.Binary:
byte[] b = ((OSDBinary)this).value;
if(b.Length < 4)
return 0;
return (uint)(
(b[0] << 24) | (b[1] << 16) | (b[2] << 8) | b[3]);
case OSDType.Array:
List<OSD> l = ((OSDArray)this).value;
if (l.Count < 4)
return 0;
byte[] by = new byte[4];
for (int i = 0; i < 4; i++)
by[i] = (byte)l[i].AsInteger();
return (uint)((by[0] << 24) | (by[1] << 16) | (by[2] << 8) | by[3]);
default:
return 0;
}
}
public virtual long AsLong()
{
switch (Type)
{
case OSDType.Boolean:
return ((OSDBoolean)this).value ? 1 : 0;
case OSDType.Integer:
return ((OSDInteger)this).value;
case OSDType.Real:
double v = ((OSDReal)this).value;
if (Double.IsNaN(v))
return 0;
if (v > Int64.MaxValue)
return Int64.MaxValue;
if (v < Int64.MinValue)
return Int64.MinValue;
return (long)Math.Round(v);
case OSDType.String:
string s = ((OSDString)this).value;
double dbl;
if (Double.TryParse(s, out dbl))
return (long)Math.Floor(dbl);
else
return 0;
case OSDType.OSDUTF8:
string us = ((OSDUTF8)this).value.ToString();
double udbl;
if (Double.TryParse(us, out udbl))
return (long)Math.Floor(udbl);
else
return 0;
case OSDType.Date:
return Utils.DateTimeToUnixTime(((OSDDate)this).value);
case OSDType.Binary:
{
byte[] b = ((OSDBinary)this).value;
if(b.Length < 8)
return 0;
return (
((long)b[0] << 56) |
((long)b[1] << 48) |
((long)b[2] << 40) |
((long)b[3] << 32) |
((long)b[4] << 24) |
((long)b[5] << 16) |
((long)b[6] << 8) |
b[7]);
}
case OSDType.Array:
{
List<OSD> l = ((OSDArray)this).value;
if (l.Count < 8)
return 0;
byte[] b = new byte[8];
for (int i = 0; i < 8; i++)
b[i] = (byte)l[i].AsInteger();
return (
((long)b[0] << 56) |
((long)b[1] << 48) |
((long)b[2] << 40) |
((long)b[3] << 32) |
((long)b[4] << 24) |
((long)b[5] << 16) |
((long)b[6] << 8) |
b[7]);
}
default:
return 0;
}
}
public virtual ulong AsULong()
{
switch (Type)
{
case OSDType.Boolean:
return ((OSDBoolean)this).value ? 1UL : 0;
case OSDType.Integer:
return (ulong)((OSDInteger)this).value;
case OSDType.Real:
double v = ((OSDReal)this).value;
if (Double.IsNaN(v))
return 0;
if (v > UInt64.MaxValue)
return UInt64.MaxValue;
if (v < UInt64.MinValue)
return UInt64.MinValue;
return (ulong)Math.Round(v);
case OSDType.String:
string s = ((OSDString)this).value;
double dbl;
if (Double.TryParse(s, out dbl))
return (ulong)Math.Floor(dbl);
else
return 0;
case OSDType.OSDUTF8:
string us = ((OSDUTF8)this).value.ToString();
double udbl;
if (Double.TryParse(us, out udbl))
return (ulong)Math.Floor(udbl);
else
return 0;
case OSDType.Date:
return Utils.DateTimeToUnixTime(((OSDDate)this).value);
case OSDType.Binary:
{
byte[] b = ((OSDBinary)this).value;
if (b.Length < 8)
return 0;
return (
((ulong)b[0] << 56) |
((ulong)b[1] << 48) |
((ulong)b[2] << 40) |
((ulong)b[3] << 32) |
((ulong)b[4] << 24) |
((ulong)b[5] << 16) |
((ulong)b[6] << 8) |
b[7]);
}
case OSDType.Array:
{
List<OSD> l = ((OSDArray)this).value;
if (l.Count < 8)
return 0;
byte[] b = new byte[8];
for (int i = 0; i < 8; i++)
b[i] = (byte)l[i].AsInteger();
return (
((ulong)b[0] << 56) |
((ulong)b[1] << 48) |
((ulong)b[2] << 40) |
((ulong)b[3] << 32) |
((ulong)b[4] << 24) |
((ulong)b[5] << 16) |
((ulong)b[6] << 8) |
b[7]);
}
default:
return 0;
}
}
public virtual double AsReal()
{
switch (Type)
{
case OSDType.Boolean:
return ((OSDBoolean)this).value ? 1.0 : 0;
case OSDType.Integer:
return ((OSDInteger)this).value;
case OSDType.Real:
return ((OSDReal)this).value;
case OSDType.String:
string s = ((OSDString)this).value;
double dbl;
if (Double.TryParse(s, out dbl))
return dbl;
else
return 0;
case OSDType.OSDUTF8:
string us = ((OSDUTF8)this).value.ToString();
double udbl;
if (Double.TryParse(us, out udbl))
return udbl;
else
return 0;
default:
return 0;
}
}
public virtual string AsString()
{
switch (Type)
{
case OSDType.Boolean:
return ((OSDBoolean)this).value ? "1" : "0";
case OSDType.Integer:
return ((OSDInteger)this).value.ToString();
case OSDType.Real:
return ((OSDReal)this).value.ToString("r", Utils.EnUsCulture);
case OSDType.String:
return ((OSDString)this).value;
case OSDType.OSDUTF8:
return ((OSDUTF8)this).value.ToString();
case OSDType.UUID:
return ((OSDUUID)this).value.ToString();
case OSDType.Date:
string format;
DateTime dt = ((OSDDate)this).value;
if (dt.Millisecond > 0)
format = "yyyy-MM-ddTHH:mm:ss.ffZ";
else
format = "yyyy-MM-ddTHH:mm:ssZ";
return dt.ToUniversalTime().ToString(format);
case OSDType.URI:
Uri ur = ((OSDUri)this).value;
if (ur == null)
return string.Empty;
if (ur.IsAbsoluteUri)
return ur.AbsoluteUri;
else
return ur.ToString();
case OSDType.Binary:
byte[] b = ((OSDBinary)this).value;
return Convert.ToBase64String(b);
case OSDType.LLSDxml:
return ((OSDllsdxml)this).value;
default:
return String.Empty;
}
}
public virtual UUID AsUUID()
{
switch (Type)
{
case OSDType.String:
UUID uuid;
if (UUID.TryParse(((OSDString)this).value, out uuid))
return uuid;
else
return UUID.Zero;
case OSDType.OSDUTF8:
UUID ouuid;
if (UUID.TryParse(((OSDUTF8)this).value.ToString(), out ouuid))
return ouuid;
else
return UUID.Zero;
case OSDType.UUID:
return ((OSDUUID)this).value;
default:
return UUID.Zero;
}
}
public virtual DateTime AsDate()
{
switch (Type)
{
case OSDType.String:
DateTime dt;
if (DateTime.TryParse(((OSDString)this).value, out dt))
return dt;
else
return Utils.Epoch;
case OSDType.OSDUTF8:
DateTime odt;
if (DateTime.TryParse(((OSDUTF8)this).value.ToString(), out odt))
return odt;
else
return Utils.Epoch;
case OSDType.UUID:
case OSDType.Date:
return ((OSDDate)this).value;
default:
return Utils.Epoch;
}
}
public virtual Uri AsUri()
{
switch (Type)
{
case OSDType.String:
Uri uri;
if (Uri.TryCreate(((OSDString)this).value, UriKind.RelativeOrAbsolute, out uri))
return uri;
else
return null;
case OSDType.OSDUTF8:
Uri ouri;
if (Uri.TryCreate(((OSDUTF8)this).value.ToString(), UriKind.RelativeOrAbsolute, out ouri))
return ouri;
else
return null;
case OSDType.URI:
return ((OSDUri)this).value;
default:
return null;
}
}
public virtual byte[] AsBinary()
{
switch (Type)
{
case OSDType.Boolean:
return ((OSDBoolean)this).value ? trueBinary : falseBinary;
case OSDType.Integer:
return Utils.IntToBytesBig(((OSDInteger)this).value);
case OSDType.Real:
return Utils.DoubleToBytesBig(((OSDReal)this).value);
case OSDType.String:
return Encoding.UTF8.GetBytes(((OSDString)this).value);
case OSDType.OSDUTF8:
return ((OSDUTF8)this).value.ToArray();
case OSDType.UUID:
return (((OSDUUID)this).value).GetBytes();
case OSDType.Date:
TimeSpan ts = (((OSDDate)this).value).ToUniversalTime() - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
return Utils.DoubleToBytes(ts.TotalSeconds);
case OSDType.URI:
return Encoding.UTF8.GetBytes(((OSDUri)this).AsString());
case OSDType.Binary:
return ((OSDBinary)this).value;
case OSDType.Map:
case OSDType.Array:
List<OSD> l = ((OSDArray)this).value;
byte[] binary = new byte[l.Count];
for (int i = 0; i < l.Count; i++)
binary[i] = (byte)l[i].AsInteger();
return binary;
case OSDType.LLSDxml:
return Encoding.UTF8.GetBytes(((OSDllsdxml)this).value);
default:
return Utils.EmptyBytes;
}
}
public Vector2 AsVector2()
{
switch (Type)
{
case OSDType.String:
return Vector2.Parse(((OSDString)this).value);
case OSDType.OSDUTF8:
return Vector2.Parse(((OSDUTF8)this).value.ToString());
case OSDType.Array:
List<OSD> l = ((OSDArray)this).value;
Vector2 vector = Vector2.Zero;
if (l.Count == 2)
{
vector.X = (float)l[0].AsReal();
vector.Y = (float)l[1].AsReal();
}
return vector;
default:
return Vector2.Zero;
}
}
public Vector3 AsVector3()
{
switch (Type)
{
case OSDType.String:
return Vector3.Parse(((OSDString)this).value);
case OSDType.OSDUTF8:
return Vector3.Parse(((OSDUTF8)this).value.ToString());
case OSDType.Array:
List<OSD> l = ((OSDArray)this).value;
Vector3 vector = Vector3.Zero;
if (l.Count == 3)
{
vector.X = (float)l[0].AsReal();
vector.Y = (float)l[1].AsReal();
vector.Z = (float)l[2].AsReal();
}
return vector;
default:
return Vector3.Zero;
}
}
public Vector3d AsVector3d()
{
switch (Type)
{
case OSDType.String:
return Vector3d.Parse(((OSDString)this).value);
case OSDType.OSDUTF8:
return Vector3d.Parse(((OSDUTF8)this).value.ToString());
case OSDType.Array:
List<OSD> l = ((OSDArray)this).value;
Vector3d vector = Vector3d.Zero;
if (l.Count == 3)
{
vector.X = (float)l[0].AsReal();
vector.Y = (float)l[1].AsReal();
vector.Z = (float)l[2].AsReal();
}
return vector;
default:
return Vector3d.Zero;
}
}
public Vector4 AsVector4()
{
switch (Type)
{
case OSDType.String:
return Vector4.Parse(((OSDString)this).value);
case OSDType.OSDUTF8:
return Vector4.Parse(((OSDUTF8)this).value.ToString());
case OSDType.Array:
List<OSD> l = ((OSDArray)this).value;
Vector4 vector = Vector4.Zero;
if (l.Count == 4)
{
vector.X = (float)l[0].AsReal();
vector.Y = (float)l[1].AsReal();
vector.Z = (float)l[2].AsReal();
vector.W = (float)l[3].AsReal();
}
return vector;
default:
return Vector4.Zero;
}
}
public Quaternion AsQuaternion()
{
switch (Type)
{
case OSDType.String:
return Quaternion.Parse(((OSDString)this).value);
case OSDType.OSDUTF8:
return Quaternion.Parse(((OSDString)this).value.ToString());
case OSDType.Array:
List<OSD> l = ((OSDArray)this).value;
Quaternion q = Quaternion.Identity;
if (l.Count == 4)
{
q.X = (float)l[0].AsReal();
q.Y = (float)l[1].AsReal();
q.Z = (float)l[2].AsReal();
q.W = (float)l[3].AsReal();
}
return q;
default:
return Quaternion.Identity;
}
}
public virtual Color4 AsColor4()
{
switch (Type)
{
case OSDType.Array:
List<OSD> l = ((OSDArray)this).value;
Color4 color = Color4.Black;
if (l.Count == 4)
{
color.R = (float)l[0].AsReal();
color.G = (float)l[1].AsReal();
color.B = (float)l[2].AsReal();
color.A = (float)l[3].AsReal();
}
return color;
default:
return Color4.Black;
}
}
public virtual void Clear() { }
public virtual OSD Copy()
{
switch (Type)
{
case OSDType.Boolean:
return new OSDBoolean(((OSDBoolean)this).value);
case OSDType.Integer:
return new OSDInteger(((OSDInteger)this).value);
case OSDType.Real:
return new OSDReal(((OSDReal)this).value);
case OSDType.String:
return new OSDString(((OSDString)this).value);
case OSDType.OSDUTF8:
return new OSDUTF8(((OSDUTF8)this).value);
case OSDType.UUID:
return new OSDUUID(((OSDUUID)this).value);
case OSDType.Date:
return new OSDDate(((OSDDate)this).value);
case OSDType.URI:
return new OSDUri(((OSDUri)this).value);
case OSDType.Binary:
return new OSDBinary(((OSDBinary)this).value);
case OSDType.Map:
return new OSDMap(((OSDMap)this).dicvalue);
case OSDType.Array:
return new OSDArray(((OSDArray)this).value);
case OSDType.LLSDxml:
return new OSDBoolean(((OSDBoolean)this).value);
default:
return new OSD();
}
}
public override string ToString()
{
switch (Type)
{
case OSDType.Boolean:
return ((OSDBoolean)this).value ? "1" : "0";
case OSDType.Integer:
return ((OSDInteger)this).value.ToString();
case OSDType.Real:
return ((OSDReal)this).value.ToString("r", Utils.EnUsCulture);
case OSDType.String:
return ((OSDString)this).value;
case OSDType.OSDUTF8:
return ((OSDUTF8)this).value.ToString();
case OSDType.UUID:
return ((OSDUUID)this).value.ToString();
case OSDType.Date:
string format;
DateTime dt = ((OSDDate)this).value;
if (dt.Millisecond > 0)
format = "yyyy-MM-ddTHH:mm:ss.ffZ";
else
format = "yyyy-MM-ddTHH:mm:ssZ";
return dt.ToUniversalTime().ToString(format);
case OSDType.URI:
Uri ur = ((OSDUri)this).value;
if (ur == null)
return string.Empty;
if (ur.IsAbsoluteUri)
return ur.AbsoluteUri;
else
return ur.ToString();
case OSDType.Binary:
return Utils.BytesToHexString(((OSDBinary)this).value, null);
case OSDType.LLSDxml:
return ((OSDllsdxml)this).value;
case OSDType.Map:
return OSDParser.SerializeJsonString((OSDMap)this, true);
case OSDType.Array:
return OSDParser.SerializeJsonString((OSDArray)this, true);
default:
return "undef";
}
}
public static OSD FromBoolean(bool value) { return new OSDBoolean(value); }
public static OSD FromInteger(int value) { return new OSDInteger(value); }
public static OSD FromInteger(uint value) { return new OSDInteger((int)value); }
public static OSD FromInteger(short value) { return new OSDInteger((int)value); }
public static OSD FromInteger(ushort value) { return new OSDInteger((int)value); }
public static OSD FromInteger(sbyte value) { return new OSDInteger((int)value); }
public static OSD FromInteger(byte value) { return new OSDInteger((int)value); }
public static OSD FromUInteger(uint value) { return new OSDBinary(value); }
public static OSD FromLong(long value) { return new OSDBinary(value); }
public static OSD FromULong(ulong value) { return new OSDBinary(value); }
public static OSD FromReal(double value) { return new OSDReal(value); }
public static OSD FromReal(float value) { return new OSDReal((double)value); }
public static OSD FromString(string value) { return new OSDString(value); }
public static OSD FromUUID(UUID value) { return new OSDUUID(value); }
public static OSD FromDate(DateTime value) { return new OSDDate(value); }
public static OSD FromUri(Uri value) { return new OSDUri(value); }
public static OSD FromBinary(byte[] value) { return new OSDBinary(value); }
public static OSD FromVector2(Vector2 value)
{
OSDArray array = new OSDArray();
array.Add(OSD.FromReal(value.X));
array.Add(OSD.FromReal(value.Y));
return array;
}
public static OSD FromVector3(Vector3 value)
{
OSDArray array = new OSDArray();
array.Add(OSD.FromReal(value.X));
array.Add(OSD.FromReal(value.Y));
array.Add(OSD.FromReal(value.Z));
return array;
}
public static OSD FromVector3d(Vector3d value)
{
OSDArray array = new OSDArray();
array.Add(OSD.FromReal(value.X));
array.Add(OSD.FromReal(value.Y));
array.Add(OSD.FromReal(value.Z));
return array;
}
public static OSD FromVector4(Vector4 value)
{
OSDArray array = new OSDArray();
array.Add(OSD.FromReal(value.X));
array.Add(OSD.FromReal(value.Y));
array.Add(OSD.FromReal(value.Z));
array.Add(OSD.FromReal(value.W));
return array;
}
public static OSD FromQuaternion(Quaternion value)
{
OSDArray array = new OSDArray();
array.Add(OSD.FromReal(value.X));
array.Add(OSD.FromReal(value.Y));
array.Add(OSD.FromReal(value.Z));
array.Add(OSD.FromReal(value.W));
return array;
}
public static OSD FromColor4(Color4 value)
{
OSDArray array = new OSDArray();
array.Add(OSD.FromReal(value.R));
array.Add(OSD.FromReal(value.G));
array.Add(OSD.FromReal(value.B));
array.Add(OSD.FromReal(value.A));
return array;
}
public static OSD FromObject(object value)
{
if (value == null) { return new OSD(); }
else if (value is bool) { return new OSDBoolean((bool)value); }
else if (value is int) { return new OSDInteger((int)value); }
else if (value is uint) { return new OSDBinary((uint)value); }
else if (value is short) { return new OSDInteger((int)(short)value); }
else if (value is ushort) { return new OSDInteger((int)(ushort)value); }
else if (value is sbyte) { return new OSDInteger((int)(sbyte)value); }
else if (value is byte) { return new OSDInteger((int)(byte)value); }
else if (value is double) { return new OSDReal((double)value); }
else if (value is float) { return new OSDReal((double)(float)value); }
else if (value is string) { return new OSDString((string)value); }
else if (value is UUID) { return new OSDUUID((UUID)value); }
else if (value is DateTime) { return new OSDDate((DateTime)value); }
else if (value is Uri) { return new OSDUri((Uri)value); }
else if (value is byte[]) { return new OSDBinary((byte[])value); }
else if (value is long) { return new OSDBinary((long)value); }
else if (value is ulong) { return new OSDBinary((ulong)value); }
else if (value is Vector2) { return FromVector2((Vector2)value); }
else if (value is Vector3) { return FromVector3((Vector3)value); }
else if (value is Vector3d) { return FromVector3d((Vector3d)value); }
else if (value is Vector4) { return FromVector4((Vector4)value); }
else if (value is Quaternion) { return FromQuaternion((Quaternion)value); }
else if (value is Color4) { return FromColor4((Color4)value); }
else return new OSD();
}
public static object ToObject(Type type, OSD value)
{
if (type == typeof(ulong))
{
if (value.Type == OSDType.Binary)
{
byte[] bytes = value.AsBinary();
return Utils.BytesToUInt64(bytes);
}
else
{
return (ulong)value.AsInteger();
}
}
else if (type == typeof(uint))
{
if (value.Type == OSDType.Binary)
{
byte[] bytes = value.AsBinary();
return Utils.BytesToUInt(bytes);
}
else
{
return (uint)value.AsInteger();
}
}
else if (type == typeof(ushort))
{
return (ushort)value.AsInteger();
}
else if (type == typeof(byte))
{
return (byte)value.AsInteger();
}
else if (type == typeof(short))
{
return (short)value.AsInteger();
}
else if (type == typeof(string))
{
return value.AsString();
}
else if (type == typeof(bool))
{
return value.AsBoolean();
}
else if (type == typeof(float))
{
return (float)value.AsReal();
}
else if (type == typeof(double))
{
return value.AsReal();
}
else if (type == typeof(int))
{
return value.AsInteger();
}
else if (type == typeof(UUID))
{
return value.AsUUID();
}
else if (type == typeof(Vector3))
{
if (value.Type == OSDType.Array)
return ((OSDArray)value).AsVector3();
else
return Vector3.Zero;
}
else if (type == typeof(Vector4))
{
if (value.Type == OSDType.Array)
return ((OSDArray)value).AsVector4();
else
return Vector4.Zero;
}
else if (type == typeof(Quaternion))
{
if (value.Type == OSDType.Array)
return ((OSDArray)value).AsQuaternion();
else
return Quaternion.Identity;
}
else if (type == typeof(OSDArray))
{
OSDArray newArray = new OSDArray();
foreach (OSD o in (OSDArray)value)
newArray.Add(o);
return newArray;
}
else if (type == typeof(OSDMap))
{
OSDMap newMap = new OSDMap();
foreach (KeyValuePair<string, OSD> o in (OSDMap)value)
newMap.Add(o);
return newMap;
}
else
{
return null;
}
}
#region Implicit Conversions
public static implicit operator OSD(bool value) { return new OSDBoolean(value); }
public static implicit operator OSD(int value) { return new OSDInteger(value); }
public static implicit operator OSD(uint value) { return new OSDInteger((int)value); }
public static implicit operator OSD(short value) { return new OSDInteger((int)value); }
public static implicit operator OSD(ushort value) { return new OSDInteger((int)value); }
public static implicit operator OSD(sbyte value) { return new OSDInteger((int)value); }
public static implicit operator OSD(byte value) { return new OSDInteger((int)value); }
public static implicit operator OSD(long value) { return new OSDBinary(value); }
public static implicit operator OSD(ulong value) { return new OSDBinary(value); }
public static implicit operator OSD(double value) { return new OSDReal(value); }
public static implicit operator OSD(float value) { return new OSDReal(value); }
public static implicit operator OSD(string value) { return new OSDString(value); }
public static implicit operator OSD(UUID value) { return new OSDUUID(value); }
public static implicit operator OSD(DateTime value) { return new OSDDate(value); }
public static implicit operator OSD(Uri value) { return new OSDUri(value); }
public static implicit operator OSD(byte[] value) { return new OSDBinary(value); }
public static implicit operator OSD(Vector2 value) { return OSD.FromVector2(value); }
public static implicit operator OSD(Vector3 value) { return OSD.FromVector3(value); }
public static implicit operator OSD(Vector3d value) { return OSD.FromVector3d(value); }
public static implicit operator OSD(Vector4 value) { return OSD.FromVector4(value); }
public static implicit operator OSD(Quaternion value) { return OSD.FromQuaternion(value); }
public static implicit operator OSD(Color4 value) { return OSD.FromColor4(value); }
public static implicit operator bool(OSD value) { return value.AsBoolean(); }
public static implicit operator int(OSD value) { return value.AsInteger(); }
public static implicit operator uint(OSD value) { return value.AsUInteger(); }
public static implicit operator long(OSD value) { return value.AsLong(); }
public static implicit operator ulong(OSD value) { return value.AsULong(); }
public static implicit operator double(OSD value) { return value.AsReal(); }
public static implicit operator float(OSD value) { return (float)value.AsReal(); }
public static implicit operator string(OSD value) { return value.AsString(); }
public static implicit operator UUID(OSD value) { return value.AsUUID(); }
public static implicit operator DateTime(OSD value) { return value.AsDate(); }
public static implicit operator Uri(OSD value) { return value.AsUri(); }
public static implicit operator byte[](OSD value) { return value.AsBinary(); }
public static implicit operator Vector2(OSD value) { return value.AsVector2(); }
public static implicit operator Vector3(OSD value) { return value.AsVector3(); }
public static implicit operator Vector3d(OSD value) { return value.AsVector3d(); }
public static implicit operator Vector4(OSD value) { return value.AsVector4(); }
public static implicit operator Quaternion(OSD value) { return value.AsQuaternion(); }
public static implicit operator Color4(OSD value) { return value.AsColor4(); }
#endregion Implicit Conversions
/// <summary>
/// Uses reflection to create an SDMap from all of the SD
/// serializable types in an object
/// </summary>
/// <param name="obj">Class or struct containing serializable types</param>
/// <returns>An SDMap holding the serialized values from the
/// container object</returns>
public static OSDMap SerializeMembers(object obj)
{
Type t = obj.GetType();
FieldInfo[] fields = t.GetFields();
OSDMap map = new OSDMap(fields.Length);
for (int i = 0; i < fields.Length; i++)
{
FieldInfo field = fields[i];
if (!Attribute.IsDefined(field, typeof(NonSerializedAttribute)))
{
OSD serializedField = OSD.FromObject(field.GetValue(obj));
if (serializedField.Type != OSDType.Unknown || field.FieldType == typeof(string) || field.FieldType == typeof(byte[]))
map.Add(field.Name, serializedField);
}
}
return map;
}
/// <summary>
/// Uses reflection to deserialize member variables in an object from
/// an SDMap
/// </summary>
/// <param name="obj">Reference to an object to fill with deserialized
/// values</param>
/// <param name="serialized">Serialized values to put in the target
/// object</param>
public static void DeserializeMembers(ref object obj, OSDMap serialized)
{
Type t = obj.GetType();
FieldInfo[] fields = t.GetFields();
for (int i = 0; i < fields.Length; i++)
{
FieldInfo field = fields[i];
if (!Attribute.IsDefined(field, typeof(NonSerializedAttribute)))
{
OSD serializedField;
if (serialized.TryGetValue(field.Name, out serializedField))
field.SetValue(obj, ToObject(field.FieldType, serializedField));
}
}
}
}
/// <summary>
///
/// </summary>
public sealed class OSDBoolean : OSD
{
public readonly bool value;
public OSDBoolean(bool value)
{
Type = OSDType.Boolean;
this.value = value;
}
public override bool AsBoolean() { return value; }
public override int AsInteger() { return value ? 1 : 0; }
public override double AsReal() { return value ? 1d : 0d; }
public override string AsString() { return value ? "1" : "0"; }
public override byte[] AsBinary() { return value ? trueBinary : falseBinary; }
public override OSD Copy() { return new OSDBoolean(value); }
public override string ToString() { return AsString(); }
}
/// <summary>
///
/// </summary>
public sealed class OSDInteger : OSD
{
public readonly int value;
public OSDInteger(int value)
{
Type = OSDType.Integer;
this.value = value;
}
public override bool AsBoolean() { return value != 0; }
public override int AsInteger() { return value; }
public override uint AsUInteger() { return (uint)value; }
public override long AsLong() { return value; }
public override ulong AsULong() { return (ulong)value; }
public override double AsReal() { return (double)value; }
public override string AsString() { return value.ToString(); }
public override byte[] AsBinary() { return Utils.IntToBytesBig(value); }
public override OSD Copy() { return new OSDInteger(value); }
public override string ToString() { return AsString(); }
}
/// <summary>
///
/// </summary>
public sealed class OSDReal : OSD
{
public readonly double value;
public OSDReal(double value)
{
Type = OSDType.Real;
this.value = value;
}
public override bool AsBoolean() { return (!Double.IsNaN(value) && value != 0d); }
public override OSD Copy() { return new OSDReal(value); }
public override int AsInteger()
{
if (Double.IsNaN(value))
return 0;
if (value > (double)Int32.MaxValue)
return Int32.MaxValue;
if (value < (double)Int32.MinValue)
return Int32.MinValue;
return (int)Math.Round(value);
}
public override uint AsUInteger()
{
if (Double.IsNaN(value))
return 0;
if (value > (double)UInt32.MaxValue)
return UInt32.MaxValue;
if (value < (double)UInt32.MinValue)
return UInt32.MinValue;
return (uint)Math.Round(value);
}
public override long AsLong()
{
if (Double.IsNaN(value))
return 0;
if (value > (double)Int64.MaxValue)
return Int64.MaxValue;
if (value < (double)Int64.MinValue)
return Int64.MinValue;
return (long)Math.Round(value);
}
public override ulong AsULong()
{
if (Double.IsNaN(value))
return 0;
if (value > (double)UInt64.MaxValue)
return Int32.MaxValue;
if (value < (double)UInt64.MinValue)
return UInt64.MinValue;
return (ulong)Math.Round(value);
}
public override double AsReal() { return value; }
// "r" ensures the value will correctly round-trip back through Double.TryParse
public override string AsString() { return value.ToString("r", Utils.EnUsCulture); }
public override byte[] AsBinary() { return Utils.DoubleToBytesBig(value); }
public override string ToString() { return AsString(); }
}
/// <summary>
///
/// </summary>
public sealed class OSDllsdxml : OSD
{
public readonly string value;
public override OSD Copy() { return new OSDllsdxml(value); }
public OSDllsdxml(string value)
{
Type = OSDType.LLSDxml;
// Refuse to hold null pointers
if (value != null)
this.value = value;
else
this.value = String.Empty;
}
public override string AsString() { return value; }
public override byte[] AsBinary() { return Encoding.UTF8.GetBytes(value); }
public override string ToString() { return AsString(); }
}
public sealed class OSDUTF8 : OSD
{
public readonly osUTF8 value;
public override OSD Copy() { return new OSDUTF8(value.Clone()); }
public OSDUTF8(osUTF8 value)
{
Type = OSDType.OSDUTF8;
// Refuse to hold null pointers
if (value != null)
this.value = value;
else
this.value = new osUTF8();
}
public OSDUTF8(byte[] value)
{
Type = OSDType.OSDUTF8;
// Refuse to hold null pointers
if (value != null)
this.value = new osUTF8(value);
else
this.value = new osUTF8();
}
public OSDUTF8(string value)
{
Type = OSDType.OSDUTF8;
// Refuse to hold null pointers
if (value != null)
this.value = new osUTF8(value);
else
this.value = new osUTF8();
}
public override bool AsBoolean()
{
if (osUTF8.IsNullOrEmpty(value))
return false;
if (value.Equals('0') || value.ACSIILowerEquals("false"))
return false;
return true;
}
public override int AsInteger()
{
double dbl;
if (Double.TryParse(value.ToString(), out dbl))
return (int)Math.Floor(dbl);
else
return 0;
}
public override uint AsUInteger()
{
double dbl;
if (Double.TryParse(value.ToString(), out dbl))
return (uint)Math.Floor(dbl);
else
return 0;
}
public override long AsLong()
{
double dbl;
if (Double.TryParse(value.ToString(), out dbl))
return (long)Math.Floor(dbl);
else
return 0;
}
public override ulong AsULong()
{
double dbl;
if (Double.TryParse(value.ToString(), out dbl))
return (ulong)Math.Floor(dbl);
else
return 0;
}
public override double AsReal()
{
double dbl;
if (Double.TryParse(value.ToString(), out dbl))
return dbl;
else
return 0d;
}
public override string AsString() { return value.ToString(); }
public override byte[] AsBinary() { return value.ToArray(); }
public override UUID AsUUID()
{
UUID uuid;
if (UUID.TryParse(value.ToString(), out uuid))
return uuid;
else
return UUID.Zero;
}
public override DateTime AsDate()
{
DateTime dt;
if (DateTime.TryParse(value.ToString(), out dt))
return dt;
else
return Utils.Epoch;
}
public override Uri AsUri()
{
Uri uri;
if (Uri.TryCreate(value.ToString(), UriKind.RelativeOrAbsolute, out uri))
return uri;
else
return null;
}
public override string ToString() { return AsString(); }
}
public sealed class OSDString : OSD
{
public readonly string value;
public override OSD Copy() { return new OSDString(value); }
public OSDString(string value)
{
Type = OSDType.String;
// Refuse to hold null pointers
if (value != null)
this.value = value;
else
this.value = String.Empty;
}
public override bool AsBoolean()
{
if (String.IsNullOrEmpty(value))
return false;
if (value == "0" || value.ToLower() == "false")
return false;
return true;
}
public override int AsInteger()
{
double dbl;
if (Double.TryParse(value, out dbl))
return (int)Math.Floor(dbl);
else
return 0;
}
public override uint AsUInteger()
{
double dbl;
if (Double.TryParse(value, out dbl))
return (uint)Math.Floor(dbl);
else
return 0;
}
public override long AsLong()
{
double dbl;
if (Double.TryParse(value, out dbl))
return (long)Math.Floor(dbl);
else
return 0;
}
public override ulong AsULong()
{
double dbl;
if (Double.TryParse(value, out dbl))
return (ulong)Math.Floor(dbl);
else
return 0;
}
public override double AsReal()
{
double dbl;
if (Double.TryParse(value, out dbl))
return dbl;
else
return 0d;
}
public override string AsString() { return value; }
public override byte[] AsBinary() { return Encoding.UTF8.GetBytes(value); }
public override UUID AsUUID()
{
UUID uuid;
if (UUID.TryParse(value, out uuid))
return uuid;
else
return UUID.Zero;
}
public override DateTime AsDate()
{
DateTime dt;
if (DateTime.TryParse(value, out dt))
return dt;
else
return Utils.Epoch;
}
public override Uri AsUri()
{
Uri uri;
if (Uri.TryCreate(value, UriKind.RelativeOrAbsolute, out uri))
return uri;
else
return null;
}
public override string ToString() { return AsString(); }
}
/// <summary>
///
/// </summary>
public sealed class OSDUUID : OSD
{
public readonly UUID value;
public OSDUUID(UUID value)
{
Type = OSDType.UUID;
this.value = value;
}
public override OSD Copy() { return new OSDUUID(value); }
public override bool AsBoolean() { return (value.IsZero()) ? false : true; }
public override string AsString() { return value.ToString(); }
public override UUID AsUUID() { return value; }
public override byte[] AsBinary() { return value.GetBytes(); }
public override string ToString() { return AsString(); }
}
/// <summary>
///
/// </summary>
public sealed class OSDDate : OSD
{
public readonly DateTime value;
public OSDDate(DateTime value)
{
Type = OSDType.Date;
this.value = value;
}
public override string AsString()
{
string format;
if (value.Millisecond > 0)
format = "yyyy-MM-ddTHH:mm:ss.ffZ";
else
format = "yyyy-MM-ddTHH:mm:ssZ";
return value.ToUniversalTime().ToString(format);
}
public override int AsInteger()
{
return (int)Utils.DateTimeToUnixTime(value);
}
public override uint AsUInteger()
{
return Utils.DateTimeToUnixTime(value);
}
public override long AsLong()
{
return (long)Utils.DateTimeToUnixTime(value);
}
public override ulong AsULong()
{
return Utils.DateTimeToUnixTime(value);
}
public override byte[] AsBinary()
{
TimeSpan ts = value.ToUniversalTime() - new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
return Utils.DoubleToBytes(ts.TotalSeconds);
}
public override OSD Copy() { return new OSDDate(value); }
public override DateTime AsDate() { return value; }
public override string ToString() { return AsString(); }
}
/// <summary>
///
/// </summary>
public sealed class OSDUri : OSD
{
public readonly Uri value;
public OSDUri(Uri value)
{
Type = OSDType.URI;
this.value = value;
}
public override string AsString()
{
if (value != null)
{
if (value.IsAbsoluteUri)
return value.AbsoluteUri;
else
return value.ToString();
}
return string.Empty;
}
public override OSD Copy() { return new OSDUri(value); }
public override Uri AsUri() { return value; }
public override byte[] AsBinary() { return Encoding.UTF8.GetBytes(AsString()); }
public override string ToString() { return AsString(); }
}
/// <summary>
///
/// </summary>
public sealed class OSDBinary : OSD
{
public readonly byte[] value;
public OSDBinary(byte[] value)
{
Type = OSDType.Binary;
if (value != null)
this.value = value;
else
this.value = Utils.EmptyBytes;
}
public OSDBinary(uint value)
{
Type = OSDType.Binary;
this.value = new byte[]
{
(byte)((value >> 24) % 256),
(byte)((value >> 16) % 256),
(byte)((value >> 8) % 256),
(byte)(value % 256)
};
}
public OSDBinary(long value)
{
Type = OSDType.Binary;
this.value = new byte[]
{
(byte)((value >> 56) % 256),
(byte)((value >> 48) % 256),
(byte)((value >> 40) % 256),
(byte)((value >> 32) % 256),
(byte)((value >> 24) % 256),
(byte)((value >> 16) % 256),
(byte)((value >> 8) % 256),
(byte)(value % 256)
};
}
public OSDBinary(ulong value)
{
Type = OSDType.Binary;
this.value = new byte[]
{
(byte)((value >> 56) % 256),
(byte)((value >> 48) % 256),
(byte)((value >> 40) % 256),
(byte)((value >> 32) % 256),
(byte)((value >> 24) % 256),
(byte)((value >> 16) % 256),
(byte)((value >> 8) % 256),
(byte)(value % 256)
};
}
public override OSD Copy() { return new OSDBinary(value); }
public override string AsString() { return Convert.ToBase64String(value); }
public override byte[] AsBinary() { return value; }
public override int AsInteger()
{
return (
(value[0] << 24) +
(value[1] << 16) +
(value[2] << 8) +
(value[3] << 0));
}
public override uint AsUInteger()
{
return (uint)(
(value[0] << 24) +
(value[1] << 16) +
(value[2] << 8) +
(value[3] << 0));
}
public override long AsLong()
{
return (long)(
((long)value[0] << 56) +
((long)value[1] << 48) +
((long)value[2] << 40) +
((long)value[3] << 32) +
((long)value[4] << 24) +
((long)value[5] << 16) +
((long)value[6] << 8) +
((long)value[7] << 0));
}
public override ulong AsULong()
{
return (ulong)(
((ulong)value[0] << 56) +
((ulong)value[1] << 48) +
((ulong)value[2] << 40) +
((ulong)value[3] << 32) +
((ulong)value[4] << 24) +
((ulong)value[5] << 16) +
((ulong)value[6] << 8) +
((ulong)value[7] << 0));
}
public override string ToString()
{
return Utils.BytesToHexString(value, null);
}
}
/// <summary>
///
/// </summary>
public sealed class OSDMap : OSD, IDictionary<string, OSD>
{
public readonly Dictionary<string, OSD> dicvalue;
public OSDMap()
{
Type = OSDType.Map;
dicvalue = new Dictionary<string, OSD>();
}
public OSDMap(int capacity)
{
Type = OSDType.Map;
dicvalue = new Dictionary<string, OSD>(capacity);
}
public OSDMap(Dictionary<string, OSD> value)
{
Type = OSDType.Map;
if (value != null)
this.dicvalue = value;
else
this.dicvalue = new Dictionary<string, OSD>();
}
public override string ToString()
{
return OSDParser.SerializeJsonString(this, true);
}
public override OSD Copy()
{
return new OSDMap(new Dictionary<string, OSD>(dicvalue));
}
#region IDictionary Implementation
public int Count { get { return dicvalue.Count; } }
public bool IsReadOnly { get { return false; } }
public ICollection<string> Keys { get { return dicvalue.Keys; } }
public ICollection<OSD> Values { get { return dicvalue.Values; } }
public OSD this[string key]
{
get
{
OSD llsd;
if (dicvalue.TryGetValue(key, out llsd))
return llsd;
else
return new OSD();
}
set { dicvalue[key] = value; }
}
public bool ContainsKey(string key)
{
return dicvalue.ContainsKey(key);
}
public void Add(string key, OSD llsd)
{
dicvalue.Add(key, llsd);
}
public void Add(KeyValuePair<string, OSD> kvp)
{
dicvalue.Add(kvp.Key, kvp.Value);
}
public bool Remove(string key)
{
return dicvalue.Remove(key);
}
public bool TryGetValue(string key, out OSD llsd)
{
return dicvalue.TryGetValue(key, out llsd);
}
public override void Clear()
{
dicvalue.Clear();
}
public bool Contains(KeyValuePair<string, OSD> kvp)
{
// This is a bizarre function... we don't really implement it
// properly, hopefully no one wants to use it
return dicvalue.ContainsKey(kvp.Key);
}
public void CopyTo(KeyValuePair<string, OSD>[] array, int index)
{
throw new NotImplementedException();
}
public bool Remove(KeyValuePair<string, OSD> kvp)
{
return dicvalue.Remove(kvp.Key);
}
public System.Collections.IDictionaryEnumerator GetEnumerator()
{
return dicvalue.GetEnumerator();
}
IEnumerator<KeyValuePair<string, OSD>> IEnumerable<KeyValuePair<string, OSD>>.GetEnumerator()
{
return null;
}
IEnumerator IEnumerable.GetEnumerator()
{
return dicvalue.GetEnumerator();
}
#endregion IDictionary Implementation
}
/// <summary>
///
/// </summary>
public sealed class OSDArray : OSD, IList<OSD>
{
public readonly List<OSD> value;
public OSDArray()
{
Type = OSDType.Array;
value = new List<OSD>();
}
public OSDArray(int capacity)
{
Type = OSDType.Array;
value = new List<OSD>(capacity);
}
public OSDArray(List<OSD> value)
{
Type = OSDType.Array;
if (value != null)
this.value = value;
else
this.value = new List<OSD>();
}
public override byte[] AsBinary()
{
byte[] binary = new byte[value.Count];
for (int i = 0; i < value.Count; i++)
binary[i] = (byte)value[i].AsInteger();
return binary;
}
public override long AsLong()
{
if (value.Count < 8)
return 0;
byte[] b = new byte[8];
for (int i = 0; i < 8; i++)
b[i] = (byte)value[i].AsInteger();
return (
((long)b[0] << 56) |
((long)b[1] << 48) |
((long)b[2] << 40) |
((long)b[3] << 32) |
((long)b[4] << 24) |
((long)b[5] << 16) |
((long)b[6] << 8) |
b[7]);
}
public override ulong AsULong()
{
if (value.Count < 8)
return 0;
byte[] b = new byte[8];
for (int i = 0; i < 8; i++)
b[i] = (byte)value[i].AsInteger();
return (
((ulong)b[0] << 56) |
((ulong)b[1] << 48) |
((ulong)b[2] << 40) |
((ulong)b[3] << 32) |
((ulong)b[4] << 24) |
((ulong)b[5] << 16) |
((ulong)b[6] << 8) |
b[7]);
}
public override int AsInteger()
{
if (value.Count < 4)
return 0;
byte[] by = new byte[4];
for (int i = 0; i < 4; i++)
by[i] = (byte)value[i].AsInteger();
return (by[0] << 24) | (by[1] << 16) | (by[2] << 8) | by[3];
}
public override uint AsUInteger()
{
if (value.Count < 4)
return 0;
byte[] by = new byte[4];
for (int i = 0; i < 4; i++)
by[i] = (byte)value[i].AsInteger();
return (uint)((by[0] << 24) | (by[1] << 16) | (by[2] << 8) | by[3]);
}
/*
public override Vector2 AsVector2()
{
Vector2 vector = Vector2.Zero;
if (this.Count == 2)
{
vector.X = (float)this[0].AsReal();
vector.Y = (float)this[1].AsReal();
}
return vector;
}
public override Vector3 AsVector3()
{
Vector3 vector = Vector3.Zero;
if (this.Count == 3)
{
vector.X = this[0].AsReal();
vector.Y = this[1].AsReal();
vector.Z = this[2].AsReal();
}
return vector;
}
public override Vector3d AsVector3d()
{
Vector3d vector = Vector3d.Zero;
if (this.Count == 3)
{
vector.X = this[0].AsReal();
vector.Y = this[1].AsReal();
vector.Z = this[2].AsReal();
}
return vector;
}
public override Vector4 AsVector4()
{
Vector4 vector = Vector4.Zero;
if (this.Count == 4)
{
vector.X = (float)this[0].AsReal();
vector.Y = (float)this[1].AsReal();
vector.Z = (float)this[2].AsReal();
vector.W = (float)this[3].AsReal();
}
return vector;
}
public override Quaternion AsQuaternion()
{
Quaternion quaternion = Quaternion.Identity;
if (this.Count == 4)
{
quaternion.X = (float)this[0].AsReal();
quaternion.Y = (float)this[1].AsReal();
quaternion.Z = (float)this[2].AsReal();
quaternion.W = (float)this[3].AsReal();
}
return quaternion;
}
*/
public override Color4 AsColor4()
{
Color4 color = Color4.Black;
if (this.Count == 4)
{
color.R = (float)this[0].AsReal();
color.G = (float)this[1].AsReal();
color.B = (float)this[2].AsReal();
color.A = (float)this[3].AsReal();
}
return color;
}
public override OSD Copy()
{
return new OSDArray(new List<OSD>(value));
}
public override string ToString()
{
return OSDParser.SerializeJsonString(this, true);
}
#region IList Implementation
public int Count { get { return value.Count; } }
public bool IsReadOnly { get { return false; } }
public OSD this[int index]
{
get { return value[index]; }
set { this.value[index] = value; }
}
public int IndexOf(OSD llsd)
{
return value.IndexOf(llsd);
}
public void Insert(int index, OSD llsd)
{
value.Insert(index, llsd);
}
public void RemoveAt(int index)
{
value.RemoveAt(index);
}
public void Add(OSD llsd)
{
value.Add(llsd);
}
public override void Clear()
{
value.Clear();
}
public bool Contains(OSD llsd)
{
return value.Contains(llsd);
}
public bool Contains(string element)
{
for (int i = 0; i < value.Count; i++)
{
if (value[i].Type == OSDType.String && value[i].AsString() == element)
return true;
}
return false;
}
public void CopyTo(OSD[] array, int index)
{
throw new NotImplementedException();
}
public bool Remove(OSD llsd)
{
return value.Remove(llsd);
}
IEnumerator IEnumerable.GetEnumerator()
{
return value.GetEnumerator();
}
IEnumerator<OSD> IEnumerable<OSD>.GetEnumerator()
{
return value.GetEnumerator();
}
#endregion IList Implementation
}
public partial class OSDParser
{
const string LLSD_BINARY_HEADER = "<? llsd/binary";
const string LLSD_NOTATION_HEADER = "<? llsd/notatio";
const string LLSD_XML_HEADER = "<llsd>";
const string LLSD_XML_ALT_HEADER = "<?xml";
const string LLSD_XML_ALT2_HEADER = "<? llsd/xml";
public static OSD Deserialize(byte[] data)
{
string header = Encoding.ASCII.GetString(data, 0, data.Length >= 15 ? 15 : data.Length);
if (header.StartsWith(LLSD_XML_HEADER, StringComparison.InvariantCultureIgnoreCase) ||
header.StartsWith(LLSD_XML_ALT_HEADER, StringComparison.InvariantCultureIgnoreCase) ||
header.StartsWith(LLSD_XML_ALT2_HEADER, StringComparison.InvariantCultureIgnoreCase))
return DeserializeLLSDXml(data);
if (header.StartsWith(LLSD_NOTATION_HEADER, StringComparison.InvariantCultureIgnoreCase))
return DeserializeLLSDNotation(data);
if (header.StartsWith(LLSD_BINARY_HEADER, StringComparison.InvariantCultureIgnoreCase))
return DeserializeLLSDBinary(data);
return DeserializeJson(data);
}
public static OSD Deserialize(string data)
{
if (data.StartsWith(LLSD_XML_HEADER, StringComparison.InvariantCultureIgnoreCase) ||
data.StartsWith(LLSD_XML_ALT_HEADER, StringComparison.InvariantCultureIgnoreCase) ||
data.StartsWith(LLSD_XML_ALT2_HEADER, StringComparison.InvariantCultureIgnoreCase))
return DeserializeLLSDXml(data);
if (data.StartsWith(LLSD_NOTATION_HEADER, StringComparison.InvariantCultureIgnoreCase))
return DeserializeLLSDNotation(data);
if (data.StartsWith(LLSD_BINARY_HEADER, StringComparison.InvariantCultureIgnoreCase))
return DeserializeLLSDBinary(Encoding.UTF8.GetBytes(data));
return DeserializeJson(data);
}
public static OSD Deserialize(Stream stream)
{
if (stream.CanSeek)
{
byte[] headerData = new byte[15];
stream.Read(headerData, 0, 15);
stream.Seek(0, SeekOrigin.Begin);
string header = Encoding.ASCII.GetString(headerData);
if (header.StartsWith(LLSD_XML_HEADER) || header.StartsWith(LLSD_XML_ALT_HEADER) || header.StartsWith(LLSD_XML_ALT2_HEADER))
return DeserializeLLSDXml(stream);
if (header.StartsWith(LLSD_NOTATION_HEADER))
return DeserializeLLSDNotation(stream);
if (header.StartsWith(LLSD_BINARY_HEADER))
return DeserializeLLSDBinary(stream);
return DeserializeJson(stream);
}
else
{
throw new OSDException("Cannot deserialize structured data from unseekable streams");
}
}
}
}
| 35.416903 | 141 | 0.454775 | [
"BSD-3-Clause"
] | schlenk/libopenmetaverse | OpenMetaverse.StructuredData/StructuredData.cs | 75,013 | C# |
using System;
using System.Collections.Generic;
using My.IoC;
using My.IoC.Core;
namespace My.WinformMvc
{
public interface IIocWrapper
{
void RegisterTypes(ICoordinator coordinator);
object GetInstance(Type controllerType, out IDisposable lifetimeScope);
}
public class IoCWrapper : IIocWrapper
{
class RegistrationModlule : IRegistrationModule
{
IEnumerable<ViewControllerPair> _bindings;
internal RegistrationModlule(IEnumerable<ViewControllerPair> bindings)
{
_bindings = bindings;
}
#region IRegistrationModule Members
public void Register(IObjectRegistrar registrar)
{
foreach (var binding in _bindings)
{
registrar.Register(binding.ControllerType)
.WithPropertyAutowired("Coordinator") // Inject the Coordinator
.Matadata(binding.PairName); // set the metadata
registrar.Register(binding.ViewContractType, binding.ViewConcreteType)
.WhenMetadataIs(binding.PairName); // can only be injected into Controller with the same metadata
}
_bindings = null;
}
#endregion
}
readonly IObjectContainer _container;
public IoCWrapper(IObjectContainer container)
{
_container = container;
}
public void RegisterTypes(ICoordinator coordinator)
{
_container.Register<ICoordinator>(coordinator)
.WhenInjectedInto(typeof(IController)) // can only be injected into IController
.In(Lifetime.Container());
var module = new RegistrationModlule(coordinator.PairManager.ViewControllerPairs);
_container.RegisterModule(module);
}
public object GetInstance(Type controllerType, out IDisposable lifetimeScope)
{
var scope = _container.BeginLifetimeScope();
object instance;
var ex = scope.TryResolve(controllerType, out instance);
if (ex != null)
throw ex;
lifetimeScope = scope;
return instance;
}
}
} | 31.616438 | 121 | 0.597054 | [
"MIT"
] | jingyiliu/My.WinformMvc | MyWinformMvc/IIocWrapper.cs | 2,310 | C# |
using System.ComponentModel;
namespace Corazon.Units.Common.Magnitude
{
public enum MagnitudeUnitTypes
{
[Description("unit")]
Unit = 0,
[Description("decade")]
Decade = 1,
[Description("hundred")]
Hundred = 2,
[Description("thousand")]
Thousand = 3,
[Description("ten thousand")]
TenThousand = 4,
[Description("hundred thousand")]
HundredThousand = 5,
[Description("million")]
Million = 6
}
}
| 18.137931 | 41 | 0.54943 | [
"MIT"
] | ericveilleux/Corazon | src/Corazon/Units/Common/Magnitude/MagnitudeUnitTypes.cs | 528 | C# |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AzureNextGen.DataFactory.Latest.Outputs
{
[OutputType]
public sealed class MicrosoftAccessTableDatasetResponse
{
/// <summary>
/// List of tags that can be used for describing the Dataset.
/// </summary>
public readonly ImmutableArray<object> Annotations;
/// <summary>
/// Dataset description.
/// </summary>
public readonly string? Description;
/// <summary>
/// The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
/// </summary>
public readonly Outputs.DatasetResponseFolder? Folder;
/// <summary>
/// Linked service reference.
/// </summary>
public readonly Outputs.LinkedServiceReferenceResponse LinkedServiceName;
/// <summary>
/// Parameters for dataset.
/// </summary>
public readonly ImmutableDictionary<string, Outputs.ParameterSpecificationResponse>? Parameters;
/// <summary>
/// Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
/// </summary>
public readonly object? Schema;
/// <summary>
/// Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
/// </summary>
public readonly object? Structure;
/// <summary>
/// The Microsoft Access table name. Type: string (or Expression with resultType string).
/// </summary>
public readonly object? TableName;
/// <summary>
/// Type of dataset.
/// </summary>
public readonly string Type;
[OutputConstructor]
private MicrosoftAccessTableDatasetResponse(
ImmutableArray<object> annotations,
string? description,
Outputs.DatasetResponseFolder? folder,
Outputs.LinkedServiceReferenceResponse linkedServiceName,
ImmutableDictionary<string, Outputs.ParameterSpecificationResponse>? parameters,
object? schema,
object? structure,
object? tableName,
string type)
{
Annotations = annotations;
Description = description;
Folder = folder;
LinkedServiceName = linkedServiceName;
Parameters = parameters;
Schema = schema;
Structure = structure;
TableName = tableName;
Type = type;
}
}
}
| 34.4 | 159 | 0.624145 | [
"Apache-2.0"
] | test-wiz-sec/pulumi-azure-nextgen | sdk/dotnet/DataFactory/Latest/Outputs/MicrosoftAccessTableDatasetResponse.cs | 2,924 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
namespace EOLib.IO.Map
{
public class MapFile : IMapFile
{
public const string MapFileFormatString = "maps/{0,5:D5}.emf";
public IMapFileProperties Properties { get; private set; }
public IReadOnlyMatrix<TileSpec> Tiles => _mutableTiles;
public IReadOnlyMatrix<WarpMapEntity> Warps => _mutableWarps;
public IReadOnlyDictionary<MapLayer, IReadOnlyMatrix<int>> GFX => _readOnlyGFX;
public IReadOnlyList<NPCSpawnMapEntity> NPCSpawns => _mutableNPCSpawns;
public IReadOnlyList<UnknownMapEntity> Unknowns => _mutableUnknowns;
public IReadOnlyList<ChestSpawnMapEntity> Chests => _mutableChestSpawns;
public IReadOnlyList<SignMapEntity> Signs => _mutableSigns;
private Matrix<TileSpec> _mutableTiles;
private Matrix<WarpMapEntity> _mutableWarps;
private Dictionary<MapLayer, Matrix<int>> _mutableGFX;
private IReadOnlyDictionary<MapLayer, IReadOnlyMatrix<int>> _readOnlyGFX;
private List<NPCSpawnMapEntity> _mutableNPCSpawns;
private List<UnknownMapEntity> _mutableUnknowns;
private List<ChestSpawnMapEntity> _mutableChestSpawns;
private List<SignMapEntity> _mutableSigns;
public MapFile()
: this(new MapFileProperties(),
Matrix<TileSpec>.Empty,
Matrix<WarpMapEntity>.Empty,
new Dictionary<MapLayer, Matrix<int>>(),
new List<NPCSpawnMapEntity>(),
new List<UnknownMapEntity>(),
new List<ChestSpawnMapEntity>(),
new List<SignMapEntity>())
{
foreach (var layer in (MapLayer[]) Enum.GetValues(typeof(MapLayer)))
_mutableGFX.Add(layer, Matrix<int>.Empty);
SetReadOnlyGFX();
}
private MapFile(IMapFileProperties properties,
Matrix<TileSpec> tiles,
Matrix<WarpMapEntity> warps,
Dictionary<MapLayer, Matrix<int>> gfx,
List<NPCSpawnMapEntity> npcSpawns,
List<UnknownMapEntity> unknowns,
List<ChestSpawnMapEntity> chests,
List<SignMapEntity> signs)
{
Properties = properties;
_mutableTiles = tiles;
_mutableWarps = warps;
_mutableGFX = gfx;
SetReadOnlyGFX();
_mutableNPCSpawns = npcSpawns;
_mutableUnknowns = unknowns;
_mutableChestSpawns = chests;
_mutableSigns = signs;
}
public IMapFile WithMapID(int id)
{
var newProperties = Properties.WithMapID(id);
return WithMapProperties(newProperties);
}
public IMapFile WithMapProperties(IMapFileProperties mapFileProperties)
{
var newMap = MakeCopy(this);
newMap.Properties = mapFileProperties;
return newMap;
}
public IMapFile WithTiles(Matrix<TileSpec> tiles)
{
var newMap = MakeCopy(this);
newMap._mutableTiles = tiles;
return newMap;
}
public IMapFile WithWarps(Matrix<WarpMapEntity> warps)
{
var newMap = MakeCopy(this);
newMap._mutableWarps = warps;
return newMap;
}
public IMapFile WithGFX(Dictionary<MapLayer, Matrix<int>> gfx)
{
var newMap = MakeCopy(this);
newMap._mutableGFX = gfx;
SetReadOnlyGFX();
return newMap;
}
public IMapFile WithNPCSpawns(List<NPCSpawnMapEntity> npcSpawns)
{
var newMap = MakeCopy(this);
newMap._mutableNPCSpawns = npcSpawns;
return newMap;
}
public IMapFile WithUnknowns(List<UnknownMapEntity> unknowns)
{
var newMap = MakeCopy(this);
newMap._mutableUnknowns = unknowns;
return newMap;
}
public IMapFile WithChests(List<ChestSpawnMapEntity> chests)
{
var newMap = MakeCopy(this);
newMap._mutableChestSpawns = chests;
return newMap;
}
public IMapFile WithSigns(List<SignMapEntity> signs)
{
var newMap = MakeCopy(this);
newMap._mutableSigns = signs;
return newMap;
}
public IMapFile RemoveNPCSpawn(NPCSpawnMapEntity spawn)
{
var updatedSpawns = new List<NPCSpawnMapEntity>(_mutableNPCSpawns);
updatedSpawns.Remove(spawn);
var newMap = MakeCopy(this);
newMap._mutableNPCSpawns = updatedSpawns;
return newMap;
}
public IMapFile RemoveChestSpawn(ChestSpawnMapEntity spawn)
{
var updatedSpawns = new List<ChestSpawnMapEntity>(_mutableChestSpawns);
updatedSpawns.Remove(spawn);
var newMap = MakeCopy(this);
newMap._mutableChestSpawns = updatedSpawns;
return newMap;
}
public IMapFile RemoveTileAt(int x, int y)
{
var updatedTiles = new Matrix<TileSpec>(_mutableTiles);
updatedTiles[y, x] = TileSpec.None;
var newMap = MakeCopy(this);
newMap._mutableTiles = _mutableTiles;
return newMap;
}
public IMapFile RemoveWarp(WarpMapEntity warp)
{
return RemoveWarpAt(warp.X, warp.Y);
}
public IMapFile RemoveWarpAt(int x, int y)
{
var updatedWarps = new Matrix<WarpMapEntity>(_mutableWarps);
updatedWarps[y, x] = null;
var newMap = MakeCopy(this);
newMap._mutableWarps = updatedWarps;
return newMap;
}
private static MapFile MakeCopy(MapFile source)
{
return new MapFile(
source.Properties,
source._mutableTiles,
source._mutableWarps,
source._mutableGFX,
source._mutableNPCSpawns,
source._mutableUnknowns,
source._mutableChestSpawns,
source._mutableSigns);
}
private void SetReadOnlyGFX()
{
_readOnlyGFX = _mutableGFX.ToDictionary(k => k.Key, v => (IReadOnlyMatrix<int>)v.Value);
}
}
}
| 33.15625 | 100 | 0.594722 | [
"MIT"
] | ethanmoffat/EndlessClient | EOLib.IO/Map/MapFile.cs | 6,368 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RockBandAudienceMember : MonoBehaviour
{
#pragma warning disable 0649 //Serialized Fields
[SerializeField]
private AnimationCurve hopCurve;
[SerializeField]
private Vector2 hopHeightRandomBounds, hopDurationRandomBounds, hopWaitRandomBounds, flipCooldownBounds;
[SerializeField]
private SpriteRenderer spriteRenderer;
[SerializeField]
private Sprite[] sprites;
[SerializeField]
private Sprite failSprite;
#pragma warning restore 0649
private Vector3 startPosition;
private float hopStartTime, hopHeight, hopWait, hopDuration, flipCooldown;
private int victoryStatus = 0;
void Start()
{
startPosition = transform.position;
resetHop();
hopStartTime = Time.time - Random.Range(0f, hopDuration + hopWait);
updateHop();
spriteRenderer.sprite = sprites[Random.Range(0, sprites.Length)];
spriteRenderer.sortingOrder += getNumberFromName();
if (MathHelper.randomBool())
flip();
resetFlip();
}
void resetHop()
{
if (victoryStatus == -1)
hopHeightRandomBounds = Vector2.zero;
hopStartTime = Time.time;
hopHeight = MathHelper.randomRangeFromVector(hopHeightRandomBounds);
hopWait = MathHelper.randomRangeFromVector(hopWaitRandomBounds);
hopDuration = MathHelper.randomRangeFromVector(hopDurationRandomBounds);
}
void resetFlip()
{
flip();
flipCooldown = MathHelper.randomRangeFromVector(flipCooldownBounds);
}
void Update()
{
updateHop();
updateFlip();
if (victoryStatus == 0)
checkVictoryStatus();
}
void updateHop()
{
float timeSinceHopStart = Time.time - hopStartTime,
height = timeSinceHopStart <= hopDuration ? (hopCurve.Evaluate(timeSinceHopStart / hopDuration) * hopHeight) : 0f;
transform.position = startPosition + (Vector3.up * height);
if (timeSinceHopStart > hopDuration + hopWait)
resetHop();
}
void updateFlip()
{
flipCooldown -= Time.deltaTime;
if (flipCooldown <= 0f)
resetFlip();
}
void checkVictoryStatus()
{
if (MicrogameController.instance.getVictoryDetermined())
{
if (MicrogameController.instance.getVictory())
{
hopWaitRandomBounds = Vector2.zero;
hopWait = 0f;
hopHeightRandomBounds *= 1.5f;
flipCooldownBounds /= 2f;
flipCooldown /= 2f;
//if (Time.time - hopStartTime >= hopDuration)
// resetHop();
victoryStatus = 1;
}
else
{
float brightness = .5f;
spriteRenderer.color = new Color(brightness, brightness, brightness, 1f);
if (Time.time - hopStartTime <= hopDuration)
{
hopHeight = transform.position.y - startPosition.y;
hopStartTime = Time.time - (hopDuration / 2f);
}
else
{
enabled = false;
}
flipCooldown = float.PositiveInfinity;
victoryStatus = -1;
spriteRenderer.sprite = failSprite;
}
}
}
int getNumberFromName()
{
if (!name.Contains(")"))
return 0;
return int.Parse(name.Split('(')[1].Split(')')[0]);
}
void flip()
{
transform.localScale = new Vector3(-transform.localScale.x, transform.localScale.y, transform.localScale.z);
}
}
| 28.78626 | 126 | 0.586582 | [
"MIT"
] | Trif4/NitoriWare | Assets/Microgames/_Finished/RockBand/Scripts/RockBandAudienceMember.cs | 3,773 | C# |
using KafkaHelpers.Core.Clients;
namespace KafkaHelpers.DotnetCore.DI
{
public interface IKafkaProducerFactory<TProducer>
where TProducer : AbstractProducer
{
TProducer Create();
}
}
| 19.363636 | 53 | 0.70892 | [
"Apache-2.0"
] | ChadJessup/KafkaHelpers | KafkaHelpers.DotnetCore/DI/IKafkaProducerFactory.cs | 215 | C# |
using System;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using BeaverSoft.Texo.Core.Actions;
using BeaverSoft.Texo.Core.Path;
using BeaverSoft.Texo.Core.Text;
using BeaverSoft.Texo.Core.Transforming;
namespace BeaverSoft.Texo.Fallback.PowerShell.Transforming
{
public class GetChildItemOutput : ITransformation<OutputModel>
{
public Task<OutputModel> ProcessAsync(OutputModel data)
{
if (!data.Flags.Contains(TransformationFlags.GET_CHILD_ITEM))
{
return Task.FromResult(data);
}
string text = data.Output;
string itemPath;
int index;
if (data.Flags.Contains(TransformationFlags.GET_CHILD_ITEM_NAME))
{
itemPath = text.TrimEnd();
index = 0;
}
else if (data.Properties.TryGetValue(TransformationProperties.INDEX, out object value))
{
index = (int)value;
if (text.Length <= index)
{
return Task.FromResult(data);
}
itemPath = text.Substring(index).TrimEnd();
}
else
{
if (text.StartsWith("Mode", StringComparison.OrdinalIgnoreCase)
&& text.Contains("Name"))
{
int indexOfName = text.LastIndexOf("Name");
data.Properties[TransformationProperties.INDEX] = indexOfName;
}
return Task.FromResult(data);
}
if (string.IsNullOrWhiteSpace(itemPath))
{
return Task.FromResult(data);
}
string parentPath = data.Input.ParsedInput.Tokens
.Skip(1)
.FirstOrDefault(t => !string.Equals(t, "-name", StringComparison.OrdinalIgnoreCase));
if (string.IsNullOrEmpty(parentPath))
{
parentPath = PathConstants.RELATIVE_CURRENT_DIRECTORY;
}
string path = Path.Combine(parentPath, itemPath);
if (path.GetPathType() == PathTypeEnum.NonExistent)
{
return Task.FromResult(data);
}
string fullPath = path.GetFullConsolidatedPath();
AnsiStringBuilder builder = new AnsiStringBuilder();
builder.Append(text.Substring(0, index));
builder.AppendLink(itemPath, ActionBuilder.PathUri(fullPath));
int endIndex = index + itemPath.Length;
if (endIndex < text.Length)
{
builder.Append(text.Substring(endIndex));
}
data.Output = builder.ToString();
return Task.FromResult(data);
}
}
}
| 30.967033 | 101 | 0.546487 | [
"MIT"
] | Mechachleopteryx/texo.ui | BeaverSoft.Texo.Fallback.PowerShell/Transforming/GetChildItemOutput.cs | 2,818 | C# |
using System.ComponentModel;
using System.Diagnostics;
namespace ZumtenSoft.WebsiteCrawler.BusLayer.Models.Resources
{
public enum ResourceContentKey
{
[Description("Page Title")]
Title,
Meta,
Content,
Search
}
[DebuggerDisplay(@"\{ResourceContent Key={Key}, Value={Value}\}")]
public class ResourceContent
{
public ResourceContentKey Key { get; set; }
public string SubKey { get; set; }
public string Value { get; set; }
}
}
| 22.652174 | 70 | 0.6238 | [
"Apache-2.0"
] | zumten/WebsiteCrawler | src/ZumtenSoft.WebsiteCrawler.BusLayer/Models/Resources/ResourceContent.cs | 523 | C# |
using System.Collections.Generic;
using System.Linq;
using Comfort.Common;
using EFT.Interactive;
using EFT.Trainer.Configuration;
using EFT.Trainer.Extensions;
using UnityEngine;
#nullable enable
namespace EFT.Trainer.Features
{
public class ExfiltrationPoints : PointOfInterests
{
[ConfigurationProperty]
public Color EligibleColor { get; set; } = Color.green;
[ConfigurationProperty]
public Color NotEligibleColor { get; set; } = Color.yellow;
public override float CacheTimeInSec { get; set; } = 7f;
public override Color GroupingColor => EligibleColor;
public override PointOfInterest[] RefreshData()
{
var world = Singleton<GameWorld>.Instance;
if (world == null)
return Empty;
if (world.ExfiltrationController == null)
return Empty;
var player = GameState.Current?.LocalPlayer;
if (!player.IsValid())
return Empty;
var profile = player.Profile;
var info = profile?.Info;
if (info == null)
return Empty;
var side = info.Side;
var points = GetExfiltrationPoints(side, world);
if (points == null)
return Empty;
var camera = GameState.Current?.Camera;
if (camera == null)
return Empty;
var eligiblePoints = GetEligibleExfiltrationPoints(side, world, profile!);
if (eligiblePoints == null)
return Empty;
var records = new List<PointOfInterest>();
foreach (var point in points)
{
if (!point.IsValid())
continue;
var position = point.transform.position;
records.Add(new PointOfInterest
{
Name = point.Settings.Name.Localized(),
Position = position,
ScreenPosition = camera.WorldPointToScreenPoint(position),
Color = eligiblePoints.Contains(point) ? EligibleColor : NotEligibleColor
});
}
return records.ToArray();
}
private static ExfiltrationPoint[]? GetExfiltrationPoints(EPlayerSide side, GameWorld world)
{
var ect = world.ExfiltrationController;
// ReSharper disable once CoVariantArrayConversion
return side == EPlayerSide.Savage ? ect.ScavExfiltrationPoints : ect.ExfiltrationPoints;
}
private static ExfiltrationPoint[]? GetEligibleExfiltrationPoints(EPlayerSide side, GameWorld world, Profile profile)
{
var ect = world.ExfiltrationController;
if (side != EPlayerSide.Savage)
return ect.EligiblePoints(profile);
var mask = ect.GetScavExfiltrationMask(profile.Id);
var result = new List<ExfiltrationPoint>();
var points = ect.ScavExfiltrationPoints;
for (int i = 0; i < 31; i++)
{
if ((mask & (1 << i)) != 0)
result.Add(points[i]);
}
return result.ToArray();
}
}
}
| 25.851485 | 119 | 0.702796 | [
"MIT"
] | sailro/EscapeFromTarkov-Trainer | Features/ExfiltrationPoints.cs | 2,613 | C# |
using System;
using System.Collections.Generic;
using Weborb.Service;
namespace BackendlessAPI.Transaction.Operations
{
class OperationCreateBulk : Operation
{
public OperationCreateBulk()
{
}
public OperationCreateBulk( OperationType operationType, String table, String opResultId, List<Dictionary<String, Object>> payload )
: base( operationType, table, opResultId )
{
Payload = payload;
}
[SetClientClassMemberName( "payload" )]
public new List<Dictionary<String, Object>> Payload { get; set; }
}
}
| 28 | 136 | 0.614907 | [
"Apache-2.0"
] | Acidburn0zzz/.NET-SDK | Backendless/Transaction/Operations/OperationCreateBulk.cs | 646 | C# |
namespace AssemblyToProcess;
public record DerivedRecord : AnyRecord
{
public int AnotherInteger { get; set; }
public SomeObject AnotherObject { get; set; }
} | 24 | 49 | 0.738095 | [
"MIT"
] | greuelpirat/DeepCopy | AssemblyToProcess/DerivedRecord.cs | 170 | C# |
#region Using
using System;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Reactive.Linq;
using Microsoft.Reactive.Testing;
using System.Threading.Tasks;
using System.Reactive.Concurrency;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Threading;
using System.Reactive;
using System.Runtime.Caching;
#endregion // Using
namespace Bnaya.Samples
{
[TestClass]
public class FromAsyncTests
{
#region NonCachedService_Tests
[TestMethod]
public void NCachedService_Tests()
{
var scd = new TestScheduler();
var cache = new Proxy(scd);
var xs = Observable.Interval(TimeSpan.FromMinutes(1), scd)
.Take(10);
var ys = from item in xs
from data in Observable.FromAsync(() => cache.RemoteCall(item % 3))
select data;
var observer = scd.CreateObserver<Data>();
ys.Subscribe(observer);
var sec = TimeSpan.FromMinutes(1).Ticks;
for (int i = 0; i < 10; i++) // _scd.AdvanceBy(sec * 10) don't do the job (probably some race condition)
{
scd.AdvanceBy(sec);
scd.AdvanceBy(1);
}
Assert.AreEqual(8, observer.Messages.Count, "2 messages is still running");
scd.AdvanceBy(sec);
Assert.AreEqual(9, observer.Messages.Count, "1 message is still running");
scd.AdvanceBy(sec);
Assert.AreEqual(10, observer.Messages.Count, "just befor completion");
scd.AdvanceBy(1);
Assert.AreEqual(11, observer.Messages.Count, "completed");
var nextMessages = from item in observer.Messages
let nfy = item.Value
where nfy.Kind == NotificationKind.OnNext
select nfy.Value;
Assert.IsTrue(nextMessages.All(r => r.IsCached == false));
}
#endregion // NonCachedService_Tests
[TestMethod]
public void CachedService_Tests()
{
var scd = new TestScheduler();
var cache = new Proxy(scd);
var xs = Observable.Interval(TimeSpan.FromSeconds(1), scd)
.Take(10);
var ys = from item in xs
from data in Observable.FromAsync(() => cache.CacheableRemoteCall(item % 3))
select data;
var observer = scd.CreateObserver<Data>();
ys.Subscribe(observer);
var sec = TimeSpan.FromSeconds(1).Ticks;
scd.AdvanceBy(sec * 3);
Assert.AreEqual(3, observer.Messages.Count, "2 messages is still running");
Assert.IsTrue(observer.Messages.All(r => r.Value.Value.IsCached == false));
scd.AdvanceBy(sec * 10);
Assert.AreEqual(10, observer.Messages.Count, "just befor completion");
Assert.IsTrue(observer.Messages.Skip(3).All(r => r.Value.Value.IsCached == true));
scd.AdvanceBy(1);
Assert.AreEqual(11, observer.Messages.Count, "completed");
}
public class Proxy
{
private IScheduler _scd;
//private readonly ConcurrentDictionary<long, Task<Data>> _cache = new ConcurrentDictionary<long, Task<Data>>();
private readonly MemoryCache _cache = MemoryCache.Default;
public Proxy(IScheduler scd)
{
_scd = scd;
}
public Task<Data> CacheableRemoteCall(long val)
{
string key = val.ToString();
Task<Data> resut = _cache[key] as Task<Data>;
if (resut != null)
{
resut.Result.IsCached = true;
return resut;
}
Task<Data> result = RemoteCall(val);
var policy = new CacheItemPolicy { SlidingExpiration = TimeSpan.FromMinutes(1) };
_cache.Add(key, result, policy);
return result;
}
public async Task<Data> RemoteCallAsync(long id)
{
await Observable.Timer(TimeSpan.FromMinutes(2), _scd);
//Trace.WriteLine("## End " + id);
string value = new string('*', (int)id + 1);
var data = new Data { Value = value };
return data;
}
public Task<Data> RemoteCall(long id)
{
var sync = new ManualResetEvent(false);
Observable.Timer(TimeSpan.FromMinutes(2), _scd).Finally(() => sync.Set()).Subscribe();
sync.WaitOne();
//Trace.WriteLine("## End " + id);
string value = new string('*', (int)id + 1);
var data = new Data { Value = value };
return Task.FromResult(data);
}
}
public class Data
{
public string Value { get; set; }
public bool IsCached { get; set; }
}
}
}
| 34.709459 | 124 | 0.540004 | [
"Apache-2.0"
] | bnayae/rx-samples | Rx Testability/Operators/FromAsyncTests.cs | 5,139 | C# |
using System;
using System.Xml.Serialization;
namespace Aop.Api.Domain
{
/// <summary>
/// AlipayCommerceEducateTuitioncodePlanDisburseModel Data Structure.
/// </summary>
[Serializable]
public class AlipayCommerceEducateTuitioncodePlanDisburseModel : AopObject
{
/// <summary>
/// ISV订单号
/// </summary>
[XmlElement("out_order_no")]
public string OutOrderNo { get; set; }
/// <summary>
/// 学费码打款计划编号
/// </summary>
[XmlElement("plan_id")]
public string PlanId { get; set; }
/// <summary>
/// 2088401023137175
/// </summary>
[XmlElement("smid")]
public string Smid { get; set; }
/// <summary>
/// 订单支付人支付宝用户编号
/// </summary>
[XmlElement("user_id")]
public string UserId { get; set; }
}
}
| 24.72973 | 79 | 0.527869 | [
"Apache-2.0"
] | 554393109/alipay-sdk-net-all | AlipaySDKNet.Standard/Domain/AlipayCommerceEducateTuitioncodePlanDisburseModel.cs | 963 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace TodoLocalized.Pages.Quality {
[global::Xamarin.Forms.Xaml.XamlFilePathAttribute("C:\\Users\\Mohanad\\Desktop\\TodoLocalized\\SharedProject\\TodoShared\\Pages\\Quality\\Dru" +
"gs.xaml")]
public partial class Drugs : global::Xamarin.Forms.ContentPage {
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
private global::Xamarin.Forms.ContentView TableView;
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
private void InitializeComponent() {
global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(Drugs));
TableView = global::Xamarin.Forms.NameScopeExtensions.FindByName<global::Xamarin.Forms.ContentView>(this, "TableView");
}
}
}
| 45.214286 | 148 | 0.595577 | [
"MIT"
] | mohanedmoh/Hospital-Patiant-Application | Android/obj/Debug/TodoLocalized.C_.Users.Mohanad.Desktop.TodoLocalized.SharedProject.TodoShared.Pages.Quality.Drugs.xaml.g.cs | 1,266 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace JT808.Protocol.Extensions.JTActiveSafety.Enums
{
/// <summary>
/// 工作状态
/// </summary>
public enum WorkingConditionType:byte
{
正常工作=0x01,
待机状态=0x02,
升级维护=0x03,
设备异常 = 0x04,
断开连接 = 0x10,
}
}
| 17.526316 | 56 | 0.594595 | [
"MIT"
] | leslietoo/JTActiveSafety | src/JT808.Protocol.Extensions.JTActiveSafety/Enums/WorkingConditionType.cs | 383 | C# |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Threading;
using Microsoft.CodeAnalysis.CSharp.Extensions;
using Microsoft.CodeAnalysis.CSharp.Extensions.ContextQuery;
using Microsoft.CodeAnalysis.CSharp.Syntax;
using Microsoft.CodeAnalysis.CSharp.Utilities;
using Microsoft.CodeAnalysis.Shared.Extensions;
namespace Microsoft.CodeAnalysis.CSharp.Completion.KeywordRecommenders
{
internal class ObjectKeywordRecommender : AbstractSpecialTypePreselectingKeywordRecommender
{
public ObjectKeywordRecommender()
: base(SyntaxKind.ObjectKeyword)
{
}
protected override bool IsValidContext(int position, CSharpSyntaxContext context, CancellationToken cancellationToken)
{
var syntaxTree = context.SyntaxTree;
return
context.IsNonAttributeExpressionContext ||
context.IsDefiniteCastTypeContext ||
context.IsStatementContext ||
context.IsGlobalStatementContext ||
context.IsObjectCreationTypeContext ||
(context.IsGenericTypeArgumentContext && !context.TargetToken.Parent.HasAncestor<XmlCrefAttributeSyntax>()) ||
context.IsIsOrAsTypeContext ||
context.IsLocalVariableDeclarationContext ||
context.IsParameterTypeContext ||
context.IsPossibleLambdaOrAnonymousMethodParameterTypeContext ||
context.IsImplicitOrExplicitOperatorTypeContext ||
context.IsTypeOfExpressionContext ||
context.IsCrefContext ||
syntaxTree.IsDefaultExpressionContext(position, context.LeftToken, cancellationToken) ||
syntaxTree.IsAfterKeyword(position, SyntaxKind.ConstKeyword, cancellationToken) ||
context.IsDelegateReturnTypeContext ||
syntaxTree.IsGlobalMemberDeclarationContext(position, SyntaxKindSet.AllGlobalMemberModifiers, cancellationToken) ||
context.IsMemberDeclarationContext(
validModifiers: SyntaxKindSet.AllMemberModifiers,
validTypeDeclarations: SyntaxKindSet.ClassInterfaceStructTypeDeclarations,
canBePartial: false,
cancellationToken: cancellationToken);
}
protected override SpecialType SpecialType => SpecialType.System_Object;
}
}
| 50.46 | 160 | 0.699168 | [
"Apache-2.0"
] | Unknown6656/roslyn | src/Features/CSharp/Portable/Completion/KeywordRecommenders/ObjectKeywordRecommender.cs | 2,523 | C# |
using System;
using System.Globalization;
using System.Linq;
using System.Security.Claims;
using System.Threading.Tasks;
using System.Web;
using System.Web.Mvc;
using Microsoft.AspNet.Identity;
using Microsoft.AspNet.Identity.Owin;
using Microsoft.Owin.Security;
using AutoTest.Server.Models;
namespace AutoTest.Server.Controllers
{
[Authorize]
public class AccountController : Controller
{
private ApplicationSignInManager _signInManager;
private ApplicationUserManager _userManager;
public AccountController()
{
}
public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager )
{
UserManager = userManager;
SignInManager = signInManager;
}
public ApplicationSignInManager SignInManager
{
get
{
return _signInManager ?? HttpContext.GetOwinContext().Get<ApplicationSignInManager>();
}
private set
{
_signInManager = value;
}
}
public ApplicationUserManager UserManager
{
get
{
return _userManager ?? HttpContext.GetOwinContext().GetUserManager<ApplicationUserManager>();
}
private set
{
_userManager = value;
}
}
//
// GET: /Account/Login
[AllowAnonymous]
public ActionResult Login(string returnUrl)
{
ViewBag.ReturnUrl = returnUrl;
return View();
}
//
// POST: /Account/Login
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Login(LoginViewModel model, string returnUrl)
{
if (!ModelState.IsValid)
{
return View(model);
}
// This doesn't count login failures towards account lockout
// To enable password failures to trigger account lockout, change to shouldLockout: true
var result = await SignInManager.PasswordSignInAsync(model.Email, model.Password, model.RememberMe, shouldLockout: false);
switch (result)
{
case SignInStatus.Success:
return RedirectToLocal(returnUrl);
case SignInStatus.LockedOut:
return View("Lockout");
case SignInStatus.RequiresVerification:
return RedirectToAction("SendCode", new { ReturnUrl = returnUrl, RememberMe = model.RememberMe });
case SignInStatus.Failure:
default:
ModelState.AddModelError("", "Invalid login attempt.");
return View(model);
}
}
//
// GET: /Account/VerifyCode
[AllowAnonymous]
public async Task<ActionResult> VerifyCode(string provider, string returnUrl, bool rememberMe)
{
// Require that the user has already logged in via username/password or external login
if (!await SignInManager.HasBeenVerifiedAsync())
{
return View("Error");
}
return View(new VerifyCodeViewModel { Provider = provider, ReturnUrl = returnUrl, RememberMe = rememberMe });
}
//
// POST: /Account/VerifyCode
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> VerifyCode(VerifyCodeViewModel model)
{
if (!ModelState.IsValid)
{
return View(model);
}
// The following code protects for brute force attacks against the two factor codes.
// If a user enters incorrect codes for a specified amount of time then the user account
// will be locked out for a specified amount of time.
// You can configure the account lockout settings in IdentityConfig
var result = await SignInManager.TwoFactorSignInAsync(model.Provider, model.Code, isPersistent: model.RememberMe, rememberBrowser: model.RememberBrowser);
switch (result)
{
case SignInStatus.Success:
return RedirectToLocal(model.ReturnUrl);
case SignInStatus.LockedOut:
return View("Lockout");
case SignInStatus.Failure:
default:
ModelState.AddModelError("", "Invalid code.");
return View(model);
}
}
//
// GET: /Account/Register
[AllowAnonymous]
public ActionResult Register()
{
return View();
}
//
// POST: /Account/Register
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> Register(RegisterViewModel model)
{
if (ModelState.IsValid)
{
var user = new ApplicationUser { UserName = model.Email, Email = model.Email };
var result = await UserManager.CreateAsync(user, model.Password);
if (result.Succeeded)
{
await SignInManager.SignInAsync(user, isPersistent:false, rememberBrowser:false);
// For more information on how to enable account confirmation and password reset please visit http://go.microsoft.com/fwlink/?LinkID=320771
// Send an email with this link
// string code = await UserManager.GenerateEmailConfirmationTokenAsync(user.Id);
// var callbackUrl = Url.Action("ConfirmEmail", "Account", new { userId = user.Id, code = code }, protocol: Request.Url.Scheme);
// await UserManager.SendEmailAsync(user.Id, "Confirm your account", "Please confirm your account by clicking <a href=\"" + callbackUrl + "\">here</a>");
return RedirectToAction("Index", "Home");
}
AddErrors(result);
}
// If we got this far, something failed, redisplay form
return View(model);
}
//
// GET: /Account/ConfirmEmail
[AllowAnonymous]
public async Task<ActionResult> ConfirmEmail(string userId, string code)
{
if (userId == null || code == null)
{
return View("Error");
}
var result = await UserManager.ConfirmEmailAsync(userId, code);
return View(result.Succeeded ? "ConfirmEmail" : "Error");
}
//
// GET: /Account/ForgotPassword
[AllowAnonymous]
public ActionResult ForgotPassword()
{
return View();
}
//
// POST: /Account/ForgotPassword
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> ForgotPassword(ForgotPasswordViewModel model)
{
if (ModelState.IsValid)
{
var user = await UserManager.FindByNameAsync(model.Email);
if (user == null || !(await UserManager.IsEmailConfirmedAsync(user.Id)))
{
// Don't reveal that the user does not exist or is not confirmed
return View("ForgotPasswordConfirmation");
}
// For more information on how to enable account confirmation and password reset please visit http://go.microsoft.com/fwlink/?LinkID=320771
// Send an email with this link
// string code = await UserManager.GeneratePasswordResetTokenAsync(user.Id);
// var callbackUrl = Url.Action("ResetPassword", "Account", new { userId = user.Id, code = code }, protocol: Request.Url.Scheme);
// await UserManager.SendEmailAsync(user.Id, "Reset Password", "Please reset your password by clicking <a href=\"" + callbackUrl + "\">here</a>");
// return RedirectToAction("ForgotPasswordConfirmation", "Account");
}
// If we got this far, something failed, redisplay form
return View(model);
}
//
// GET: /Account/ForgotPasswordConfirmation
[AllowAnonymous]
public ActionResult ForgotPasswordConfirmation()
{
return View();
}
//
// GET: /Account/ResetPassword
[AllowAnonymous]
public ActionResult ResetPassword(string code)
{
return code == null ? View("Error") : View();
}
//
// POST: /Account/ResetPassword
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> ResetPassword(ResetPasswordViewModel model)
{
if (!ModelState.IsValid)
{
return View(model);
}
var user = await UserManager.FindByNameAsync(model.Email);
if (user == null)
{
// Don't reveal that the user does not exist
return RedirectToAction("ResetPasswordConfirmation", "Account");
}
var result = await UserManager.ResetPasswordAsync(user.Id, model.Code, model.Password);
if (result.Succeeded)
{
return RedirectToAction("ResetPasswordConfirmation", "Account");
}
AddErrors(result);
return View();
}
//
// GET: /Account/ResetPasswordConfirmation
[AllowAnonymous]
public ActionResult ResetPasswordConfirmation()
{
return View();
}
//
// POST: /Account/ExternalLogin
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public ActionResult ExternalLogin(string provider, string returnUrl)
{
// Request a redirect to the external login provider
return new ChallengeResult(provider, Url.Action("ExternalLoginCallback", "Account", new { ReturnUrl = returnUrl }));
}
//
// GET: /Account/SendCode
[AllowAnonymous]
public async Task<ActionResult> SendCode(string returnUrl, bool rememberMe)
{
var userId = await SignInManager.GetVerifiedUserIdAsync();
if (userId == null)
{
return View("Error");
}
var userFactors = await UserManager.GetValidTwoFactorProvidersAsync(userId);
var factorOptions = userFactors.Select(purpose => new SelectListItem { Text = purpose, Value = purpose }).ToList();
return View(new SendCodeViewModel { Providers = factorOptions, ReturnUrl = returnUrl, RememberMe = rememberMe });
}
//
// POST: /Account/SendCode
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> SendCode(SendCodeViewModel model)
{
if (!ModelState.IsValid)
{
return View();
}
// Generate the token and send it
if (!await SignInManager.SendTwoFactorCodeAsync(model.SelectedProvider))
{
return View("Error");
}
return RedirectToAction("VerifyCode", new { Provider = model.SelectedProvider, ReturnUrl = model.ReturnUrl, RememberMe = model.RememberMe });
}
//
// GET: /Account/ExternalLoginCallback
[AllowAnonymous]
public async Task<ActionResult> ExternalLoginCallback(string returnUrl)
{
var loginInfo = await AuthenticationManager.GetExternalLoginInfoAsync();
if (loginInfo == null)
{
return RedirectToAction("Login");
}
// Sign in the user with this external login provider if the user already has a login
var result = await SignInManager.ExternalSignInAsync(loginInfo, isPersistent: false);
switch (result)
{
case SignInStatus.Success:
return RedirectToLocal(returnUrl);
case SignInStatus.LockedOut:
return View("Lockout");
case SignInStatus.RequiresVerification:
return RedirectToAction("SendCode", new { ReturnUrl = returnUrl, RememberMe = false });
case SignInStatus.Failure:
default:
// If the user does not have an account, then prompt the user to create an account
ViewBag.ReturnUrl = returnUrl;
ViewBag.LoginProvider = loginInfo.Login.LoginProvider;
return View("ExternalLoginConfirmation", new ExternalLoginConfirmationViewModel { Email = loginInfo.Email });
}
}
//
// POST: /Account/ExternalLoginConfirmation
[HttpPost]
[AllowAnonymous]
[ValidateAntiForgeryToken]
public async Task<ActionResult> ExternalLoginConfirmation(ExternalLoginConfirmationViewModel model, string returnUrl)
{
if (User.Identity.IsAuthenticated)
{
return RedirectToAction("Index", "Manage");
}
if (ModelState.IsValid)
{
// Get the information about the user from the external login provider
var info = await AuthenticationManager.GetExternalLoginInfoAsync();
if (info == null)
{
return View("ExternalLoginFailure");
}
var user = new ApplicationUser { UserName = model.Email, Email = model.Email };
var result = await UserManager.CreateAsync(user);
if (result.Succeeded)
{
result = await UserManager.AddLoginAsync(user.Id, info.Login);
if (result.Succeeded)
{
await SignInManager.SignInAsync(user, isPersistent: false, rememberBrowser: false);
return RedirectToLocal(returnUrl);
}
}
AddErrors(result);
}
ViewBag.ReturnUrl = returnUrl;
return View(model);
}
//
// POST: /Account/LogOff
[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult LogOff()
{
AuthenticationManager.SignOut(DefaultAuthenticationTypes.ApplicationCookie);
return RedirectToAction("Index", "Home");
}
//
// GET: /Account/ExternalLoginFailure
[AllowAnonymous]
public ActionResult ExternalLoginFailure()
{
return View();
}
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (_userManager != null)
{
_userManager.Dispose();
_userManager = null;
}
if (_signInManager != null)
{
_signInManager.Dispose();
_signInManager = null;
}
}
base.Dispose(disposing);
}
#region Helpers
// Used for XSRF protection when adding external logins
private const string XsrfKey = "XsrfId";
private IAuthenticationManager AuthenticationManager
{
get
{
return HttpContext.GetOwinContext().Authentication;
}
}
private void AddErrors(IdentityResult result)
{
foreach (var error in result.Errors)
{
ModelState.AddModelError("", error);
}
}
private ActionResult RedirectToLocal(string returnUrl)
{
if (Url.IsLocalUrl(returnUrl))
{
return Redirect(returnUrl);
}
return RedirectToAction("Index", "Home");
}
internal class ChallengeResult : HttpUnauthorizedResult
{
public ChallengeResult(string provider, string redirectUri)
: this(provider, redirectUri, null)
{
}
public ChallengeResult(string provider, string redirectUri, string userId)
{
LoginProvider = provider;
RedirectUri = redirectUri;
UserId = userId;
}
public string LoginProvider { get; set; }
public string RedirectUri { get; set; }
public string UserId { get; set; }
public override void ExecuteResult(ControllerContext context)
{
var properties = new AuthenticationProperties { RedirectUri = RedirectUri };
if (UserId != null)
{
properties.Dictionary[XsrfKey] = UserId;
}
context.HttpContext.GetOwinContext().Authentication.Challenge(properties, LoginProvider);
}
}
#endregion
}
} | 35.876289 | 173 | 0.553333 | [
"Apache-2.0"
] | abedon/ApiPlayer | Server/Controllers/AccountController.cs | 17,402 | C# |
//----------------------
// <auto-generated>
// Generated using the NSwag toolchain v13.0.0.0 (NJsonSchema v10.0.13.0 (Newtonsoft.Json v11.0.0.0)) (http://NSwag.org)
// </auto-generated>
//----------------------
namespace NSwag.Integration.ClientPCL.Contracts
{
#pragma warning disable
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.13.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class GeoPoint
{
[Newtonsoft.Json.JsonProperty("Latitude", Required = Newtonsoft.Json.Required.Always)]
public double Latitude { get; set; }
[Newtonsoft.Json.JsonProperty("Longitude", Required = Newtonsoft.Json.Required.Always)]
public double Longitude { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.13.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class GenericRequestOfAddressAndPerson
{
[Newtonsoft.Json.JsonProperty("Item1", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public Address Item1 { get; set; }
[Newtonsoft.Json.JsonProperty("Item2", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public Person Item2 { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.13.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Address
{
[Newtonsoft.Json.JsonProperty("IsPrimary", Required = Newtonsoft.Json.Required.Always)]
public bool IsPrimary { get; set; }
[Newtonsoft.Json.JsonProperty("City", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string City { get; set; }
}
[Newtonsoft.Json.JsonConverter(typeof(JsonInheritanceConverter), "discriminator")]
[JsonInheritanceAttribute("Teacher", typeof(Teacher))]
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.13.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Person
{
[Newtonsoft.Json.JsonProperty("Id", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public System.Guid Id { get; set; }
/// <summary>Gets or sets the first name.</summary>
[Newtonsoft.Json.JsonProperty("FirstName", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required]
[System.ComponentModel.DataAnnotations.StringLength(int.MaxValue, MinimumLength = 2)]
public string FirstName { get; set; }
/// <summary>Gets or sets the last name.</summary>
[Newtonsoft.Json.JsonProperty("LastName", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required]
public string LastName { get; set; }
[Newtonsoft.Json.JsonProperty("Gender", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public Gender Gender { get; set; }
[Newtonsoft.Json.JsonProperty("DateOfBirth", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public System.DateTime DateOfBirth { get; set; }
[Newtonsoft.Json.JsonProperty("Weight", Required = Newtonsoft.Json.Required.Always)]
public decimal Weight { get; set; }
[Newtonsoft.Json.JsonProperty("Height", Required = Newtonsoft.Json.Required.Always)]
public double Height { get; set; }
[Newtonsoft.Json.JsonProperty("Age", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Range(5, 99)]
public int Age { get; set; }
[Newtonsoft.Json.JsonProperty("AverageSleepTime", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public System.TimeSpan AverageSleepTime { get; set; }
[Newtonsoft.Json.JsonProperty("Address", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required]
public Address Address { get; set; } = new Address();
[Newtonsoft.Json.JsonProperty("Children", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required]
public System.Collections.ObjectModel.ObservableCollection<Person> Children { get; set; } = new System.Collections.ObjectModel.ObservableCollection<Person>();
[Newtonsoft.Json.JsonProperty("Skills", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public System.Collections.Generic.Dictionary<string, SkillLevel> Skills { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.13.0 (Newtonsoft.Json v11.0.0.0)")]
public enum Gender
{
[System.Runtime.Serialization.EnumMember(Value = @"Male")]
Male = 0,
[System.Runtime.Serialization.EnumMember(Value = @"Female")]
Female = 1,
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.13.0 (Newtonsoft.Json v11.0.0.0)")]
public enum SkillLevel
{
Low = 0,
Medium = 1,
Height = 2,
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.13.0 (Newtonsoft.Json v11.0.0.0)")]
public partial class Teacher : Person
{
[Newtonsoft.Json.JsonProperty("Course", Required = Newtonsoft.Json.Required.Default, NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore)]
public string Course { get; set; }
[Newtonsoft.Json.JsonProperty("SkillLevel", Required = Newtonsoft.Json.Required.Always)]
public SkillLevel SkillLevel { get; set; } = NSwag.Integration.ClientPCL.Contracts.SkillLevel.Medium;
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.13.0 (Newtonsoft.Json v11.0.0.0)")]
[Newtonsoft.Json.JsonObjectAttribute]
public partial class PersonNotFoundException : System.Exception
{
[Newtonsoft.Json.JsonProperty("id", Required = Newtonsoft.Json.Required.Always)]
[System.ComponentModel.DataAnnotations.Required(AllowEmptyStrings = true)]
public System.Guid Id { get; set; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.13.0 (Newtonsoft.Json v11.0.0.0)")]
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple = true)]
internal class JsonInheritanceAttribute : System.Attribute
{
public JsonInheritanceAttribute(string key, System.Type type)
{
Key = key;
Type = type;
}
public string Key { get; }
public System.Type Type { get; }
}
[System.CodeDom.Compiler.GeneratedCode("NJsonSchema", "10.0.13.0 (Newtonsoft.Json v11.0.0.0)")]
internal class JsonInheritanceConverter : Newtonsoft.Json.JsonConverter
{
internal static readonly string DefaultDiscriminatorName = "discriminator";
private readonly string _discriminator;
[System.ThreadStatic]
private static bool _isReading;
[System.ThreadStatic]
private static bool _isWriting;
public JsonInheritanceConverter()
{
_discriminator = DefaultDiscriminatorName;
}
public JsonInheritanceConverter(string discriminator)
{
_discriminator = discriminator;
}
public override void WriteJson(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.JsonSerializer serializer)
{
try
{
_isWriting = true;
var jObject = Newtonsoft.Json.Linq.JObject.FromObject(value, serializer);
jObject.AddFirst(new Newtonsoft.Json.Linq.JProperty(_discriminator, GetSubtypeDiscriminator(value.GetType())));
writer.WriteToken(jObject.CreateReader());
}
finally
{
_isWriting = false;
}
}
public override bool CanWrite
{
get
{
if (_isWriting)
{
_isWriting = false;
return false;
}
return true;
}
}
public override bool CanRead
{
get
{
if (_isReading)
{
_isReading = false;
return false;
}
return true;
}
}
public override bool CanConvert(System.Type objectType)
{
return true;
}
public override object ReadJson(Newtonsoft.Json.JsonReader reader, System.Type objectType, object existingValue, Newtonsoft.Json.JsonSerializer serializer)
{
var jObject = serializer.Deserialize<Newtonsoft.Json.Linq.JObject>(reader);
if (jObject == null)
return null;
var discriminator = Newtonsoft.Json.Linq.Extensions.Value<string>(jObject.GetValue(_discriminator));
var subtype = GetObjectSubtype(objectType, discriminator);
var objectContract = serializer.ContractResolver.ResolveContract(subtype) as Newtonsoft.Json.Serialization.JsonObjectContract;
if (objectContract == null || System.Linq.Enumerable.All(objectContract.Properties, p => p.PropertyName != _discriminator))
{
jObject.Remove(_discriminator);
}
try
{
_isReading = true;
return serializer.Deserialize(jObject.CreateReader(), subtype);
}
finally
{
_isReading = false;
}
}
private System.Type GetObjectSubtype(System.Type objectType, string discriminator)
{
foreach (var attribute in System.Reflection.CustomAttributeExtensions.GetCustomAttributes<JsonInheritanceAttribute>(System.Reflection.IntrospectionExtensions.GetTypeInfo(objectType), true))
{
if (attribute.Key == discriminator)
return attribute.Type;
}
return objectType;
}
private string GetSubtypeDiscriminator(System.Type objectType)
{
foreach (var attribute in System.Reflection.CustomAttributeExtensions.GetCustomAttributes<JsonInheritanceAttribute>(System.Reflection.IntrospectionExtensions.GetTypeInfo(objectType), true))
{
if (attribute.Type == objectType)
return attribute.Key;
}
return objectType.Name;
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.0.0 (NJsonSchema v10.0.13.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class FileParameter
{
public FileParameter(System.IO.Stream data)
: this (data, null)
{
}
public FileParameter(System.IO.Stream data, string fileName)
: this (data, fileName, null)
{
}
public FileParameter(System.IO.Stream data, string fileName, string contentType)
{
Data = data;
FileName = fileName;
ContentType = contentType;
}
public System.IO.Stream Data { get; private set; }
public string FileName { get; private set; }
public string ContentType { get; private set; }
}
public partial class FileResponse : System.IDisposable
{
private System.IDisposable _client;
private System.IDisposable _response;
public int StatusCode { get; private set; }
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; }
public System.IO.Stream Stream { get; private set; }
public bool IsPartial
{
get { return StatusCode == 206; }
}
public FileResponse(int statusCode, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.IO.Stream stream, System.IDisposable client, System.IDisposable response)
{
StatusCode = statusCode;
Headers = headers;
Stream = stream;
_client = client;
_response = response;
}
public void Dispose()
{
if (Stream != null)
Stream.Dispose();
if (_response != null)
_response.Dispose();
if (_client != null)
_client.Dispose();
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.0.0 (NJsonSchema v10.0.13.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class SwaggerResponse
{
public int StatusCode { get; private set; }
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; }
public SwaggerResponse(int statusCode, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> headers)
{
StatusCode = statusCode;
Headers = headers;
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.0.0 (NJsonSchema v10.0.13.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class SwaggerResponse<TResult> : SwaggerResponse
{
public TResult Result { get; private set; }
public SwaggerResponse(int statusCode, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result)
: base(statusCode, headers)
{
Result = result;
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.0.0 (NJsonSchema v10.0.13.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class GeoClientException : System.Exception
{
public int StatusCode { get; private set; }
public string Response { get; private set; }
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; }
public GeoClientException(string message, int statusCode, string response, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException)
: base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + response.Substring(0, response.Length >= 512 ? 512 : response.Length), innerException)
{
StatusCode = statusCode;
Response = response;
Headers = headers;
}
public override string ToString()
{
return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString());
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.0.0 (NJsonSchema v10.0.13.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class GeoClientException<TResult> : GeoClientException
{
public TResult Result { get; private set; }
public GeoClientException(string message, int statusCode, string response, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException)
: base(message, statusCode, response, headers, innerException)
{
Result = result;
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.0.0 (NJsonSchema v10.0.13.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PersonsClientException : System.Exception
{
public int StatusCode { get; private set; }
public string Response { get; private set; }
public System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> Headers { get; private set; }
public PersonsClientException(string message, int statusCode, string response, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> headers, System.Exception innerException)
: base(message + "\n\nStatus: " + statusCode + "\nResponse: \n" + response.Substring(0, response.Length >= 512 ? 512 : response.Length), innerException)
{
StatusCode = statusCode;
Response = response;
Headers = headers;
}
public override string ToString()
{
return string.Format("HTTP Response: \n\n{0}\n\n{1}", Response, base.ToString());
}
}
[System.CodeDom.Compiler.GeneratedCode("NSwag", "13.0.0.0 (NJsonSchema v10.0.13.0 (Newtonsoft.Json v11.0.0.0))")]
public partial class PersonsClientException<TResult> : PersonsClientException
{
public TResult Result { get; private set; }
public PersonsClientException(string message, int statusCode, string response, System.Collections.Generic.Dictionary<string, System.Collections.Generic.IEnumerable<string>> headers, TResult result, System.Exception innerException)
: base(message, statusCode, response, headers, innerException)
{
Result = result;
}
}
#pragma warning restore
} | 39.993258 | 239 | 0.636118 | [
"MIT"
] | alexdresko/NSwag | src/NSwag.Integration.ClientPCL/ServiceClientsContracts.cs | 17,799 | C# |
/*
* Copyright © 2021 EDDiscovery development team
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
* ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*
* EDDiscovery is not affiliated with Frontier Developments plc.
*/
using System;
namespace EliteDangerousCore
{
public class ScanEstimatedValues
{
public ScanEstimatedValues(DateTime utc, bool isstar , EDStar st, bool isplanet, EDPlanet pl, bool terraformable, double? massstar, double? massem, bool odyssey)
{
// see https://forums.frontier.co.uk/showthread.php/232000-Exploration-value-formulae/ for detail
if (utc < new DateTime(2017, 4, 11, 12, 0, 0, 0, DateTimeKind.Utc))
{
EstimatedValueBase = EstimatedValueED22(isstar, st, isplanet, pl, terraformable, massstar, massem);
return;
}
if (utc < new DateTime(2018, 12, 11, 9, 0, 0, DateTimeKind.Utc))
{
EstimatedValueBase = EstimatedValue32(isstar, st, isplanet, pl, terraformable, massstar, massem);
return;
}
// 3.3 onwards
//System.Diagnostics.Debug.WriteLine("Scan calc " + mapped + " ef " + efficient + " Current " + EstimatedValue);
double kValue;
if (isstar)
{
switch (st)
{
// white dwarf
case EDStar.D:
case EDStar.DA:
case EDStar.DAB:
case EDStar.DAO:
case EDStar.DAZ:
case EDStar.DAV:
case EDStar.DB:
case EDStar.DBZ:
case EDStar.DBV:
case EDStar.DO:
case EDStar.DOV:
case EDStar.DQ:
case EDStar.DC:
case EDStar.DCV:
case EDStar.DX:
kValue = 14057;
break;
case EDStar.N:
case EDStar.H:
kValue = 22628;
break;
case EDStar.SuperMassiveBlackHole:
// this is applying the same scaling to the 3.2 value as a normal black hole, not confirmed in game
kValue = 33.5678;
break;
default:
kValue = 1200;
break;
}
EstimatedValueBase = (int)StarValue32And33(kValue, massstar.HasValue ? massstar.Value : 1.0);
}
else
{
EstimatedValueBase = 0;
if (isplanet) //Asteroid belt is null
{
switch (pl)
{
case EDPlanet.Metal_rich_body:
// CFT value is scaled same as WW/ELW from 3.2, not confirmed in game
// They're like hen's teeth anyway....
kValue = 21790;
if (terraformable) kValue += 65631;
break;
case EDPlanet.Ammonia_world:
kValue = 96932;
break;
case EDPlanet.Sudarsky_class_I_gas_giant:
kValue = 1656;
break;
case EDPlanet.Sudarsky_class_II_gas_giant:
case EDPlanet.High_metal_content_body:
kValue = 9654;
if (terraformable) kValue += 100677;
break;
case EDPlanet.Water_world:
kValue = 64831;
if (terraformable) kValue += 116295;
break;
case EDPlanet.Earthlike_body:
// Always terraformable so WW + bonus
kValue = 64831 + 116295;
break;
default:
kValue = 300;
if (terraformable) kValue += 93328;
break;
}
double mass = massem.HasValue ? massem.Value : 1.0;
double effmapped = 1.25;
double firstdiscovery = 2.6;
double mapmultforfirstdiscoveredmapped = 3.699622554;
double mapmultforfirstmappedonly = 8.0956;
double mapmultforalreadymappeddiscovered = 3.3333333;
double basevalue = PlanetValue33(kValue, mass);
EstimatedValueBase = (int)basevalue;
EstimatedValueFirstDiscovered = (int)(basevalue * firstdiscovery);
EstimatedValueFirstDiscoveredFirstMapped = (int)(Ody(basevalue * mapmultforfirstdiscoveredmapped,odyssey) * firstdiscovery);
EstimatedValueFirstDiscoveredFirstMappedEfficiently = (int)(Ody(basevalue * mapmultforfirstdiscoveredmapped,odyssey) * firstdiscovery * effmapped);
EstimatedValueFirstMapped = (int)(Ody(basevalue * mapmultforfirstmappedonly,odyssey));
EstimatedValueFirstMappedEfficiently = (int)(Ody(basevalue * mapmultforfirstmappedonly, odyssey) * effmapped);
EstimatedValueMapped = (int)Ody(basevalue * mapmultforalreadymappeddiscovered, odyssey); // already mapped/discovered
EstimatedValueMappedEfficiently = (int)(Ody(basevalue * mapmultforalreadymappeddiscovered, odyssey) * effmapped);
}
}
}
private double Ody(double v, bool odyssey)
{
return v + (odyssey ? Math.Max(v * 0.3, 555) : 0);
}
private double StarValue32And33(double k, double m)
{
return k + (m * k / 66.25);
}
private double PlanetValue33(double k, double m)
{
const double q = 0.56591828;
return Math.Max((k + (k * Math.Pow(m, 0.2) * q)), 500);
}
#region ED 3.2 values
private int EstimatedValue32(bool isstar, EDStar st, bool isplanet, EDPlanet pl, bool terraformable, double? massstar, double? massem)
{
double kValue;
double kBonus = 0;
if (isstar)
{
switch (st) // http://elite-dangerous.wikia.com/wiki/Explorer
{
// white dwarf
case EDStar.D:
case EDStar.DA:
case EDStar.DAB:
case EDStar.DAO:
case EDStar.DAZ:
case EDStar.DAV:
case EDStar.DB:
case EDStar.DBZ:
case EDStar.DBV:
case EDStar.DO:
case EDStar.DOV:
case EDStar.DQ:
case EDStar.DC:
case EDStar.DCV:
case EDStar.DX:
kValue = 33737;
break;
case EDStar.N:
case EDStar.H:
kValue = 54309;
break;
case EDStar.SuperMassiveBlackHole:
kValue = 80.5654;
break;
default:
kValue = 2880;
break;
}
return (int)StarValue32And33(kValue, massstar.HasValue ? massstar.Value : 1.0);
}
else if (!isplanet) //Asteroid belt
return 0;
else // Planet
{
switch (pl) // http://elite-dangerous.wikia.com/wiki/Explorer
{
case EDPlanet.Metal_rich_body:
kValue = 52292;
if (terraformable) { kBonus = 245306; }
break;
case EDPlanet.High_metal_content_body:
case EDPlanet.Sudarsky_class_II_gas_giant:
kValue = 23168;
if (terraformable) { kBonus = 241607; }
break;
case EDPlanet.Earthlike_body:
kValue = 155581;
kBonus = 279088;
break;
case EDPlanet.Water_world:
kValue = 155581;
if (terraformable) { kBonus = 279088; }
break;
case EDPlanet.Ammonia_world:
kValue = 232619;
break;
case EDPlanet.Sudarsky_class_I_gas_giant:
kValue = 3974;
break;
default:
kValue = 720;
if (terraformable) { kBonus = 223971; }
break;
}
double mass = massem.HasValue ? massem.Value : 1.0; // some old entries don't have mass, so just presume 1
int val = (int)PlanetValueED32(kValue, mass);
if (terraformable || pl == EDPlanet.Earthlike_body)
{
val += (int)PlanetValueED32(kBonus, mass);
}
return val;
}
}
private double PlanetValueED32(double k, double m)
{
return k + (3 * k * Math.Pow(m, 0.199977) / 5.3);
}
#endregion
#region ED 22
private int EstimatedValueED22(bool isstar, EDStar st, bool isplanet, EDPlanet pl, bool terraformable, double? massstar, double? massem)
{
if (isstar)
{
switch (st) // http://elite-dangerous.wikia.com/wiki/Explorer
{
case EDStar.O:
//low = 3677;
//high = 4465;
return 4170;
case EDStar.B:
//low = 2992;
//high = 3456;
return 3098;
case EDStar.A:
//low = 2938;
//high = 2986;
return 2950;
case EDStar.F:
//low = 2915;
//high = 2957;
return 2932;
case EDStar.G:
//low = 2912;
//high = 2935;
// also have a G8V
return 2923;
case EDStar.K:
//low = 2898;
//high = 2923;
return 2911;
case EDStar.M:
//low = 2887;
//high = 2905;
return 2911;
// dwarfs
case EDStar.L:
//low = 2884;
//high = 2890;
return 2887;
case EDStar.T:
//low = 2881;
//high = 2885;
return 2883;
case EDStar.Y:
//low = 2880;
//high = 2882;
return 2881;
// proto stars
case EDStar.AeBe: // Herbig
// ??
//low = //high = 0;
return 2500;
case EDStar.TTS:
//low = 2881;
//high = 2922;
return 2900;
// wolf rayet
case EDStar.W:
case EDStar.WN:
case EDStar.WNC:
case EDStar.WC:
case EDStar.WO:
//low = //high = 7794;
return 7794;
// Carbon
case EDStar.CS:
case EDStar.C:
case EDStar.CN:
case EDStar.CJ:
case EDStar.CHd:
//low = //high = 2920;
return 2920;
case EDStar.MS: //seen in log
case EDStar.S: // seen in log
// ??
//low = //high = 0;
return 2000;
// white dwarf
case EDStar.D:
case EDStar.DA:
case EDStar.DAB:
case EDStar.DAO:
case EDStar.DAZ:
case EDStar.DAV:
case EDStar.DB:
case EDStar.DBZ:
case EDStar.DBV:
case EDStar.DO:
case EDStar.DOV:
case EDStar.DQ:
case EDStar.DC:
case EDStar.DCV:
case EDStar.DX:
//low = 25000;
//high = 27000;
return 26000;
case EDStar.N:
//low = 43276;
//high = 44619;
return 43441;
case EDStar.H:
//low = 44749;
//high = 80305;
return 61439;
case EDStar.X:
case EDStar.A_BlueWhiteSuperGiant:
case EDStar.F_WhiteSuperGiant:
case EDStar.M_RedSuperGiant:
case EDStar.M_RedGiant:
case EDStar.K_OrangeGiant:
case EDStar.RoguePlanet:
default:
//low = 0;
//high = 0;
return 2000;
}
}
else // Planet
{
switch (pl) // http://elite-dangerous.wikia.com/wiki/Explorer
{
case EDPlanet.Icy_body:
//low = 792; // (0.0001 EM)
//high = 1720; // 89.17
return 933; // 0.04
case EDPlanet.Rocky_ice_body:
//low = 792; // (0.0001 EM)
//high = 1720; // 89.17
return 933; // 0.04
case EDPlanet.Rocky_body:
if (terraformable)
{
//low = 36000;
//high = 36500;
return 37000;
}
else
{
//low = 792; // (0.0001 EM)
//high = 1720; // 89.17
return 933; // 0.04
}
case EDPlanet.Metal_rich_body:
//low = 9145; // (0.0002 EM)
//high = 14562; // (4.03 EM)
return 12449; // 0.51 EM
case EDPlanet.High_metal_content_body:
if (terraformable)
{
//low = 36000;
//high = 54000;
return 42000;
}
else
{
//low = 4966; // (0.0015 EM)
//high = 9632; // 31.52 EM
return 6670; // 0.41
}
case EDPlanet.Earthlike_body:
//low = 65000; // 0.24 EM
//high = 71885; // 196.60 EM
return 67798; // 0.47 EM
case EDPlanet.Water_world:
//low = 26589; // (0.09 EM)
//high = 43437; // (42.77 EM)
return 30492; // (0.82 EM)
case EDPlanet.Ammonia_world:
//low = 37019; // 0.09 EM
//high = 71885; //(196.60 EM)
return 40322; // (0.41 EM)
case EDPlanet.Sudarsky_class_I_gas_giant:
//low = 2472; // (2.30 EM)
//high = 4514; // (620.81 EM
return 3400; // 62.93 EM
case EDPlanet.Sudarsky_class_II_gas_giant:
//low = 8110; // (5.37 EM)
//high = 14618; // (949.98 EM)
return 12319; // 260.84 EM
case EDPlanet.Sudarsky_class_III_gas_giant:
//low = 1368; // (10.16 EM)
//high = 2731; // (2926 EM)
return 2339; // 990.92 EM
case EDPlanet.Sudarsky_class_IV_gas_giant:
//low = 2739; //(2984 EM)
//high = 2827; // (3697 EM)
return 2782; // 3319 em
case EDPlanet.Sudarsky_class_V_gas_giant:
//low = 2225; // 688.2 EM
//high = 2225;
return 2225;
case EDPlanet.Water_giant:
case EDPlanet.Water_giant_with_life:
case EDPlanet.Gas_giant_with_water_based_life:
case EDPlanet.Gas_giant_with_ammonia_based_life:
case EDPlanet.Helium_rich_gas_giant:
case EDPlanet.Helium_gas_giant:
//low = 0;
//high = 0;
return 2000;
default:
//low = 0;
//high = 2000;
return 0;
}
}
}
#endregion
public int EstimatedValue(bool? wasdiscovered, bool? wasmapped, bool mapped, bool efficientlymapped)
{
if (EstimatedValueFirstDiscovered > 0) // for previous scans before 3.3 and stars, these are not set.
{
bool wasnotpreviousdiscovered = wasdiscovered.HasValue && wasdiscovered == false;
bool wasnotpreviousmapped = wasmapped.HasValue && wasmapped == false;
if ( wasnotpreviousdiscovered && wasmapped == true) // this is the situation pointed out in PR#31, discovered is there and false, but mapped is true
return efficientlymapped ? EstimatedValueFirstMappedEfficiently : EstimatedValueFirstMapped;
// if def not discovered (flag is there) and not mapped (flag is there), and we mapped it
if (wasnotpreviousdiscovered && wasnotpreviousmapped && mapped)
return efficientlymapped ? EstimatedValueFirstDiscoveredFirstMappedEfficiently : EstimatedValueFirstDiscoveredFirstMapped;
// if def not mapped, and we mapped it
else if (wasnotpreviousmapped && mapped)
return efficientlymapped ? EstimatedValueFirstMappedEfficiently : EstimatedValueFirstMapped;
// if def not discovered
else if (wasnotpreviousdiscovered)
return EstimatedValueFirstDiscovered;
// if we mapped it, it was discovered/mapped before
else if (mapped)
return efficientlymapped ? EstimatedValueMappedEfficiently : EstimatedValueMapped;
}
return EstimatedValueBase;
}
public int EstimatedValueBase { get; private set; } // Estimated value without mapping or first discovery - all types, all versions
public int EstimatedValueFirstDiscovered { get; private set; } // Estimated value with first discovery - 3.3 onwards for these for planets only
public int EstimatedValueFirstDiscoveredFirstMapped { get; private set; } // with both
public int EstimatedValueFirstDiscoveredFirstMappedEfficiently { get; private set; } // with both efficiently
public int EstimatedValueFirstMapped { get; private set; } // with just mapped
public int EstimatedValueFirstMappedEfficiently { get; private set; } // with just mapped
public int EstimatedValueMapped { get; private set; } // with just mapped
public int EstimatedValueMappedEfficiently { get; private set; } // with just mapped
}
}
| 40.727106 | 171 | 0.41287 | [
"Apache-2.0"
] | EDDiscovery/EliteDangerousCore | EliteDangerous/EliteDangerous/EstimatedValues.cs | 22,240 | C# |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Office365ConnectorSDK")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Office365ConnectorSDK")]
[assembly: AssemblyCopyright("Copyright © 2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("e9d5d72d-afd7-4d39-8e46-4ac7973cc1fe")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 38.243243 | 84 | 0.74841 | [
"MIT"
] | ConnectionMaster/Office-365-Connectors | SDKs/Office365ConnectorSDK/Properties/AssemblyInfo.cs | 1,418 | C# |
// Copyright (c) 2015, Outercurve Foundation.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// - Redistributions of source code must retain the above copyright notice, this
// list of conditions and the following disclaimer.
//
// - Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
//
// - Neither the name of the Outercurve Foundation nor the names of its
// contributors may be used to endorse or promote products derived from this
// software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace WebsitePanel.Portal.ScheduleTaskControls {
public partial class DomainLookupView {
/// <summary>
/// lblServerName control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblServerName;
/// <summary>
/// ddlServers control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.DropDownList ddlServers;
/// <summary>
/// lblDnsServers control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblDnsServers;
/// <summary>
/// txtDnsServers control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtDnsServers;
/// <summary>
/// lblMailTo control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblMailTo;
/// <summary>
/// txtMailTo control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtMailTo;
/// <summary>
/// lblPause control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPause;
/// <summary>
/// txtPause control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox txtPause;
}
}
| 41.491379 | 85 | 0.59277 | [
"BSD-3-Clause"
] | 9192939495969798/Websitepanel | WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ScheduleTaskControls/DomainLookupView.ascx.designer.cs | 4,813 | C# |
// <auto-generated />
using System;
using API.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
namespace API.Data.Migrations
{
[DbContext(typeof(DataContext))]
[Migration("20201228195114_DataProtectionConfiguration")]
partial class DataProtectionConfiguration
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.UseIdentityColumns()
.HasAnnotation("Relational:MaxIdentifierLength", 128)
.HasAnnotation("ProductVersion", "5.0.1");
modelBuilder.Entity("API.Models.Auth.AppRole", b =>
{
b.Property<string>("Id")
.HasColumnType("nvarchar(450)");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<string>("Name")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("NormalizedName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.HasIndex("NormalizedName")
.IsUnique()
.HasDatabaseName("RoleNameIndex")
.HasFilter("[NormalizedName] IS NOT NULL");
b.ToTable("AspNetRoles");
});
modelBuilder.Entity("API.Models.Auth.AppRoleClaim", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.UseIdentityColumn();
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<string>("RoleId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("RoleId");
b.ToTable("AspNetRoleClaims");
});
modelBuilder.Entity("API.Models.Auth.AppUser", b =>
{
b.Property<string>("Id")
.HasColumnType("nvarchar(450)");
b.Property<int>("AccessFailedCount")
.HasColumnType("int");
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken()
.HasColumnType("nvarchar(max)");
b.Property<string>("Email")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<bool>("EmailConfirmed")
.HasColumnType("bit");
b.Property<bool>("LockoutEnabled")
.HasColumnType("bit");
b.Property<DateTimeOffset?>("LockoutEnd")
.HasColumnType("datetimeoffset");
b.Property<string>("NormalizedEmail")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("NormalizedUserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.Property<string>("PasswordHash")
.HasColumnType("nvarchar(max)");
b.Property<string>("PhoneNumber")
.HasColumnType("nvarchar(max)");
b.Property<bool>("PhoneNumberConfirmed")
.HasColumnType("bit");
b.Property<string>("SecurityStamp")
.HasColumnType("nvarchar(max)");
b.Property<bool>("TwoFactorEnabled")
.HasColumnType("bit");
b.Property<string>("UserName")
.HasMaxLength(256)
.HasColumnType("nvarchar(256)");
b.HasKey("Id");
b.HasIndex("NormalizedEmail")
.HasDatabaseName("EmailIndex");
b.HasIndex("NormalizedUserName")
.IsUnique()
.HasDatabaseName("UserNameIndex")
.HasFilter("[NormalizedUserName] IS NOT NULL");
b.ToTable("AspNetUsers");
});
modelBuilder.Entity("API.Models.Auth.AppUserClaim", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.UseIdentityColumn();
b.Property<string>("ClaimType")
.HasColumnType("nvarchar(max)");
b.Property<string>("ClaimValue")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("Id");
b.HasIndex("UserId");
b.ToTable("AspNetUserClaims");
});
modelBuilder.Entity("API.Models.Auth.AppUserLogin", b =>
{
b.Property<string>("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property<string>("ProviderKey")
.HasColumnType("nvarchar(450)");
b.Property<string>("ProviderDisplayName")
.HasColumnType("nvarchar(max)");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("nvarchar(450)");
b.HasKey("LoginProvider", "ProviderKey");
b.HasIndex("UserId");
b.ToTable("AspNetUserLogins");
});
modelBuilder.Entity("API.Models.Auth.AppUserRole", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<string>("RoleId")
.HasColumnType("nvarchar(450)");
b.HasKey("UserId", "RoleId");
b.HasIndex("RoleId");
b.ToTable("AspNetUserRoles");
});
modelBuilder.Entity("API.Models.Auth.AppUserToken", b =>
{
b.Property<string>("UserId")
.HasColumnType("nvarchar(450)");
b.Property<string>("LoginProvider")
.HasColumnType("nvarchar(450)");
b.Property<string>("Name")
.HasColumnType("nvarchar(450)");
b.Property<string>("Value")
.HasColumnType("nvarchar(max)");
b.HasKey("UserId", "LoginProvider", "Name");
b.ToTable("AspNetUserTokens");
});
modelBuilder.Entity("API.WeatherForecast", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.UseIdentityColumn();
b.Property<DateTime>("Date")
.HasColumnType("datetime2");
b.Property<string>("Summary")
.HasColumnType("nvarchar(max)");
b.Property<int>("TemperatureC")
.HasColumnType("int");
b.HasKey("Id");
b.ToTable("WeatherForecasts");
});
modelBuilder.Entity("Microsoft.AspNetCore.DataProtection.EntityFrameworkCore.DataProtectionKey", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.UseIdentityColumn();
b.Property<string>("FriendlyName")
.HasColumnType("nvarchar(max)");
b.Property<string>("Xml")
.HasColumnType("nvarchar(max)");
b.HasKey("Id");
b.ToTable("DataProtectionKeys");
});
modelBuilder.Entity("API.Models.Auth.AppRoleClaim", b =>
{
b.HasOne("API.Models.Auth.AppRole", null)
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("API.Models.Auth.AppUserClaim", b =>
{
b.HasOne("API.Models.Auth.AppUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("API.Models.Auth.AppUserLogin", b =>
{
b.HasOne("API.Models.Auth.AppUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("API.Models.Auth.AppUserRole", b =>
{
b.HasOne("API.Models.Auth.AppRole", "Role")
.WithMany("UserRoles")
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.HasOne("API.Models.Auth.AppUser", "User")
.WithMany("UserRoles")
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
b.Navigation("Role");
b.Navigation("User");
});
modelBuilder.Entity("API.Models.Auth.AppUserToken", b =>
{
b.HasOne("API.Models.Auth.AppUser", null)
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade)
.IsRequired();
});
modelBuilder.Entity("API.Models.Auth.AppRole", b =>
{
b.Navigation("UserRoles");
});
modelBuilder.Entity("API.Models.Auth.AppUser", b =>
{
b.Navigation("UserRoles");
});
#pragma warning restore 612, 618
}
}
}
| 34.828746 | 113 | 0.437001 | [
"MIT"
] | ArturSymanovic/symartsoft | API/Data/Migrations/20201228195114_DataProtectionConfiguration.Designer.cs | 11,391 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#nullable disable
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.CodeActions;
using Microsoft.CodeAnalysis.CodeRefactorings;
using Microsoft.CodeAnalysis.Editing;
using Microsoft.CodeAnalysis.LanguageServices;
using Microsoft.CodeAnalysis.Shared.Extensions;
using Microsoft.CodeAnalysis.Text;
namespace Microsoft.CodeAnalysis.IntroduceVariable
{
internal abstract class AbstractIntroduceLocalForExpressionCodeRefactoringProvider<
TExpressionSyntax,
TStatementSyntax,
TExpressionStatementSyntax,
TLocalDeclarationStatementSyntax> : CodeRefactoringProvider
where TExpressionSyntax : SyntaxNode
where TStatementSyntax : SyntaxNode
where TExpressionStatementSyntax : TStatementSyntax
where TLocalDeclarationStatementSyntax : TStatementSyntax
{
protected abstract bool IsValid(TExpressionStatementSyntax expressionStatement, TextSpan span);
protected abstract TLocalDeclarationStatementSyntax FixupLocalDeclaration(TExpressionStatementSyntax expressionStatement, TLocalDeclarationStatementSyntax localDeclaration);
public sealed override async Task ComputeRefactoringsAsync(CodeRefactoringContext context)
{
var expressionStatement = await GetExpressionStatementAsync(context).ConfigureAwait(false);
if (expressionStatement == null)
{
return;
}
var (document, _, cancellationToken) = context;
var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>();
var expression = syntaxFacts.GetExpressionOfExpressionStatement(expressionStatement);
var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
var type = semanticModel.GetTypeInfo(expression).Type;
if (type == null ||
type.SpecialType == SpecialType.System_Void)
{
return;
}
var singleLineExpression = syntaxFacts.ConvertToSingleLine(expression);
var nodeString = singleLineExpression.ToString();
context.RegisterRefactoring(
new MyCodeAction(
string.Format(FeaturesResources.Introduce_local_for_0, nodeString),
c => IntroduceLocalAsync(document, expressionStatement, c)),
expressionStatement.Span);
}
protected async Task<TExpressionStatementSyntax> GetExpressionStatementAsync(CodeRefactoringContext context)
{
var expressionStatement = await context.TryGetRelevantNodeAsync<TExpressionStatementSyntax>().ConfigureAwait(false);
return expressionStatement != null && IsValid(expressionStatement, context.Span)
? expressionStatement
: null;
}
private async Task<Document> IntroduceLocalAsync(
Document document, TExpressionStatementSyntax expressionStatement, CancellationToken cancellationToken)
{
var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
var generator = SyntaxGenerator.GetGenerator(document);
var syntaxFacts = document.GetLanguageService<ISyntaxFactsService>();
var expression = (TExpressionSyntax)syntaxFacts.GetExpressionOfExpressionStatement(expressionStatement);
var nameToken = await GenerateUniqueNameAsync(document, expression, cancellationToken).ConfigureAwait(false);
var type = semanticModel.GetTypeInfo(expression, cancellationToken).Type;
var localDeclaration = (TLocalDeclarationStatementSyntax)generator.LocalDeclarationStatement(
generator.TypeExpression(type),
nameToken.WithAdditionalAnnotations(RenameAnnotation.Create()),
expression.WithoutLeadingTrivia());
localDeclaration = localDeclaration.WithLeadingTrivia(expression.GetLeadingTrivia());
// Because expr-statements and local decl statements are so close, we can allow
// each language to do a little extra work to ensure the resultant local decl
// feels right. For example, C# will want to transport the semicolon from the
// expr statement to the local decl if it has one.
localDeclaration = FixupLocalDeclaration(expressionStatement, localDeclaration);
var root = await document.GetSyntaxRootAsync(cancellationToken).ConfigureAwait(false);
var newRoot = root.ReplaceNode(expressionStatement, localDeclaration);
return document.WithSyntaxRoot(newRoot);
}
protected static async Task<SyntaxToken> GenerateUniqueNameAsync(
Document document, TExpressionSyntax expression, CancellationToken cancellationToken)
{
var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);
var semanticFacts = document.GetLanguageService<ISemanticFactsService>();
var baseName = semanticFacts.GenerateNameForExpression(semanticModel, expression, capitalize: false, cancellationToken);
var uniqueName = semanticFacts.GenerateUniqueLocalName(semanticModel, expression, containerOpt: null, baseName, cancellationToken)
.WithAdditionalAnnotations(RenameAnnotation.Create());
return uniqueName;
}
private class MyCodeAction : CodeAction.DocumentChangeAction
{
public MyCodeAction(string title, Func<CancellationToken, Task<Document>> createChangedDocument)
: base(title, createChangedDocument)
{
}
}
}
}
| 50.125 | 181 | 0.709061 | [
"MIT"
] | Acidburn0zzz/roslyn | src/Features/Core/Portable/IntroduceVariable/IntroduceLocalForExpressionCodeRefactoringProvider.cs | 6,017 | C# |
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the securityhub-2018-10-26.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.SecurityHub.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.SecurityHub.Model.Internal.MarshallTransformations
{
/// <summary>
/// AwsEcrContainerImageDetails Marshaller
/// </summary>
public class AwsEcrContainerImageDetailsMarshaller : IRequestMarshaller<AwsEcrContainerImageDetails, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(AwsEcrContainerImageDetails requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetArchitecture())
{
context.Writer.WritePropertyName("Architecture");
context.Writer.Write(requestObject.Architecture);
}
if(requestObject.IsSetImageDigest())
{
context.Writer.WritePropertyName("ImageDigest");
context.Writer.Write(requestObject.ImageDigest);
}
if(requestObject.IsSetImagePublishedAt())
{
context.Writer.WritePropertyName("ImagePublishedAt");
context.Writer.Write(requestObject.ImagePublishedAt);
}
if(requestObject.IsSetImageTags())
{
context.Writer.WritePropertyName("ImageTags");
context.Writer.WriteArrayStart();
foreach(var requestObjectImageTagsListValue in requestObject.ImageTags)
{
context.Writer.Write(requestObjectImageTagsListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetRegistryId())
{
context.Writer.WritePropertyName("RegistryId");
context.Writer.Write(requestObject.RegistryId);
}
if(requestObject.IsSetRepositoryName())
{
context.Writer.WritePropertyName("RepositoryName");
context.Writer.Write(requestObject.RepositoryName);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static AwsEcrContainerImageDetailsMarshaller Instance = new AwsEcrContainerImageDetailsMarshaller();
}
} | 35.185567 | 128 | 0.644594 | [
"Apache-2.0"
] | Hazy87/aws-sdk-net | sdk/src/Services/SecurityHub/Generated/Model/Internal/MarshallTransformations/AwsEcrContainerImageDetailsMarshaller.cs | 3,413 | C# |
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.IO;
namespace ItemListPatcher.Parameters
{
internal class Attack : Parameter
{
public Attack(int offset = 0) : base(offset)
{
}
public override void ReadValue(BinaryReader reader)
{
byte[] bytes = reader.ReadBytes(4);
byte[] strengthBytes = { bytes[0], (byte)(bytes[1] % 8) };
byte[] magickBytes = { bytes[1], (byte)(bytes[2] % 128) };
byte[] unknownBytes = { (byte)(bytes[2] - magickBytes[1]), bytes[3] };
int strength = BitConverter.ToUInt16(strengthBytes, 0);
int magick = BitConverter.ToUInt16(magickBytes, 0) / 8;
int unknown = BitConverter.ToUInt16(unknownBytes, 0);
value = new Dictionary<string, int>
{
{ "strength", strength },
{ "magick", magick },
{ "unknown", unknown }
};
}
public override void WriteValue(BinaryWriter writer)
{
JObject jobject = value as JObject;
Dictionary<string, ushort> dict = jobject.ToObject<Dictionary<string, ushort>>();
byte[] strengthBytes = BitConverter.GetBytes(dict["strength"]);
byte[] magickBytes = BitConverter.GetBytes(dict["magick"] * 8);
byte[] unknownBytes = BitConverter.GetBytes(dict["unknown"]);
byte[] bytes =
{
strengthBytes[0],
(byte)(strengthBytes[1] + magickBytes[0]),
(byte)(magickBytes[1] + unknownBytes[0]),
unknownBytes[1]
};
writer.Write(bytes);
}
}
}
| 27.763636 | 87 | 0.616241 | [
"MIT"
] | Winterbraid/ItemListPatcher | ItemListPatcher/Parameters/Attack.cs | 1,529 | C# |
using System;
using System.Xml.Serialization;
using System.ComponentModel.DataAnnotations;
using BroadWorksConnector.Ocip.Validation;
using System.Collections.Generic;
namespace BroadWorksConnector.Ocip.Models
{
/// <summary>
/// Response to the ServiceProviderCommunicationBarringProfileGetRequest19sp1V2.
/// The response contains the Communication Barring Profile information.
/// The incoming, originating, redirecting and call me now rules are returned in ascending priority order.
/// The following elements are only used in AS data mode:
/// callMeNowDefaultAction
/// callMeNowDefaultCallTimeout
/// callMeNowRule
/// applyToAttendedCallTransfers
/// <see cref="ServiceProviderCommunicationBarringProfileGetRequest19sp1V2"/>
/// </summary>
[Serializable]
[XmlRoot(Namespace = "")]
[Groups(@"[{""__type"":""Sequence:#BroadWorksConnector.Ocip.Validation"",""id"":""f1088f4c5ceb30d524d2ba0f8097c393:2020""}]")]
public class ServiceProviderCommunicationBarringProfileGetResponse19sp1V2 : BroadWorksConnector.Ocip.Models.C.OCIDataResponse
{
private string _description;
[XmlElement(ElementName = "description", IsNullable = false, Namespace = "")]
[Optional]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
[MinLength(1)]
[MaxLength(80)]
public string Description
{
get => _description;
set
{
DescriptionSpecified = true;
_description = value;
}
}
[XmlIgnore]
protected bool DescriptionSpecified { get; set; }
private BroadWorksConnector.Ocip.Models.CommunicationBarringOriginatingAction _originatingDefaultAction;
[XmlElement(ElementName = "originatingDefaultAction", IsNullable = false, Namespace = "")]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
public BroadWorksConnector.Ocip.Models.CommunicationBarringOriginatingAction OriginatingDefaultAction
{
get => _originatingDefaultAction;
set
{
OriginatingDefaultActionSpecified = true;
_originatingDefaultAction = value;
}
}
[XmlIgnore]
protected bool OriginatingDefaultActionSpecified { get; set; }
private string _originatingDefaultTreatmentId;
[XmlElement(ElementName = "originatingDefaultTreatmentId", IsNullable = false, Namespace = "")]
[Optional]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
[MinLength(1)]
[MaxLength(40)]
public string OriginatingDefaultTreatmentId
{
get => _originatingDefaultTreatmentId;
set
{
OriginatingDefaultTreatmentIdSpecified = true;
_originatingDefaultTreatmentId = value;
}
}
[XmlIgnore]
protected bool OriginatingDefaultTreatmentIdSpecified { get; set; }
private string _originatingDefaultTransferNumber;
[XmlElement(ElementName = "originatingDefaultTransferNumber", IsNullable = false, Namespace = "")]
[Optional]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
[MinLength(1)]
[MaxLength(30)]
public string OriginatingDefaultTransferNumber
{
get => _originatingDefaultTransferNumber;
set
{
OriginatingDefaultTransferNumberSpecified = true;
_originatingDefaultTransferNumber = value;
}
}
[XmlIgnore]
protected bool OriginatingDefaultTransferNumberSpecified { get; set; }
private int _originatingDefaultCallTimeout;
[XmlElement(ElementName = "originatingDefaultCallTimeout", IsNullable = false, Namespace = "")]
[Optional]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
[MinInclusive(60)]
[MaxInclusive(86400)]
public int OriginatingDefaultCallTimeout
{
get => _originatingDefaultCallTimeout;
set
{
OriginatingDefaultCallTimeoutSpecified = true;
_originatingDefaultCallTimeout = value;
}
}
[XmlIgnore]
protected bool OriginatingDefaultCallTimeoutSpecified { get; set; }
private List<BroadWorksConnector.Ocip.Models.ServiceProviderCommunicationBarringHierarchicalOriginatingRule> _originatingRule = new List<BroadWorksConnector.Ocip.Models.ServiceProviderCommunicationBarringHierarchicalOriginatingRule>();
[XmlElement(ElementName = "originatingRule", IsNullable = false, Namespace = "")]
[Optional]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
public List<BroadWorksConnector.Ocip.Models.ServiceProviderCommunicationBarringHierarchicalOriginatingRule> OriginatingRule
{
get => _originatingRule;
set
{
OriginatingRuleSpecified = true;
_originatingRule = value;
}
}
[XmlIgnore]
protected bool OriginatingRuleSpecified { get; set; }
private BroadWorksConnector.Ocip.Models.CommunicationBarringRedirectingAction _redirectingDefaultAction;
[XmlElement(ElementName = "redirectingDefaultAction", IsNullable = false, Namespace = "")]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
public BroadWorksConnector.Ocip.Models.CommunicationBarringRedirectingAction RedirectingDefaultAction
{
get => _redirectingDefaultAction;
set
{
RedirectingDefaultActionSpecified = true;
_redirectingDefaultAction = value;
}
}
[XmlIgnore]
protected bool RedirectingDefaultActionSpecified { get; set; }
private int _redirectingDefaultCallTimeout;
[XmlElement(ElementName = "redirectingDefaultCallTimeout", IsNullable = false, Namespace = "")]
[Optional]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
[MinInclusive(60)]
[MaxInclusive(86400)]
public int RedirectingDefaultCallTimeout
{
get => _redirectingDefaultCallTimeout;
set
{
RedirectingDefaultCallTimeoutSpecified = true;
_redirectingDefaultCallTimeout = value;
}
}
[XmlIgnore]
protected bool RedirectingDefaultCallTimeoutSpecified { get; set; }
private List<BroadWorksConnector.Ocip.Models.ServiceProviderCommunicationBarringHierarchicalRedirectingRule> _redirectingRule = new List<BroadWorksConnector.Ocip.Models.ServiceProviderCommunicationBarringHierarchicalRedirectingRule>();
[XmlElement(ElementName = "redirectingRule", IsNullable = false, Namespace = "")]
[Optional]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
public List<BroadWorksConnector.Ocip.Models.ServiceProviderCommunicationBarringHierarchicalRedirectingRule> RedirectingRule
{
get => _redirectingRule;
set
{
RedirectingRuleSpecified = true;
_redirectingRule = value;
}
}
[XmlIgnore]
protected bool RedirectingRuleSpecified { get; set; }
private BroadWorksConnector.Ocip.Models.CommunicationBarringCallMeNowAction _callMeNowDefaultAction;
[XmlElement(ElementName = "callMeNowDefaultAction", IsNullable = false, Namespace = "")]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
public BroadWorksConnector.Ocip.Models.CommunicationBarringCallMeNowAction CallMeNowDefaultAction
{
get => _callMeNowDefaultAction;
set
{
CallMeNowDefaultActionSpecified = true;
_callMeNowDefaultAction = value;
}
}
[XmlIgnore]
protected bool CallMeNowDefaultActionSpecified { get; set; }
private int _callMeNowDefaultCallTimeout;
[XmlElement(ElementName = "callMeNowDefaultCallTimeout", IsNullable = false, Namespace = "")]
[Optional]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
[MinInclusive(60)]
[MaxInclusive(86400)]
public int CallMeNowDefaultCallTimeout
{
get => _callMeNowDefaultCallTimeout;
set
{
CallMeNowDefaultCallTimeoutSpecified = true;
_callMeNowDefaultCallTimeout = value;
}
}
[XmlIgnore]
protected bool CallMeNowDefaultCallTimeoutSpecified { get; set; }
private List<BroadWorksConnector.Ocip.Models.ServiceProviderCommunicationBarringHierarchicalCallMeNowRule> _callMeNowRule = new List<BroadWorksConnector.Ocip.Models.ServiceProviderCommunicationBarringHierarchicalCallMeNowRule>();
[XmlElement(ElementName = "callMeNowRule", IsNullable = false, Namespace = "")]
[Optional]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
public List<BroadWorksConnector.Ocip.Models.ServiceProviderCommunicationBarringHierarchicalCallMeNowRule> CallMeNowRule
{
get => _callMeNowRule;
set
{
CallMeNowRuleSpecified = true;
_callMeNowRule = value;
}
}
[XmlIgnore]
protected bool CallMeNowRuleSpecified { get; set; }
private BroadWorksConnector.Ocip.Models.CommunicationBarringIncomingAction _incomingDefaultAction;
[XmlElement(ElementName = "incomingDefaultAction", IsNullable = false, Namespace = "")]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
public BroadWorksConnector.Ocip.Models.CommunicationBarringIncomingAction IncomingDefaultAction
{
get => _incomingDefaultAction;
set
{
IncomingDefaultActionSpecified = true;
_incomingDefaultAction = value;
}
}
[XmlIgnore]
protected bool IncomingDefaultActionSpecified { get; set; }
private int _incomingDefaultCallTimeout;
[XmlElement(ElementName = "incomingDefaultCallTimeout", IsNullable = false, Namespace = "")]
[Optional]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
[MinInclusive(60)]
[MaxInclusive(86400)]
public int IncomingDefaultCallTimeout
{
get => _incomingDefaultCallTimeout;
set
{
IncomingDefaultCallTimeoutSpecified = true;
_incomingDefaultCallTimeout = value;
}
}
[XmlIgnore]
protected bool IncomingDefaultCallTimeoutSpecified { get; set; }
private List<BroadWorksConnector.Ocip.Models.CommunicationBarringIncomingRule19sp1> _incomingRule = new List<BroadWorksConnector.Ocip.Models.CommunicationBarringIncomingRule19sp1>();
[XmlElement(ElementName = "incomingRule", IsNullable = false, Namespace = "")]
[Optional]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
public List<BroadWorksConnector.Ocip.Models.CommunicationBarringIncomingRule19sp1> IncomingRule
{
get => _incomingRule;
set
{
IncomingRuleSpecified = true;
_incomingRule = value;
}
}
[XmlIgnore]
protected bool IncomingRuleSpecified { get; set; }
private bool _isDefault;
[XmlElement(ElementName = "isDefault", IsNullable = false, Namespace = "")]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
public bool IsDefault
{
get => _isDefault;
set
{
IsDefaultSpecified = true;
_isDefault = value;
}
}
[XmlIgnore]
protected bool IsDefaultSpecified { get; set; }
private bool _applyToAttendedCallTransfers;
[XmlElement(ElementName = "applyToAttendedCallTransfers", IsNullable = false, Namespace = "")]
[Group(@"f1088f4c5ceb30d524d2ba0f8097c393:2020")]
public bool ApplyToAttendedCallTransfers
{
get => _applyToAttendedCallTransfers;
set
{
ApplyToAttendedCallTransfersSpecified = true;
_applyToAttendedCallTransfers = value;
}
}
[XmlIgnore]
protected bool ApplyToAttendedCallTransfersSpecified { get; set; }
}
}
| 36.766764 | 243 | 0.643962 | [
"MIT"
] | JTOne123/broadworks-connector-net | BroadworksConnector/Ocip/Models/ServiceProviderCommunicationBarringProfileGetResponse19sp1V2.cs | 12,611 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MainGUI : Singleton<MainGUI> {
public GameObject GameGUI;
public GameObject MainMenu;
public GameObject PauseMenu;
public GameObject DeathScreen;
public GameObject TeamSelect;
// Use this for initialization
void Start () {
Current = this;
}
// Update is called once per frame
void Update () {
}
public void ButtonHostClick()
{
}
public void ButtonJoinClick()
{
}
}
| 17.935484 | 44 | 0.640288 | [
"MIT"
] | SardineFish/RobotBattle | Robot Battle/Assets/GameSystem/GUI/MainGUI.cs | 558 | C# |
using System;
using System.IO;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Singulink.IO.FileSystem.Tests
{
[TestClass]
public class PlatformConsistencyTests
{
private const string FileName = "test.file";
private static IAbsoluteDirectoryPath SetupTestDirectory()
{
var testDir = DirectoryPath.GetCurrent() + DirectoryPath.ParseRelative("_test");
if (testDir.Exists)
testDir.Delete(true);
testDir.Create();
testDir.CombineFile(FileName).OpenStream(FileMode.CreateNew).Dispose();
return testDir;
}
[TestMethod]
public void FileIsDirectory()
{
var file = FilePath.ParseAbsolute(SetupTestDirectory().PathExport);
Assert.IsFalse(file.Exists);
Assert.ThrowsException<FileNotFoundException>(() => _ = file.Attributes);
Assert.ThrowsException<FileNotFoundException>(() => _ = file.CreationTime);
Assert.ThrowsException<FileNotFoundException>(() => file.IsReadOnly = true);
Assert.ThrowsException<FileNotFoundException>(() => file.Attributes |= FileAttributes.Hidden);
Assert.ThrowsException<FileNotFoundException>(() => file.Length);
// No exception should be thrown for files that don't exist
file.Delete();
}
[TestMethod]
public void DirectoryIsFile()
{
var dir = SetupTestDirectory().CombineDirectory(FileName);
Assert.IsFalse(dir.Exists);
Assert.ThrowsException<DirectoryNotFoundException>(() => _ = dir.IsEmpty);
Assert.ThrowsException<DirectoryNotFoundException>(() => _ = dir.Attributes);
Assert.ThrowsException<DirectoryNotFoundException>(() => _ = dir.CreationTime);
Assert.ThrowsException<DirectoryNotFoundException>(() => _ = dir.AvailableFreeSpace);
Assert.ThrowsException<DirectoryNotFoundException>(() => _ = dir.TotalFreeSpace);
Assert.ThrowsException<DirectoryNotFoundException>(() => _ = dir.TotalSize);
Assert.ThrowsException<DirectoryNotFoundException>(() => dir.Attributes |= FileAttributes.Hidden);
Assert.ThrowsException<DirectoryNotFoundException>(() => _ = dir.DriveType);
Assert.ThrowsException<DirectoryNotFoundException>(() => _ = dir.FileSystem);
Assert.ThrowsException<DirectoryNotFoundException>(() => dir.GetChildEntries().FirstOrDefault());
Assert.ThrowsException<DirectoryNotFoundException>(() => dir.Delete(true));
}
}
}
| 42.375 | 111 | 0.637168 | [
"MIT"
] | Singulink/Singulink.IO.FileSystem | Source/Singulink.IO.FileSystem.Tests/PlatformConsistencyTests.cs | 2,714 | C# |
using System;
using System.Collections.Generic;
using System.Windows.Input;
using Xamarin.Essentials;
using Xamarin.Forms;
namespace Samples.ViewModel
{
public class GyroscopeViewModel : BaseViewModel
{
double x;
double y;
double z;
bool isActive;
int speed = 0;
public GyroscopeViewModel()
{
StartCommand = new Command(OnStart);
StopCommand = new Command(OnStop);
}
public ICommand StartCommand { get; }
public ICommand StopCommand { get; }
public double X
{
get => x;
set => SetProperty(ref x, value);
}
public double Y
{
get => y;
set => SetProperty(ref y, value);
}
public double Z
{
get => z;
set => SetProperty(ref z, value);
}
public bool IsActive
{
get => isActive;
set => SetProperty(ref isActive, value);
}
public string[] Speeds { get; } =
Enum.GetNames(typeof(SensorSpeed));
public int Speed
{
get => speed;
set => SetProperty(ref speed, value);
}
public override void OnAppearing()
{
Gyroscope.ReadingChanged += OnReadingChanged;
base.OnAppearing();
}
public override void OnDisappearing()
{
OnStop();
Gyroscope.ReadingChanged -= OnReadingChanged;
base.OnDisappearing();
}
void OnReadingChanged(object sender, GyroscopeChangedEventArgs e)
{
var data = e.Reading;
switch ((SensorSpeed)Speed)
{
case SensorSpeed.Fastest:
case SensorSpeed.Game:
MainThread.BeginInvokeOnMainThread(() =>
{
X = data.AngularVelocity.X;
Y = data.AngularVelocity.Y;
Z = data.AngularVelocity.Z;
});
break;
default:
X = data.AngularVelocity.X;
Y = data.AngularVelocity.Y;
Z = data.AngularVelocity.Z;
break;
}
}
async void OnStart()
{
try
{
Gyroscope.Start((SensorSpeed)Speed);
IsActive = true;
}
catch (Exception ex)
{
await DisplayAlertAsync($"Unable to start gyroscope: {ex.Message}");
}
}
void OnStop()
{
IsActive = false;
Gyroscope.Stop();
}
}
}
| 23.965517 | 84 | 0.461151 | [
"MIT"
] | 1Cor125/Essentials | Samples/Samples/ViewModel/GyroscopeViewModel.cs | 2,782 | C# |
namespace StatusBar.Core
{
public enum MessageTypes
{
Information,
Warning,
Error
}
} | 13.555556 | 28 | 0.54918 | [
"Apache-2.0"
] | lothrop/StatusBar.iOS | StatusBar.Core/MessageTypes.cs | 124 | C# |
/************************************************************************
AvalonDock
Copyright (C) 2007-2013 Xceed Software Inc.
This program is provided to you under the terms of the New BSD
License (BSD) as published at http://avalondock.codeplex.com/license
For more features, controls, and fast professional support,
pick up AvalonDock in Extended WPF Toolkit Plus at http://xceed.com/wpf_toolkit
Stay informed: follow @datagrid on Twitter or Like facebook.com/datagrids
**********************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows;
namespace AvalonDock.Controls
{
public class ContextMenuEx : ContextMenu
{
static ContextMenuEx()
{
}
public ContextMenuEx()
{
}
protected override System.Windows.DependencyObject GetContainerForItemOverride()
{
return new MenuItemEx();
}
protected override void OnOpened(System.Windows.RoutedEventArgs e)
{
BindingOperations.GetBindingExpression(this, ItemsSourceProperty).UpdateTarget();
base.OnOpened(e);
}
}
}
| 24.735849 | 93 | 0.606407 | [
"Apache-2.0"
] | tainicom/ProtonType | 3rdPartyLibraries/AvalonDock/src/AvalonDock/Controls/ContextMenuEx.cs | 1,313 | C# |
using CommandLine;
namespace ProcessGremlin.App
{
public class ArgumentParser
{
public bool TryParse(string[] args, out Arguments arguments)
{
if (args != null && args.Length != 0)
{
string invokedVerb = null;
object invokedVerbInstance = null;
var options = new Options();
if (Parser.Default.ParseArguments(
args,
options,
(verb, subOptions) =>
{
invokedVerb = verb;
invokedVerbInstance = subOptions;
}) && invokedVerbInstance is CommonOptions)
{
arguments = new Arguments(invokedVerb, invokedVerbInstance);
return true;
}
}
arguments = null;
return false;
}
}
} | 28.666667 | 80 | 0.448203 | [
"BSD-3-Clause"
] | NathanLBCooper/ProcessGremlin | App/ArgumentParser.cs | 946 | C# |
using Windows.Win32.UI.Input.KeyboardAndMouse;
namespace Whim.FloatingLayout;
public static class FloatingLayoutCommands
{
public static (ICommand, IKeybind?)[] GetCommands(FloatingLayoutPlugin floatingLayoutPlugin) => new (ICommand, IKeybind?)[]
{
(
new Command(
identifier: "floating_layout.toggle_window_floating",
title: "Toggle window floating",
callback: () => floatingLayoutPlugin.ToggleWindowFloating()
),
new Keybind(DefaultCommands.WinShift, VIRTUAL_KEY.VK_F)
)
};
}
| 26.684211 | 124 | 0.753452 | [
"MIT"
] | dalyIsaac/Whim | src/Whim.FloatingLayout/FloatingLayoutCommands.cs | 507 | C# |
namespace BAG.Framework.Geolocation.Models
{
public class Coordinate
{
public double Latitude { get; set; }
public double Longitude { get; set; }
public Coordinate()
{
}
public Coordinate(double lat, double lon)
{
Latitude = lat;
Longitude = lon;
}
public override string ToString()
{
return string.Format("{0},{1}", this.Latitude, this.Longitude);
}
}
} | 20.32 | 75 | 0.507874 | [
"MIT"
] | BROCKHAUS-AG/ContentMonkee | MAIN/BAG.Library/GeoLocation/Models/Coordinate.cs | 510 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel;
using System.Collections.ObjectModel;
using CardTricks.Models;
namespace CardTricks.Interfaces
{
public interface ITreeViewItem : INotifyPropertyChanged
{
ObservableCollection<ITreeViewItem> Children { get; }
string Name { get; }
bool HasDummyChild { get; }
bool IsExpanded { get; set; }
bool IsSelected { get; set; }
bool IsLeaf { get; }
ITreeViewItem Parent { get; }
}
}
| 24.875 | 61 | 0.678392 | [
"MIT"
] | jamClark/Card-Tricks | CardTricks/Interfaces/ITreeViewItem.cs | 599 | C# |
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Roslyn.Test.Utilities;
using Xunit;
using Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces;
using Microsoft.CodeAnalysis.Editor.Host;
using System.Collections.Generic;
using System;
using System.Collections.Immutable;
using System.Linq;
namespace Microsoft.CodeAnalysis.Editor.CSharp.UnitTests.Interactive.Commands
{
public class ResetInteractiveTests
{
private string WorkspaceXmlStr =>
@"<Workspace>
<Project Language=""Visual Basic"" AssemblyName=""ResetInteractiveVisualBasicSubproject"" CommonReferences=""true"">
<Document FilePath=""VisualBasicDocument""></Document>
</Project>
<Project Language=""C#"" AssemblyName=""ResetInteractiveTestsAssembly"" CommonReferences=""true"">
<ProjectReference>ResetInteractiveVisualBasicSubproject</ProjectReference>
<Document FilePath=""ResetInteractiveTestsDocument""></Document>
</Project>
</Workspace>";
[WpfFact]
[Trait(Traits.Feature, Traits.Features.Interactive)]
public async void TestResetREPLWithProjectContext()
{
using (var workspace = await TestWorkspace.CreateAsync(WorkspaceXmlStr))
{
var project = workspace.CurrentSolution.Projects.FirstOrDefault(p => p.AssemblyName == "ResetInteractiveTestsAssembly");
var document = project.Documents.FirstOrDefault(d => d.FilePath == "ResetInteractiveTestsDocument");
var replReferenceCommands = GetProjectReferences(workspace, project).Select(r => CreateReplReferenceCommand(r));
Assert.True(replReferenceCommands.Any(rc => rc.EndsWith(@"ResetInteractiveTestsAssembly.dll""")));
Assert.True(replReferenceCommands.Any(rc => rc.EndsWith(@"ResetInteractiveVisualBasicSubproject.dll""")));
var expectedSubmissions = new List<string> {
string.Join("\r\n", replReferenceCommands) + "\r\n",
string.Join("\r\n", @"using ""ns1"";", @"using ""ns2"";") + "\r\n"};
AssertResetInteractive(workspace, project, buildSucceeds: true, expectedSubmissions: expectedSubmissions);
// Test that no submissions are executed if the build fails.
AssertResetInteractive(workspace, project, buildSucceeds: false, expectedSubmissions: new List<string>());
}
}
private async void AssertResetInteractive(
TestWorkspace workspace,
Project project,
bool buildSucceeds,
List<string> expectedSubmissions)
{
InteractiveWindowTestHost testHost = new InteractiveWindowTestHost();
List<string> executedSubmissionCalls = new List<string>();
EventHandler<string> ExecuteSubmission = (_, code) => { executedSubmissionCalls.Add(code); };
testHost.Evaluator.OnExecute += ExecuteSubmission;
IWaitIndicator waitIndicator = workspace.GetService<IWaitIndicator>();
TestResetInteractive resetInteractive = new TestResetInteractive(
waitIndicator,
CreateReplReferenceCommand,
CreateImport,
buildSucceeds: buildSucceeds)
{
References = ImmutableArray.CreateRange(GetProjectReferences(workspace, project)),
ReferenceSearchPaths = ImmutableArray.Create("rsp1", "rsp2"),
SourceSearchPaths = ImmutableArray.Create("ssp1", "ssp2"),
NamespacesToImport = ImmutableArray.Create("ns1", "ns2"),
ProjectDirectory = "pj",
};
await resetInteractive.Execute(testHost.Window, "Interactive C#");
// Validate that the project was rebuilt.
Assert.Equal(1, resetInteractive.BuildProjectCount);
Assert.Equal(0, resetInteractive.CancelBuildProjectCount);
AssertEx.Equal(expectedSubmissions, executedSubmissionCalls);
testHost.Evaluator.OnExecute -= ExecuteSubmission;
}
/// <summary>
/// Simulates getting all project references.
/// </summary>
/// <param name="workspace">Workspace with the solution.</param>
/// <param name="project">A project that should be built.</param>
/// <returns>A list of paths that should be referenced.</returns>
private IEnumerable<string> GetProjectReferences(TestWorkspace workspace, Project project)
{
var metadataReferences = project.MetadataReferences.Select(r => r.Display);
var projectReferences = project.ProjectReferences.SelectMany(p => GetProjectReferences(
workspace,
workspace.CurrentSolution.GetProject(p.ProjectId)));
var outputReference = new string[] { project.OutputFilePath };
return metadataReferences.Union(projectReferences).Concat(outputReference);
}
private string CreateReplReferenceCommand(string referenceName)
{
return $@"#r ""{referenceName}""";
}
private string CreateImport(string importName)
{
return $@"using ""{importName}"";";
}
}
}
| 46.034483 | 161 | 0.657116 | [
"Apache-2.0"
] | dnelly/peachpie | roslyn @ 33e2491/src/VisualStudio/CSharp/Test/Interactive/Commands/ResetInteractiveTests.cs | 5,342 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.3053
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CMS.FieldTemplates {
public partial class TextField {
/// <summary>
/// container control.
/// </summary>
/// <remarks>
/// Auto-generated field.
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.TextBox container;
}
}
| 30.884615 | 84 | 0.476961 | [
"MIT"
] | atdushi/zzzcms.net | src/zzzCMS_Backend/FieldTemplates/TextField.ascx.designer.cs | 805 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
namespace Microsoft.Toolkit.Uwp.UI.Lottie.LottieGen
{
sealed class Reporter
{
// Lock to protect method and object that do not support multi-threaded access. Note that the
// TextWriter objects do not need locking (they are assumed to be threadsafe).
readonly object _lock = new object();
readonly Dictionary<string, DataTable> _dataTables =
new Dictionary<string, DataTable>(StringComparer.OrdinalIgnoreCase);
internal Reporter(TextWriter infoStream, TextWriter errorStream)
{
InfoStream = new Writer(infoStream);
ErrorStream = new Writer(errorStream);
}
internal Writer InfoStream { get; }
internal Writer ErrorStream { get; }
// Helper for writing errors to the error stream with a standard format.
internal void WriteError(string errorMessage) =>
WriteError(errorMessage, ConsoleColor.Red, ConsoleColor.Black);
// Helper for writing info lines to the info stream.
internal void WriteInfo(string infoMessage) =>
WriteInfo(InfoType.Default, infoMessage);
// Helper for writing info lines to the info stream.
internal void WriteInfo(InfoType type, string infoMessage)
{
ConsoleColor background = ConsoleColor.Black;
var foreground = type switch
{
InfoType.Default => ConsoleColor.Gray,
InfoType.Advice => ConsoleColor.Green,
InfoType.FilePath => ConsoleColor.Cyan,
InfoType.Issue => ConsoleColor.Yellow,
InfoType.Signon => ConsoleColor.White,
_ => throw new ArgumentException(),
};
WriteInfo(infoMessage, foreground, background);
}
// Writes a new line to the info stream.
internal void WriteInfoNewLine()
{
InfoStream.WriteLine();
}
// Writes a row of data that can be retrieved later. Typically this is used to create CSV or TSV files
// containing information about the result of processing some Lottie files.
internal void WriteDataTableRow(string databaseName, IReadOnlyList<(string columnName, string value)> row)
{
lock (_lock)
{
if (!_dataTables.TryGetValue(databaseName, out var database))
{
database = new DataTable();
_dataTables.Add(databaseName, database);
}
database.AddRow(row);
}
}
// Returns the data for each data table that was written.
internal IEnumerable<(string dataTableName, string[] columnNames, string[][] rows)> GetDataTables()
{
lock (_lock)
{
foreach (var (dataTableName, dataTable) in _dataTables.OrderBy(dt => dt.Key))
{
var (columNames, rows) = dataTable.GetData();
yield return (dataTableName, columNames, rows);
}
}
}
// Helper for writing errors to the error stream with a standard format.
void WriteError(
string errorMessage,
ConsoleColor foregroundColor,
ConsoleColor backgroundColor)
{
using (ErrorStream.Lock())
{
ErrorStream.Color(foregroundColor, backgroundColor);
ErrorStream.WriteLine($"Error: {errorMessage}");
}
}
// Helper for writing info lines to the info stream.
void WriteInfo(
string infoMessage,
ConsoleColor foregroundColor,
ConsoleColor backgroundColor)
{
using (InfoStream.Lock())
{
InfoStream.Color(foregroundColor, backgroundColor);
InfoStream.WriteLine(infoMessage);
}
}
internal sealed class Writer
{
readonly TextWriter _wrapped;
readonly object _lock = new object();
internal Writer(TextWriter wrapped)
{
_wrapped = wrapped;
}
public void WriteLine()
{
lock (_lock)
{
_wrapped.WriteLine();
Console.ResetColor();
}
}
public void WriteLine(string value)
{
lock (_lock)
{
_wrapped.WriteLine(value);
Console.ResetColor();
}
}
/// <summary>
/// Sets the color until the next line is output.
/// </summary>
public void Color(ConsoleColor foregroundColor, ConsoleColor backgroundColor)
{
lock (_lock)
{
Console.ForegroundColor = foregroundColor;
Console.BackgroundColor = backgroundColor;
}
}
public IDisposable Lock() => new LockGuard(this);
sealed class LockGuard : IDisposable
{
readonly Writer _owner;
internal LockGuard(Writer owner)
{
_owner = owner;
Monitor.Enter(_owner._lock);
}
public void Dispose()
{
Monitor.Exit(_owner._lock);
}
}
}
}
} | 33.443182 | 114 | 0.544003 | [
"MIT"
] | CommunityToolkit/Lottie-Windows | source/LottieGen/Reporter.cs | 5,888 | C# |
using System;
using System.Collections.Generic;
using System.Text;
namespace Ld.PlanMangager.Repository.Interface
{
/// <summary>
/// 值对象
/// </summary>
/// <typeparam name="TId">id类型</typeparam>
public interface IValueObject<TId> : IAggregate<TId>
{
}
}
| 18.294118 | 57 | 0.598071 | [
"Apache-2.0"
] | HadesKing/PlanManager | src/Ld.PlanMangager.IRepository/IValueObject.cs | 323 | C# |
using OpenQA.Selenium;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SpecFlow.Tests.Selenium.Helpers
{
internal static class Extensions
{
public static Func<IWebDriver, bool> IsClickable(this By by)
{
return (driver) =>
{
return by.IsDisplayed()(driver)
&& by.IsEnabled()(driver);
};
}
public static Func<IWebDriver, bool> IsDisplayed(this By by)
{
return (driver) =>
{
return driver.FindElement(by).Displayed;
};
}
public static Func<IWebDriver, bool> IsEnabled(this By by)
{
return (driver) =>
{
return driver.FindElement(by).Enabled;
};
}
}
}
| 23.421053 | 68 | 0.526966 | [
"MIT"
] | jtucker276/fuzzy-telegram | SpecFlow/SpecFlow.Tests/Selenium/Helpers/Extensions.cs | 892 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Collections;
using System.ComponentModel;
using Xunit;
namespace System.DirectoryServices.Tests
{
public class SortOptionTests
{
[Fact]
public void Ctor_Default()
{
var sortOption = new SortOption();
Assert.Null(sortOption.PropertyName);
Assert.Equal(SortDirection.Ascending, sortOption.Direction);
}
[Theory]
[InlineData("", SortDirection.Descending)]
[InlineData("propertyName", SortDirection.Ascending)]
public void Ctor_PropertyName_SortDirection(string propertyName, SortDirection direction)
{
var sortOption = new SortOption(propertyName, direction);
Assert.Equal(propertyName, sortOption.PropertyName);
Assert.Equal(direction, sortOption.Direction);
}
[Fact]
public void Ctor_NullPropertyName_ThrowsArgumentNullException()
{
AssertExtensions.Throws<ArgumentNullException>("value", () => new SortOption(null, SortDirection.Ascending));
}
[Theory]
[InlineData(SortDirection.Ascending - 1)]
[InlineData(SortDirection.Descending + 1)]
public void Ctor_InvalidDirection_ThrowsInvalidEnumArgumentException(SortDirection direction)
{
AssertExtensions.Throws<InvalidEnumArgumentException>("value", () => new SortOption("propertyName", direction));
}
}
}
| 35.717391 | 124 | 0.673767 | [
"MIT"
] | 06needhamt/runtime | src/libraries/System.DirectoryServices/tests/System/DirectoryServices/SortOptionTests.cs | 1,645 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Acelerator : MonoBehaviour
{
void Update()
{
if (Input.GetKeyDown(KeyCode.Alpha1))
{
Time.timeScale = 1;
}
if (Input.GetKeyDown(KeyCode.Alpha2))
{
Time.timeScale = 2;
}
if (Input.GetKeyDown(KeyCode.Alpha4))
{
Time.timeScale = 4;
}
if (Input.GetKeyDown(KeyCode.Alpha8))
{
Time.timeScale = 8;
}
if (Input.GetKeyDown(KeyCode.Alpha0))
{
Time.timeScale = 20;
}
}
}
| 20.21875 | 45 | 0.513138 | [
"CC0-1.0"
] | juanFrancoSalcedo/Pitacos | PitacosMaths/Assets/Scripts/Acelerator.cs | 649 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace BlitzBricks
{
class Paddle:ColorSprite
{
public int ScreenWidth { get; set; }
public int InputWidth { get; set; }
public int InputStart { get; set; }
public DateTime SpecialTimer { get; set; }
public Texture2D sTexture { get; set; }
public int Height
{
get
{
return Texture.Height;
}
}
public int Width
{
get
{
if (SpecialTimer.AddSeconds(10) >= DateTime.Now)
{
return sTexture.Width;
}
else
{
return Texture.Width;
}
}
}
private int MaxPosX;
public void SetY(float PosY)
{
Position = new Vector2(Position.X,PosY);
}
public void MoveTo(float SPosX)
{
float NewPos = 0f;
try
{
if (SpecialTimer.AddSeconds(10) >= DateTime.Now)
{
MaxPosX = ScreenWidth - sTexture.Width;
NewPos = (float)((SPosX - InputStart) / InputWidth) * ScreenWidth - sTexture.Width / 2;
}
else
{
MaxPosX = ScreenWidth - Texture.Width;
NewPos = (float)((SPosX - InputStart) / InputWidth) * ScreenWidth - Texture.Width / 2;
}
if (NewPos < 0) { NewPos = 0; }
if (NewPos > MaxPosX) { NewPos = (float)(MaxPosX); }
Position = new Vector2(NewPos, Position.Y);
}
catch
{
}
}
public override void Draw(SpriteBatch theSpriteBatch)
{
if (SpecialTimer.AddSeconds(10) >= DateTime.Now)
{
theSpriteBatch.Draw(sTexture, Position, Color.White);
}
else
{
theSpriteBatch.Draw(Texture, Position, Color.White);
}
}
}
}
| 27.590361 | 111 | 0.453712 | [
"MIT"
] | GDukeman/BlitzBricks | BlitzBricks/BlitzBricks/Paddle.cs | 2,290 | C# |
namespace MLSoftware.OTA
{
[System.CodeDom.Compiler.GeneratedCodeAttribute("Xsd2Code", "4.2.0.31")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="http://www.opentravel.org/OTA/2003/05")]
public partial class OntologyDimensionTypeDimensionUnit
{
private decimal _height;
private decimal _length;
private decimal _width;
private string _otherType;
private string _ontologyRefID;
private List_OfferDimensionUOM _value;
[System.Xml.Serialization.XmlAttributeAttribute()]
public decimal Height
{
get
{
return this._height;
}
set
{
this._height = value;
}
}
[System.Xml.Serialization.XmlAttributeAttribute()]
public decimal Length
{
get
{
return this._length;
}
set
{
this._length = value;
}
}
[System.Xml.Serialization.XmlAttributeAttribute()]
public decimal Width
{
get
{
return this._width;
}
set
{
this._width = value;
}
}
[System.Xml.Serialization.XmlAttributeAttribute()]
public string OtherType
{
get
{
return this._otherType;
}
set
{
this._otherType = value;
}
}
[System.Xml.Serialization.XmlAttributeAttribute()]
public string OntologyRefID
{
get
{
return this._ontologyRefID;
}
set
{
this._ontologyRefID = value;
}
}
[System.Xml.Serialization.XmlTextAttribute()]
public List_OfferDimensionUOM Value
{
get
{
return this._value;
}
set
{
this._value = value;
}
}
}
} | 24.178218 | 118 | 0.462326 | [
"MIT"
] | Franklin89/OTA-Library | src/OTA-Library/OntologyDimensionTypeDimensionUnit.cs | 2,442 | C# |
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Threading;
using System.Threading.Tasks;
using Azure.Core;
namespace Azure.Messaging.EventHubs.Authorization
{
/// <summary>
/// Provides a credential based on a shared access signature for a given
/// Event Hub instance.
/// </summary>
///
/// <seealso cref="SharedAccessSignature" />
/// <seealso cref="Azure.Core.TokenCredential" />
///
internal class SharedAccessSignatureCredential : TokenCredential
{
/// <summary>The buffer to apply when considering refreshing; signatures that expire less than this duration will be refreshed.</summary>
private static readonly TimeSpan SignatureRefreshBuffer = TimeSpan.FromMinutes(10);
/// <summary>The length of time extend signature validity, if a token was requested.</summary>
private static readonly TimeSpan SignatureExtensionDuration = TimeSpan.FromMinutes(30);
/// <summary>Provides a target for synchronization to guard against concurrent token expirations.</summary>
private readonly object SignatureSyncRoot = new object();
/// <summary>
/// The shared access signature that forms the basis of this security token.
/// </summary>
///
private SharedAccessSignature SharedAccessSignature { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="SharedAccessSignatureCredential"/> class.
/// </summary>
///
/// <param name="signature">The shared access signature on which to base the token.</param>
///
public SharedAccessSignatureCredential(SharedAccessSignature signature)
{
Argument.AssertNotNull(signature, nameof(signature));
SharedAccessSignature = signature;
}
/// <summary>
/// Retrieves the token that represents the shared access signature credential, for
/// use in authorization against an Event Hub.
/// </summary>
///
/// <param name="requestContext">The details of the authentication request.</param>
/// <param name="cancellationToken">The token used to request cancellation of the operation.</param>
///
/// <returns>The token representing the shared access signature for this credential.</returns>
///
public override AccessToken GetToken(TokenRequestContext requestContext,
CancellationToken cancellationToken)
{
// If the signature was derived from a shared key rather than being provided externally,
// determine if the expiration is approaching and attempt to extend the token.
if ((!string.IsNullOrEmpty(SharedAccessSignature.SharedAccessKey))
&& (SharedAccessSignature.SignatureExpiration <= DateTimeOffset.UtcNow.Add(SignatureRefreshBuffer)))
{
lock (SignatureSyncRoot)
{
if (SharedAccessSignature.SignatureExpiration <= DateTimeOffset.UtcNow.Add(SignatureRefreshBuffer))
{
SharedAccessSignature = SharedAccessSignature.CloneWithNewExpiration(SignatureExtensionDuration);
}
}
}
return new AccessToken(SharedAccessSignature.Value, SharedAccessSignature.SignatureExpiration);
}
/// <summary>
/// Retrieves the token that represents the shared access signature credential, for
/// use in authorization against an Event Hub.
/// </summary>
///
/// <param name="requestContext">The details of the authentication request.</param>
/// <param name="cancellationToken">The token used to request cancellation of the operation.</param>
///
/// <returns>The token representing the shared access signature for this credential.</returns>
///
public override ValueTask<AccessToken> GetTokenAsync(TokenRequestContext requestContext,
CancellationToken cancellationToken) => new ValueTask<AccessToken>(GetToken(requestContext, cancellationToken));
/// <summary>
/// It creates a new shared signature using the key name and the key value passed as
/// input allowing credentials rotation. A call will not extend the signature duration.
/// </summary>
///
/// <param name="keyName">The name of the shared access key that the signature should be based on.</param>
/// <param name="keyValue">The value of the shared access key for the signature.</param>
///
internal void UpdateSharedAccessKey(string keyName, string keyValue)
{
lock (SignatureSyncRoot)
{
SharedAccessSignature = new SharedAccessSignature(SharedAccessSignature.Resource,
keyName,
keyValue,
SharedAccessSignature.Value,
SharedAccessSignature.SignatureExpiration);
}
}
}
}
| 47.938053 | 173 | 0.613255 | [
"MIT"
] | Aishwarya-C-S/azure-sdk-for-net | sdk/eventhub/Azure.Messaging.EventHubs.Shared/src/Authorization/SharedAccessSignatureCredential.cs | 5,419 | C# |
using System;
using Microsoft.Azure.WebJobs;
namespace Demo.WebJobs.Extensions.CosmosDB.Extensions.Config
{
internal static class CosmosDBExtensionsWebJobsBuilderExtensions
{
public static IWebJobsBuilder AddCosmosDBExtensions(this IWebJobsBuilder builder)
{
if (builder == null)
{
throw new ArgumentNullException(nameof(builder));
}
builder.AddExtension<CosmosDBExtensionExtensionsConfigProvider>();
return builder;
}
}
}
| 25.666667 | 89 | 0.656772 | [
"MIT"
] | tpeczek/Demo.Azure.Funtions.PushNotifications | Demo.WebJobs.Extensions.CosmosDB.Extensions/Config/CosmosDBExtensionsWebJobsBuilderExtensions.cs | 541 | C# |
using System;
using Disqord;
namespace Doraemon.Data.Models.Moderation
{
/// <summary>
/// Describes an operation to create an instance of an <see cref="Infraction" />.
/// </summary>
public class InfractionCreationData
{
/// <summary>
/// See <see cref="Infraction.Id" />
/// </summary>
public string Id { get; set; }
/// <summary>
/// See <see cref="Infraction.SubjectId" />
/// </summary>
public Snowflake SubjectId { get; set; }
/// <summary>
/// See <see cref="Infraction.ModeratorId" />
/// </summary>
public Snowflake ModeratorId { get; set; }
/// <summary>
/// See <see cref="Infraction.CreatedAt" />
/// </summary>
public DateTimeOffset CreatedAt { get; set; } = DateTimeOffset.Now;
/// <summary>
/// See <see cref="Infraction.Duration" />
/// </summary>
public TimeSpan? Duration { get; set; }
/// <summary>
/// See <see cref="Infraction.Type" />
/// </summary>
public InfractionType Type { get; set; }
/// <summary>
/// See <see cref="Infraction.Reason" />
/// </summary>
public string Reason { get; set; }
/// <summary>
/// Converts the <see cref="InfractionCreationData" /> to a <see cref="Infraction" />
/// </summary>
/// <returns>A see <see cref="Infraction" /></returns>
internal Infraction ToEntity()
{
return new()
{
Id = Id,
SubjectId = SubjectId,
ModeratorId = ModeratorId,
CreatedAt = CreatedAt,
Duration = Duration,
Type = Type,
Reason = Reason
};
}
}
} | 29.265625 | 97 | 0.486385 | [
"MIT"
] | shift-eleven/Doraemon | Doraemon.Data/Models/Moderation/InfractionCreationData.cs | 1,875 | C# |
// Copyright (C) 2014 dot42
//
// Original filename: Java.Security.Interfaces.cs
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#pragma warning disable 1717
namespace Java.Security.Interfaces
{
/// <summary>
/// <para>The interface for Digital Signature Algorithm (DSA) specific parameters. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/DSAParams
/// </java-name>
[Dot42.DexImport("java/security/interfaces/DSAParams", AccessFlags = 1537)]
public partial interface IDSAParams
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the base (<c> g </c> ) value.</para><para></para>
/// </summary>
/// <returns>
/// <para>the base (<c> g </c> ) value. </para>
/// </returns>
/// <java-name>
/// getG
/// </java-name>
[Dot42.DexImport("getG", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetG() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the prime (<c> p </c> ) value.</para><para></para>
/// </summary>
/// <returns>
/// <para>the prime (<c> p </c> ) value. </para>
/// </returns>
/// <java-name>
/// getP
/// </java-name>
[Dot42.DexImport("getP", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetP() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the subprime (<c> q </c> value.</para><para></para>
/// </summary>
/// <returns>
/// <para>the subprime (<c> q </c> value. </para>
/// </returns>
/// <java-name>
/// getQ
/// </java-name>
[Dot42.DexImport("getQ", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetQ() /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The interface for an Elliptic Curve (EC) private key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/ECPrivateKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/ECPrivateKey", AccessFlags = 1537, IgnoreFromJava = true, Priority = 1)]
public static partial class IECPrivateKeyConstants
/* scope: __dot42__ */
{
/// <summary>
/// <para>The serial version identifier. </para>
/// </summary>
/// <java-name>
/// serialVersionUID
/// </java-name>
[Dot42.DexImport("serialVersionUID", "J", AccessFlags = 25)]
public const long SerialVersionUID = -7896394956925609184;
}
/// <summary>
/// <para>The interface for an Elliptic Curve (EC) private key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/ECPrivateKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/ECPrivateKey", AccessFlags = 1537)]
public partial interface IECPrivateKey : global::Java.Security.IPrivateKey, global::Java.Security.Interfaces.IECKey
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the private value <c> S </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the private value <c> S </c> . </para>
/// </returns>
/// <java-name>
/// getS
/// </java-name>
[Dot42.DexImport("getS", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetS() /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The interface for a Digital Signature Algorithm (DSA) private key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/DSAPrivateKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/DSAPrivateKey", AccessFlags = 1537, IgnoreFromJava = true, Priority = 1)]
public static partial class IDSAPrivateKeyConstants
/* scope: __dot42__ */
{
/// <summary>
/// <para>The serial version identifier. </para>
/// </summary>
/// <java-name>
/// serialVersionUID
/// </java-name>
[Dot42.DexImport("serialVersionUID", "J", AccessFlags = 25)]
public const long SerialVersionUID = 7776497482533790279;
}
/// <summary>
/// <para>The interface for a Digital Signature Algorithm (DSA) private key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/DSAPrivateKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/DSAPrivateKey", AccessFlags = 1537)]
public partial interface IDSAPrivateKey : global::Java.Security.Interfaces.IDSAKey, global::Java.Security.IPrivateKey
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the private key value <c> x </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the private key value <c> x </c> . </para>
/// </returns>
/// <java-name>
/// getX
/// </java-name>
[Dot42.DexImport("getX", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetX() /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The interface for key generators that can generate DSA key pairs. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/DSAKeyPairGenerator
/// </java-name>
[Dot42.DexImport("java/security/interfaces/DSAKeyPairGenerator", AccessFlags = 1537)]
public partial interface IDSAKeyPairGenerator
/* scope: __dot42__ */
{
/// <summary>
/// <para>Initializes this generator with the prime (<c> p </c> ), subprime (<c> q </c> ), and base (<c> g </c> ) values from the specified parameters.</para><para></para>
/// </summary>
/// <java-name>
/// initialize
/// </java-name>
[Dot42.DexImport("initialize", "(Ljava/security/interfaces/DSAParams;Ljava/security/SecureRandom;)V", AccessFlags = 1025)]
void Initialize(global::Java.Security.Interfaces.IDSAParams @params, global::Java.Security.SecureRandom random) /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Initializes this generator for the specified modulus length. Valid values for the modulus length are the multiples of 8 between 512 and 1024. </para><para>The parameter <c> genParams </c> specifies whether this method should generate new prime (<c> p </c> ), subprime (<c> q </c> ), and base (<c> g </c> ) values or whether it will use the pre-calculated values for the specified modulus length. Default parameters are available for modulus lengths of 512 and 1024 bits.</para><para></para>
/// </summary>
/// <java-name>
/// initialize
/// </java-name>
[Dot42.DexImport("initialize", "(IZLjava/security/SecureRandom;)V", AccessFlags = 1025)]
void Initialize(int modlen, bool genParams, global::Java.Security.SecureRandom random) /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The base interface for Digital Signature Algorithm (DSA) public or private keys. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/DSAKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/DSAKey", AccessFlags = 1537)]
public partial interface IDSAKey
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the DSA key parameters.</para><para></para>
/// </summary>
/// <returns>
/// <para>the DSA key parameters. </para>
/// </returns>
/// <java-name>
/// getParams
/// </java-name>
[Dot42.DexImport("getParams", "()Ljava/security/interfaces/DSAParams;", AccessFlags = 1025)]
global::Java.Security.Interfaces.IDSAParams GetParams() /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The base interface for Elliptic Curve (EC) public or private keys. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/ECKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/ECKey", AccessFlags = 1537)]
public partial interface IECKey
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the EC key parameters.</para><para></para>
/// </summary>
/// <returns>
/// <para>the EC key parameters. </para>
/// </returns>
/// <java-name>
/// getParams
/// </java-name>
[Dot42.DexImport("getParams", "()Ljava/security/spec/ECParameterSpec;", AccessFlags = 1025)]
global::Java.Security.Spec.ECParameterSpec GetParams() /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The interface for a Digital Signature Algorithm (DSA) public key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/DSAPublicKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/DSAPublicKey", AccessFlags = 1537, IgnoreFromJava = true, Priority = 1)]
public static partial class IDSAPublicKeyConstants
/* scope: __dot42__ */
{
/// <summary>
/// <para>The serial version identifier. </para>
/// </summary>
/// <java-name>
/// serialVersionUID
/// </java-name>
[Dot42.DexImport("serialVersionUID", "J", AccessFlags = 25)]
public const long SerialVersionUID = 1234526332779022332;
}
/// <summary>
/// <para>The interface for a Digital Signature Algorithm (DSA) public key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/DSAPublicKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/DSAPublicKey", AccessFlags = 1537)]
public partial interface IDSAPublicKey : global::Java.Security.Interfaces.IDSAKey, global::Java.Security.IPublicKey
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the public key value <c> y </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the public key value <c> y </c> . </para>
/// </returns>
/// <java-name>
/// getY
/// </java-name>
[Dot42.DexImport("getY", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetY() /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The interface for a PKCS#1 RSA private key using CRT information values. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/RSAPrivateCrtKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/RSAPrivateCrtKey", AccessFlags = 1537, IgnoreFromJava = true, Priority = 1)]
public static partial class IRSAPrivateCrtKeyConstants
/* scope: __dot42__ */
{
/// <summary>
/// <para>The serial version identifier. </para>
/// </summary>
/// <java-name>
/// serialVersionUID
/// </java-name>
[Dot42.DexImport("serialVersionUID", "J", AccessFlags = 25)]
public const long SerialVersionUID = -5682214253527700368;
}
/// <summary>
/// <para>The interface for a PKCS#1 RSA private key using CRT information values. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/RSAPrivateCrtKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/RSAPrivateCrtKey", AccessFlags = 1537)]
public partial interface IRSAPrivateCrtKey : global::Java.Security.Interfaces.IRSAPrivateKey
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the CRT coefficient, <c> q^-1 mod p </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the CRT coefficient. </para>
/// </returns>
/// <java-name>
/// getCrtCoefficient
/// </java-name>
[Dot42.DexImport("getCrtCoefficient", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetCrtCoefficient() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the prime factor <c> p </c> of <c> n </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the prime factor <c> p </c> of <c> n </c> . </para>
/// </returns>
/// <java-name>
/// getPrimeP
/// </java-name>
[Dot42.DexImport("getPrimeP", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPrimeP() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the prime factor <c> q </c> of <c> n </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the prime factor <c> q </c> of <c> n </c> . </para>
/// </returns>
/// <java-name>
/// getPrimeQ
/// </java-name>
[Dot42.DexImport("getPrimeQ", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPrimeQ() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the CRT exponent of the primet <c> p </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the CRT exponent of the prime <c> p </c> . </para>
/// </returns>
/// <java-name>
/// getPrimeExponentP
/// </java-name>
[Dot42.DexImport("getPrimeExponentP", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPrimeExponentP() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the CRT exponent of the prime <c> q </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the CRT exponent of the prime <c> q </c> . </para>
/// </returns>
/// <java-name>
/// getPrimeExponentQ
/// </java-name>
[Dot42.DexImport("getPrimeExponentQ", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPrimeExponentQ() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the public exponent <c> e </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the public exponent <c> e </c> . </para>
/// </returns>
/// <java-name>
/// getPublicExponent
/// </java-name>
[Dot42.DexImport("getPublicExponent", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPublicExponent() /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The interface for a PKCS#1 RSA public key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/RSAPublicKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/RSAPublicKey", AccessFlags = 1537, IgnoreFromJava = true, Priority = 1)]
public static partial class IRSAPublicKeyConstants
/* scope: __dot42__ */
{
/// <summary>
/// <para>The serial version identifier. </para>
/// </summary>
/// <java-name>
/// serialVersionUID
/// </java-name>
[Dot42.DexImport("serialVersionUID", "J", AccessFlags = 25)]
public const long SerialVersionUID = -8727434096241101194;
}
/// <summary>
/// <para>The interface for a PKCS#1 RSA public key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/RSAPublicKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/RSAPublicKey", AccessFlags = 1537)]
public partial interface IRSAPublicKey : global::Java.Security.IPublicKey, global::Java.Security.Interfaces.IRSAKey
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the public exponent <c> e </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the public exponent <c> e </c> . </para>
/// </returns>
/// <java-name>
/// getPublicExponent
/// </java-name>
[Dot42.DexImport("getPublicExponent", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPublicExponent() /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The interface for a Multi-Prime RSA private key. Specified by . </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/RSAMultiPrimePrivateCrtKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/RSAMultiPrimePrivateCrtKey", AccessFlags = 1537, IgnoreFromJava = true, Priority = 1)]
public static partial class IRSAMultiPrimePrivateCrtKeyConstants
/* scope: __dot42__ */
{
/// <summary>
/// <para>the serial version identifier. </para>
/// </summary>
/// <java-name>
/// serialVersionUID
/// </java-name>
[Dot42.DexImport("serialVersionUID", "J", AccessFlags = 25)]
public const long SerialVersionUID = 618058533534628008;
}
/// <summary>
/// <para>The interface for a Multi-Prime RSA private key. Specified by . </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/RSAMultiPrimePrivateCrtKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/RSAMultiPrimePrivateCrtKey", AccessFlags = 1537)]
public partial interface IRSAMultiPrimePrivateCrtKey : global::Java.Security.Interfaces.IRSAPrivateKey
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the CRT coefficient, <c> q^-1 mod p </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the CRT coefficient. </para>
/// </returns>
/// <java-name>
/// getCrtCoefficient
/// </java-name>
[Dot42.DexImport("getCrtCoefficient", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetCrtCoefficient() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the information for the additional primes.</para><para></para>
/// </summary>
/// <returns>
/// <para>the information for the additional primes, or <c> null </c> if there are only the two primes (<c> p, q </c> ), </para>
/// </returns>
/// <java-name>
/// getOtherPrimeInfo
/// </java-name>
[Dot42.DexImport("getOtherPrimeInfo", "()[Ljava/security/spec/RSAOtherPrimeInfo;", AccessFlags = 1025)]
global::Java.Security.Spec.RSAOtherPrimeInfo[] GetOtherPrimeInfo() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the prime factor <c> p </c> of <c> n </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the prime factor <c> p </c> of <c> n </c> . </para>
/// </returns>
/// <java-name>
/// getPrimeP
/// </java-name>
[Dot42.DexImport("getPrimeP", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPrimeP() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the prime factor <c> q </c> of <c> n </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the prime factor <c> q </c> of <c> n </c> . </para>
/// </returns>
/// <java-name>
/// getPrimeQ
/// </java-name>
[Dot42.DexImport("getPrimeQ", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPrimeQ() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the CRT exponent of the prime <c> p </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the CRT exponent of the prime <c> p </c> . </para>
/// </returns>
/// <java-name>
/// getPrimeExponentP
/// </java-name>
[Dot42.DexImport("getPrimeExponentP", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPrimeExponentP() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the CRT exponent of the prime <c> q </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the CRT exponent of the prime <c> q </c> . </para>
/// </returns>
/// <java-name>
/// getPrimeExponentQ
/// </java-name>
[Dot42.DexImport("getPrimeExponentQ", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPrimeExponentQ() /* MethodBuilder.Create */ ;
/// <summary>
/// <para>Returns the public exponent <c> e </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the public exponent <c> e </c> . </para>
/// </returns>
/// <java-name>
/// getPublicExponent
/// </java-name>
[Dot42.DexImport("getPublicExponent", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPublicExponent() /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The base interface for PKCS#1 RSA public and private keys. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/RSAKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/RSAKey", AccessFlags = 1537)]
public partial interface IRSAKey
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the modulus.</para><para></para>
/// </summary>
/// <returns>
/// <para>the modulus. </para>
/// </returns>
/// <java-name>
/// getModulus
/// </java-name>
[Dot42.DexImport("getModulus", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetModulus() /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The interface for an PKCS#1 RSA private key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/RSAPrivateKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/RSAPrivateKey", AccessFlags = 1537, IgnoreFromJava = true, Priority = 1)]
public static partial class IRSAPrivateKeyConstants
/* scope: __dot42__ */
{
/// <summary>
/// <para>The serial version identifier. </para>
/// </summary>
/// <java-name>
/// serialVersionUID
/// </java-name>
[Dot42.DexImport("serialVersionUID", "J", AccessFlags = 25)]
public const long SerialVersionUID = 5187144804936595022;
}
/// <summary>
/// <para>The interface for an PKCS#1 RSA private key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/RSAPrivateKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/RSAPrivateKey", AccessFlags = 1537)]
public partial interface IRSAPrivateKey : global::Java.Security.IPrivateKey, global::Java.Security.Interfaces.IRSAKey
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the private exponent <c> d </c> .</para><para></para>
/// </summary>
/// <returns>
/// <para>the private exponent <c> d </c> . </para>
/// </returns>
/// <java-name>
/// getPrivateExponent
/// </java-name>
[Dot42.DexImport("getPrivateExponent", "()Ljava/math/BigInteger;", AccessFlags = 1025)]
global::Java.Math.BigInteger GetPrivateExponent() /* MethodBuilder.Create */ ;
}
/// <summary>
/// <para>The interface for an Elliptic Curve (EC) public key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/ECPublicKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/ECPublicKey", AccessFlags = 1537, IgnoreFromJava = true, Priority = 1)]
public static partial class IECPublicKeyConstants
/* scope: __dot42__ */
{
/// <summary>
/// <para>The serial version identifier. </para>
/// </summary>
/// <java-name>
/// serialVersionUID
/// </java-name>
[Dot42.DexImport("serialVersionUID", "J", AccessFlags = 25)]
public const long SerialVersionUID = -3314988629879632826;
}
/// <summary>
/// <para>The interface for an Elliptic Curve (EC) public key. </para>
/// </summary>
/// <java-name>
/// java/security/interfaces/ECPublicKey
/// </java-name>
[Dot42.DexImport("java/security/interfaces/ECPublicKey", AccessFlags = 1537)]
public partial interface IECPublicKey : global::Java.Security.IPublicKey, global::Java.Security.Interfaces.IECKey
/* scope: __dot42__ */
{
/// <summary>
/// <para>Returns the public point <c> W </c> on an elliptic curve (EC).</para><para></para>
/// </summary>
/// <returns>
/// <para>the public point <c> W </c> on an elliptic curve (EC). </para>
/// </returns>
/// <java-name>
/// getW
/// </java-name>
[Dot42.DexImport("getW", "()Ljava/security/spec/ECPoint;", AccessFlags = 1025)]
global::Java.Security.Spec.ECPoint GetW() /* MethodBuilder.Create */ ;
}
}
| 36.745427 | 512 | 0.613151 | [
"Apache-2.0"
] | Dot42Xna/master | Generated/v4.2/Java.Security.Interfaces.cs | 24,105 | C# |
using System.Collections.Generic;
namespace ErplyAPI.Webstore
{
public static class Calls
{
/// <summary>
/// Returns an array of possible matrix dimensions.
/// </summary>
public static List<MatrixDimension> GetMatrixDimensions(this Erply erply, GetMatrixDimensionsSettings settings) => erply.MakeRequest<List<MatrixDimension>>(settings);
/// <summary>
/// Create a matrix dimension, or add values to an existing dimension.
/// A matrix dimension is necessary for setting up matrix products. Typical matrix dimensions are, for example, "Size" (in which the values might be 2, 4, 6, 8 — or S, M, L, XL) and "Color" (which may contain Blue, Red, Black, Green etc).
/// Different matrix products can share the same dimensions, and a matrix product does not need to have variations corresponding to each value in the dimension. For example, it is sufficient to have just one dimension for all letter sizes, one for all numeric sizes and one for all kinds of colors.
/// Matrix products and their variations can be created with API call getProducts.
/// This API call is the best choice if you want to create a brand new dimension with a specific set of values. However, if a dimension already exists and you want to modify its list of values, see the following API calls instead:
/// </summary>
public static int SaveMatrixDimension(this Erply erply, SaveMatrixDimensionSettings settings) => erply.MakeRequest<int>(settings);
/// <summary>
/// Add a new value (specific color or size) to a matrix dimension.
/// A matrix dimension is necessary for setting up matrix products. Typical matrix dimensions are, for example, "Size" (in which the values might be 2, 4, 6, 8 — or S, M, L, XL) and "Color" (which may contain Blue, Red, Black, Green etc).
/// To create a new dimension, see saveMatrixDimension. To edit an existing value (to change its name or code), see editItemInMatrixDimension. To delete a value, see removeItemsFromMatrixDimension.
/// </summary>
public static int AddItemToMatrixDimension(this Erply erply, AddItemToMatrixDimensionSettings settings) => erply.MakeRequest<int>(settings);
/// <summary>
/// Retrieve product brands.
/// Brands are a way of categorizing your product database, and several API calls support filtering by brand.
/// Products can additionally be organized into groups (getProductGroups, hierarchical), categories (getProductCategories, hierarchical), and priority groups (getProductPriorityGroups, a flat list).
/// </summary>
public static List<Brand> GetBrands(this Erply erply) => erply.MakeRequest<List<Brand>>(new ErplyCall() { CallName = "getBrands" });
/// <summary>
/// Creates or updates brand.
/// </summary>
public static int SaveBrand(this Erply erply, SaveBrandSettings settings) => erply.MakeRequest<int>(settings);
}
}
| 81.351351 | 306 | 0.706645 | [
"MIT"
] | Kedireng/ErplyApi | ErplyAPI/Webstore/Calls.cs | 3,016 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using TechTalk.SpecFlow.Generator.Interfaces;
namespace SpecFlow.Tools.MsBuild.Generation
{
public class TestFileGeneratorResult
{
public TestFileGeneratorResult(TestGeneratorResult generatorResult, string fileName)
{
if (generatorResult == null)
{
throw new ArgumentNullException(nameof(generatorResult));
}
Filename = fileName ?? throw new ArgumentNullException(nameof(fileName));
Errors = generatorResult.Errors;
IsUpToDate = generatorResult.IsUpToDate;
GeneratedTestCode = generatorResult.GeneratedTestCode;
}
/// <summary>
/// The errors, if any.
/// </summary>
public IEnumerable<TestGenerationError> Errors { get; }
/// <summary>
/// The generated file was up-to-date.
/// </summary>
public bool IsUpToDate { get; }
/// <summary>
/// The generated test code.
/// </summary>
public string GeneratedTestCode { get; }
public bool Success => Errors == null || !Errors.Any();
public string Filename { get; }
}
} | 28.767442 | 92 | 0.604689 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | 304NotModified/SpecFlow | SpecFlow.Tools.MsBuild.Generation/TestFileGeneratorResult.cs | 1,239 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using CWheelsApi.Data;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Microsoft.IdentityModel.Tokens;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using System.Text;
namespace CWheelsApi
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddMvc().AddXmlSerializerFormatters();
services.AddDbContext<CWheelsDbContext>(option => option.UseSqlServer(@"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=CWheelsDb"));
services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
.AddJwtBearer(options =>
{
options.TokenValidationParameters = new TokenValidationParameters
{
ValidateIssuer = true,
ValidateAudience = true,
ValidateLifetime = true,
ValidateIssuerSigningKey = true,
ValidIssuer = Configuration["Tokens:Issuer"],
ValidAudience = Configuration["Tokens:Issuer"],
IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(Configuration["Tokens:Key"])),
ClockSkew = TimeSpan.Zero,
};
});
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env,CWheelsDbContext cWheelsDbContext)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseHttpsRedirection();
app.UseRouting();
//cWheelsDbContext.Database.EnsureCreated();
app.UseAuthentication();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}
| 35.842105 | 148 | 0.62812 | [
"MIT"
] | codewithasfend/CWheels-Asp.Net-Core | CWheelsApi/CWheelsApi/Startup.cs | 2,724 | C# |
using System.IO;
using NUnit.Framework;
using Shouldly;
namespace Serilog.Sinks.Amazon.Kinesis.Tests.LogShipperFileManagerTests
{
[TestFixture]
class WhenLockAndDeleteFile : FileTestBase
{
[Test]
public void GivenFileDoesNotExist_ThenIOException()
{
Should.Throw<IOException>(
() => Target.LockAndDeleteFile(FileName)
);
}
[TestCase(FileAccess.Read, FileShare.Read, TestName = "File is opened with Read access and Read share")]
[TestCase(FileAccess.Write, FileShare.ReadWrite, TestName = "File is opened with Write access and Read/Write share")]
[TestCase(FileAccess.Read, FileShare.Delete, TestName = "File is opened with Read access and Delete share")]
[TestCase(FileAccess.Write, FileShare.Delete, TestName = "File is opened with Write access and Delete share")]
public void GivenFileIsOpened_ThenIOException(
FileAccess fileAccess,
FileShare fileShare
)
{
System.IO.File.WriteAllBytes(FileName, new byte[42]);
using (System.IO.File.Open(FileName, FileMode.OpenOrCreate, fileAccess, fileShare))
{
Should.Throw<IOException>(
() => Target.LockAndDeleteFile(FileName)
);
}
}
[Test]
public void GivenFileIsNotOpened_ThenDeleteSucceeds()
{
System.IO.File.WriteAllBytes(FileName, new byte[42]);
Target.LockAndDeleteFile(FileName);
System.IO.File.Exists(FileName).ShouldBeFalse();
}
}
}
| 35.652174 | 125 | 0.620732 | [
"Apache-2.0"
] | PlayOneMoreGame/serilog-sinks-amazonkinesis | tests/Serilog.Sinks.Amazon.Kinesis.Tests/LogShipperFileManagerTests/WhenLockAndDeleteFile.cs | 1,642 | C# |
/*
* Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the synthetics-2017-10-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Synthetics.Model
{
/// <summary>
/// A conflicting operation is already in progress.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ConflictException : AmazonSyntheticsException
{
/// <summary>
/// Constructs a new ConflictException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ConflictException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ConflictException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="innerException"></param>
public ConflictException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ConflictException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 46.362903 | 178 | 0.675248 | [
"Apache-2.0"
] | DetlefGolze/aws-sdk-net | sdk/src/Services/Synthetics/Generated/Model/ConflictException.cs | 5,749 | C# |
using Microsoft.AspNetCore.Mvc;
using SeturDirectoryApp.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace SeturDirectoryApp.Services.Users
{
public interface IUserService
{
Task<string> GetUserById(int id);
Task<ActionResult<User>> GetUser(int id);
Task<User> GetUserDetails(int id);
}
}
| 20.631579 | 49 | 0.729592 | [
"Apache-2.0"
] | hilalyldrm/assessment-backend-net | SeturDirectoryApp/SeturDirectoryApp/Services/Users/IUserService.cs | 394 | C# |
public class Jedi
{
public int Id { get; set; }
public string Name { get; set; }
public string Side { get; set; }
} | 21.166667 | 36 | 0.598425 | [
"MIT"
] | Jadhielv/GraphQL-in-NETCore | App/Jedi.cs | 127 | C# |
//------------------------------------------------------------
// Game Framework v3.x
// Copyright © 2013-2018 Jiang Yin. All rights reserved.
// Homepage: http://gameframework.cn/
// Feedback: mailto:jiangyin@gameframework.cn
//------------------------------------------------------------
namespace GameFramework
{
public static partial class Utility
{
public static partial class Profiler
{
/// <summary>
/// 性能分析辅助器接口。
/// </summary>
public interface IProfilerHelper
{
/// <summary>
/// 开始采样。
/// </summary>
/// <param name="name">采样名称。</param>
void BeginSample(string name);
/// <summary>
/// 结束采样。
/// </summary>
void EndSample();
}
}
}
}
| 27.242424 | 63 | 0.395996 | [
"MIT"
] | MiKiNuo/GameFramework | GameFramework/Utility/Profiler.IProfilerHelper.cs | 952 | C# |
// Copyright © Matt Jones and Contributors. Licensed under the MIT Licence (MIT). See LICENCE.md in the repository root for more information.
using System;
using System.Runtime.InteropServices;
namespace NovelRT.Interop
{
public static unsafe partial class NovelRT
{
[DllImport("NovelRT.Interop", ExactSpelling = true)]
[return: NativeTypeName("NrtRuntimeServiceHandle")]
public static extern IntPtr Nrt_RuntimeService_create();
[DllImport("NovelRT.Interop", ExactSpelling = true)]
public static extern NrtResult Nrt_RuntimeService_destroy([NativeTypeName("NrtRuntimeServiceHandle")] IntPtr service);
[DllImport("NovelRT.Interop", ExactSpelling = true)]
public static extern NrtResult Nrt_RuntimeService_initialise([NativeTypeName("NrtRuntimeServiceHandle")] IntPtr service);
[DllImport("NovelRT.Interop", ExactSpelling = true)]
public static extern NrtResult Nrt_RuntimeService_tearDown([NativeTypeName("NrtRuntimeServiceHandle")] IntPtr service);
[DllImport("NovelRT.Interop", ExactSpelling = true)]
public static extern NrtResult Nrt_RuntimeService_freeObject([NativeTypeName("NrtRuntimeServiceHandle")] IntPtr service, [NativeTypeName("intptr_t")] nint obj);
[DllImport("NovelRT.Interop", ExactSpelling = true)]
public static extern NrtResult Nrt_RuntimeService_freeString([NativeTypeName("NrtRuntimeServiceHandle")] IntPtr service, [NativeTypeName("const char *")] sbyte* str);
[DllImport("NovelRT.Interop", ExactSpelling = true)]
public static extern NrtResult Nrt_RuntimeService_getInkService([NativeTypeName("NrtRuntimeServiceHandle")] IntPtr service, [NativeTypeName("NrtInkServiceHandle *")] IntPtr* outputInkService);
}
}
| 53.727273 | 200 | 0.753525 | [
"MIT"
] | BanalityOfSeeking/NovelRT | src/NovelRT.DotNet/Interop/DotNet/NovelRT.cs | 1,774 | C# |
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.Diagnostics;
namespace D2L.CodeStyle.Analyzers.ApiUsage.ContentPhysicalPaths {
[DiagnosticAnalyzer( LanguageNames.CSharp )]
internal sealed class ILegacyLpContentDirectoryFullNameAnalyzer : DiagnosticAnalyzer {
private const string TypeName = "D2L.Files.ILegacyLpContentDirectory";
private const string PropertyName = "FullName";
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(
PhysicalPathPropertyAnalysis.DiagnosticDescriptor
);
public override void Initialize( AnalysisContext context ) {
PhysicalPathPropertyAnalysis analysis = new PhysicalPathPropertyAnalysis(
TypeName,
PropertyName,
WhitelistedTypes
);
analysis.Initialize( context );
}
/// <summary>
/// A list of types that already contain ILegacyLpContentDirectory.FullName references
/// </summary>
private static readonly IImmutableSet<string> WhitelistedTypes = ImmutableHashSet.Create<string>(
"D2L.Files.Content.ContentDirectory",
"D2L.Files.Compression.Archive",
"D2L.Files.Content.ContentFile",
"D2L.Files.FileSystemObjectNameUtility",
"D2L.Files.FileSystemObjectWrapper",
"D2L.PlatformTools.ManageFiles.BusinessLayer.Domain.DirectoryEntityInternal",
"D2L.PlatformTools.ManageFiles.BusinessLayer.Domain.FileSystemManager",
"D2L.PlatformTools.ManageFiles.Webpages.Isf.MyComputer",
"D2L.Lms.CourseExport.CoursePackage",
"D2L.Integration.LOR_LE.Webpages.CourseBuilder.Rpcs"
);
}
}
| 36.466667 | 102 | 0.764168 | [
"Apache-2.0"
] | ciss1995/D2L.CodeStyle | src/D2L.CodeStyle.Analyzers/ApiUsage/ContentPhysicalPaths/ILegacyLpContentDirectoryFullNameAnalyzer.cs | 1,643 | C# |
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace TicketCore.Models.Knowledgebase
{
[Table("KnowledgebaseType")]
public class KnowledgebaseType
{
[Key]
public int KnowledgebaseTypeId { get; set; }
public string KnowledgebaseTypeName { get; set; }
}
} | 26.846154 | 57 | 0.716332 | [
"MIT"
] | pankajkadam333/VueTicket | VueTicketCore/TicketCore.Models/Knowledgebase/KnowledgebaseType.cs | 351 | C# |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
namespace NinjaLab.Redis
{
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
}
}
}
| 26.045455 | 70 | 0.706806 | [
"CC0-1.0"
] | Ninja-Labs/azure | 3. Redis Cache/HOL.A/NinjaLab.Redis/NinjaLab.Redis/Global.asax.cs | 575 | C# |
namespace wuks
{
using System;
using System.ServiceProcess;
using System.Timers;
internal class WindowsUpdateKiller : IDisposable
{
private readonly Timer timer;
public WindowsUpdateKiller()
{
this.timer = new Timer();
this.timer.Interval = TimeSpan.FromSeconds(60).TotalMilliseconds;
this.timer.Elapsed += this.OnTimerElapsed;
this.timer.AutoReset = true;
this.timer.Enabled = true;
}
private void OnTimerElapsed(object sender, ElapsedEventArgs e)
{
this.TryStopWindowsUpdateService();
}
private void TryStopWindowsUpdateService()
{
try
{
var serviceController = new ServiceController("Windows Update");
if (serviceController.Status == ServiceControllerStatus.Running)
{
serviceController.Stop();
EventLogger.Info("Stopped Windows Update service");
}
}
catch (Exception exception)
{
EventLogger.Error("Failed to stop Windows Update service", exception);
}
}
public void Dispose()
{
this.timer.Dispose();
}
}
} | 27.666667 | 89 | 0.53991 | [
"MIT"
] | micrak/WUKS | src/wuks/wuks/WindowsUpdateKiller.cs | 1,330 | C# |
using System;
using System.Collections.Generic;
using System.Drawing;
using NComputerVision.Common;
using NComputerVision.DataStructures;
using NComputerVision.GraphicsLib;
namespace NComputerVision.Contour
{
/// <summary>
/// foamliu, 2009/02/11, Hough变换找直线段.
///
/// </summary>
public class Hough_FitLine
{
public int ThetaStep { get; set; }
public double ThetaStepRadian { get; set; }
public double DStep { get; set; }
public double Gradient_Threshold { get; set; }
public double Value_Threshold { get; set; }
public double GrayValue_Threshold { get; set; }
public int NumberOfLines_Threshold { get; set; }
private int[][] m_mat;
private int m_width, m_height;
private int m_maxD;
private List<Point>[,] m_ptList;
//private double[][] m_ihist;
private double[][] m_ihist;
public double[][] IHist
{
get { return m_ihist; }
}
public Hough_FitLine(int[][] mat)
{
this.m_mat = mat;
this.m_width = m_mat.Length;
this.m_height = m_mat[0].Length;
m_maxD = System.Convert.ToInt32(System.Math.Sqrt(m_width * m_width + m_height * m_height));
int thetaLen = (int)(360 / ThetaStep) + 1;
int dLen = (int)(m_maxD / DStep) + 1;
// 累加数组
//this.m_ihist = Util.BuildMat(dLen, thetaLen);
this.m_ihist = Util.BuildMat(dLen, thetaLen);
// 对此累加器有贡献的点的集合
this.m_ptList = new List<Point>[dLen, thetaLen];
// 参数的默认值
this.ThetaStep = NcvGlobals.ThetaStep;
this.ThetaStepRadian = NcvGlobals.ThetaStepRadian;
this.DStep = NcvGlobals.DStep;
this.Gradient_Threshold = NcvGlobals.Gradient_Threshold;
this.Value_Threshold = NcvGlobals.Value_Threshold;
this.GrayValue_Threshold = NcvGlobals.GrayValue_Threshold;
this.NumberOfLines_Threshold = NcvGlobals.NumberOfLines_Threshold;
}
/// <summary>
/// foamliu, 2009/02/12, 将灰度图像中的直线段加到累加器中.
///
/// </summary>
public void AccumulateLines()
{
double theta; // 角度
int thetaQ; // 量化角度
double d; // 距离
int dQ; // 量化距离
for (int y = 0; y < m_height; y++)
{
for (int x = 0; x < m_width; x++)
{
if (m_mat[x][y] < GrayValue_Threshold)
continue;
// foamliu, 2009/02/11, 先实现一个简单版本 -- Hough 变换找直线.
//
// thetaQ为允许的细分值
for (thetaQ = 0; thetaQ < 360 / ThetaStep; thetaQ++)
{
// 根据量化的thetaQ计算角度, 为弧度在以下区间: [0, 2PI].
theta = thetaQ * ThetaStep * NcvGlobals.RadianPerDegree;
// 根据thetaQ计算d
d = /*Math.Abs(*/x * System.Math.Cos(theta) - y * System.Math.Sin(theta)/*)*/;
// d<0 表示不存在通过x,y角度为这样theta的直线.
if (d < 0) continue;
// 四舍五入为允许的单元值
dQ = Convert.ToInt32(d / DStep);
// 相应的累加器单元增加
m_ihist[dQ][thetaQ] += m_mat[x][y];
if (m_ptList[dQ, thetaQ] == null)
m_ptList[dQ, thetaQ] = new List<Point>();
m_ptList[dQ, thetaQ].Add(new Point(x, y));
}
}
}
}
/// <summary>
/// foamliu, 2009/02/11, 找线.
///
/// </summary>
/// <param name="IHIST"></param>
public List<LineSegment> FindLines()
{
List<LineSegment> segs = new List<LineSegment>();
int thetaQ, dQ;
double v = PickGreatestBin(out thetaQ, out dQ);
int numberOfLines = 0;
while (v > Value_Threshold && numberOfLines++ < NumberOfLines_Threshold)
{
// foamliu, 2009/02/11, 先实现一个简单版本.
List<Point> ptList = m_ptList[thetaQ, dQ];
ptList.Sort(new PointComparer());
int number = ptList.Count;
LineSegment seg = new LineSegment();
seg.Pair.Add(ptList[0]);
seg.Pair.Add(ptList[number - 1]);
segs.Add(seg);
m_ihist[thetaQ][dQ] = 0;
v = PickGreatestBin(out thetaQ, out dQ);
}
return segs;
}
/// <summary>
/// foamliu, 2009/02/11, 返回最大累加器的值.
///
/// </summary>
/// <param name="A"></param>
/// <param name="thetaQ"></param>
/// <param name="dQ"></param>
private double PickGreatestBin(out int thetaQ, out int dQ)
{
int width = m_ihist.Length;
int height = m_ihist[0].Length;
double max = double.MinValue;
thetaQ = 0;
dQ = 0;
for (int d = 0; d < height; d++)
{
for (int theta = 0; theta < width; theta++)
{
if (max < m_ihist[theta][d])
{
max = m_ihist[theta][d];
thetaQ = theta;
dQ = d;
}
}
}
return max;
}
}
}
| 32.670455 | 104 | 0.455652 | [
"Apache-2.0"
] | foamliu/NComputerVision | src/NComputerVision/Contour/Hough_FitLine.cs | 6,062 | C# |
/*******************************************************************************
* Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use
* this file except in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file.
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
* *****************************************************************************
*
* AWS Tools for Windows (TM) PowerShell (TM)
*
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Management.Automation;
using System.Text;
using Amazon.PowerShell.Common;
using Amazon.Runtime;
using Amazon.GameLift;
using Amazon.GameLift.Model;
namespace Amazon.PowerShell.Cmdlets.GML
{
/// <summary>
/// Retrieves the details for FlexMatch matchmaking rule sets. You can request all existing
/// rule sets for the Region, or provide a list of one or more rule set names. When requesting
/// multiple items, use the pagination parameters to retrieve results as a set of sequential
/// pages. If successful, a rule set is returned for each requested name.
///
///
/// <para><b>Learn more</b></para><ul><li><para><a href="https://docs.aws.amazon.com/gamelift/latest/flexmatchguide/match-rulesets.html">Build
/// a Rule Set</a></para></li></ul><para><b>Related operations</b></para><ul><li><para><a>CreateMatchmakingConfiguration</a></para></li><li><para><a>DescribeMatchmakingConfigurations</a></para></li><li><para><a>UpdateMatchmakingConfiguration</a></para></li><li><para><a>DeleteMatchmakingConfiguration</a></para></li><li><para><a>CreateMatchmakingRuleSet</a></para></li><li><para><a>DescribeMatchmakingRuleSets</a></para></li><li><para><a>ValidateMatchmakingRuleSet</a></para></li><li><para><a>DeleteMatchmakingRuleSet</a></para></li></ul><br/><br/>This cmdlet automatically pages all available results to the pipeline - parameters related to iteration are only needed if you want to manually control the paginated output. To disable autopagination, use -NoAutoIteration.
/// </summary>
[Cmdlet("Get", "GMLMatchmakingRuleSet")]
[OutputType("Amazon.GameLift.Model.MatchmakingRuleSet")]
[AWSCmdlet("Calls the Amazon GameLift Service DescribeMatchmakingRuleSets API operation.", Operation = new[] {"DescribeMatchmakingRuleSets"}, SelectReturnType = typeof(Amazon.GameLift.Model.DescribeMatchmakingRuleSetsResponse))]
[AWSCmdletOutput("Amazon.GameLift.Model.MatchmakingRuleSet or Amazon.GameLift.Model.DescribeMatchmakingRuleSetsResponse",
"This cmdlet returns a collection of Amazon.GameLift.Model.MatchmakingRuleSet objects.",
"The service call response (type Amazon.GameLift.Model.DescribeMatchmakingRuleSetsResponse) can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack."
)]
public partial class GetGMLMatchmakingRuleSetCmdlet : AmazonGameLiftClientCmdlet, IExecutor
{
#region Parameter Name
/// <summary>
/// <para>
/// <para>A list of one or more matchmaking rule set names to retrieve details for. (Note: The
/// rule set name is different from the optional "name" field in the rule set body.) You
/// can use either the rule set name or ARN value. </para>
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[Alias("Names")]
public System.String[] Name { get; set; }
#endregion
#region Parameter Limit
/// <summary>
/// <para>
/// <para>The maximum number of results to return. Use this parameter with <code>NextToken</code>
/// to get results as a set of sequential pages.</para>
/// </para>
/// <para>
/// <br/><b>Note:</b> In AWSPowerShell and AWSPowerShell.NetCore this parameter is used to limit the total number of items returned by the cmdlet.
/// <br/>In AWS.Tools this parameter is simply passed to the service to specify how many items should be returned by each service call.
/// <br/>Pipe the output of this cmdlet into Select-Object -First to terminate retrieving data pages early and control the number of items returned.
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
[Alias("MaxItems")]
public int? Limit { get; set; }
#endregion
#region Parameter NextToken
/// <summary>
/// <para>
/// <para>A token that indicates the start of the next sequential page of results. Use the token
/// that is returned with a previous call to this operation. To start at the beginning
/// of the result set, do not specify a value.</para>
/// </para>
/// <para>
/// <br/><b>Note:</b> This parameter is only used if you are manually controlling output pagination of the service API call.
/// <br/>In order to manually control output pagination, use '-NextToken $null' for the first call and '-NextToken $AWSHistory.LastServiceResponse.NextToken' for subsequent calls.
/// </para>
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public System.String NextToken { get; set; }
#endregion
#region Parameter Select
/// <summary>
/// Use the -Select parameter to control the cmdlet output. The default value is 'RuleSets'.
/// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.GameLift.Model.DescribeMatchmakingRuleSetsResponse).
/// Specifying the name of a property of type Amazon.GameLift.Model.DescribeMatchmakingRuleSetsResponse will result in that property being returned.
/// Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value.
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public string Select { get; set; } = "RuleSets";
#endregion
#region Parameter NoAutoIteration
/// <summary>
/// By default the cmdlet will auto-iterate and retrieve all results to the pipeline by performing multiple
/// service calls. If set, the cmdlet will retrieve only the next 'page' of results using the value of NextToken
/// as the start point.
/// </summary>
[System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)]
public SwitchParameter NoAutoIteration { get; set; }
#endregion
protected override void ProcessRecord()
{
base.ProcessRecord();
var context = new CmdletContext();
// allow for manipulation of parameters prior to loading into context
PreExecutionContextLoad(context);
if (ParameterWasBound(nameof(this.Select)))
{
context.Select = CreateSelectDelegate<Amazon.GameLift.Model.DescribeMatchmakingRuleSetsResponse, GetGMLMatchmakingRuleSetCmdlet>(Select) ??
throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select));
}
context.Limit = this.Limit;
#if !MODULAR
if (ParameterWasBound(nameof(this.Limit)) && this.Limit.HasValue)
{
WriteWarning("AWSPowerShell and AWSPowerShell.NetCore use the Limit parameter to limit the total number of items returned by the cmdlet." +
" This behavior is obsolete and will be removed in a future version of these modules. Pipe the output of this cmdlet into Select-Object -First to terminate" +
" retrieving data pages early and control the number of items returned. AWS.Tools already implements the new behavior of simply passing Limit" +
" to the service to specify how many items should be returned by each service call.");
}
#endif
if (this.Name != null)
{
context.Name = new List<System.String>(this.Name);
}
context.NextToken = this.NextToken;
// allow further manipulation of loaded context prior to processing
PostExecutionContextLoad(context);
var output = Execute(context) as CmdletOutput;
ProcessOutput(output);
}
#region IExecutor Members
#if MODULAR
public object Execute(ExecutorContext context)
{
var cmdletContext = context as CmdletContext;
var useParameterSelect = this.Select.StartsWith("^");
// create request and set iteration invariants
var request = new Amazon.GameLift.Model.DescribeMatchmakingRuleSetsRequest();
if (cmdletContext.Limit != null)
{
request.Limit = AutoIterationHelpers.ConvertEmitLimitToServiceTypeInt32(cmdletContext.Limit.Value);
}
if (cmdletContext.Name != null)
{
request.Names = cmdletContext.Name;
}
// Initialize loop variant and commence piping
var _nextToken = cmdletContext.NextToken;
var _userControllingPaging = this.NoAutoIteration.IsPresent || ParameterWasBound(nameof(this.NextToken));
var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);
do
{
request.NextToken = _nextToken;
CmdletOutput output;
try
{
var response = CallAWSServiceOperation(client, request);
object pipelineOutput = null;
if (!useParameterSelect)
{
pipelineOutput = cmdletContext.Select(response, this);
}
output = new CmdletOutput
{
PipelineOutput = pipelineOutput,
ServiceResponse = response
};
_nextToken = response.NextToken;
}
catch (Exception e)
{
output = new CmdletOutput { ErrorResponse = e };
}
ProcessOutput(output);
} while (!_userControllingPaging && AutoIterationHelpers.HasValue(_nextToken));
if (useParameterSelect)
{
WriteObject(cmdletContext.Select(null, this));
}
return null;
}
#else
public object Execute(ExecutorContext context)
{
var cmdletContext = context as CmdletContext;
var useParameterSelect = this.Select.StartsWith("^");
// create request and set iteration invariants
var request = new Amazon.GameLift.Model.DescribeMatchmakingRuleSetsRequest();
if (cmdletContext.Name != null)
{
request.Names = cmdletContext.Name;
}
// Initialize loop variants and commence piping
System.String _nextToken = null;
int? _emitLimit = null;
int _retrievedSoFar = 0;
if (AutoIterationHelpers.HasValue(cmdletContext.NextToken))
{
_nextToken = cmdletContext.NextToken;
}
if (cmdletContext.Limit.HasValue)
{
// The service has a maximum page size of 10. If the user has
// asked for more items than page max, and there is no page size
// configured, we rely on the service ignoring the set maximum
// and giving us 10 items back. If a page size is set, that will
// be used to configure the pagination.
// We'll make further calls to satisfy the user's request.
_emitLimit = cmdletContext.Limit;
}
var _userControllingPaging = this.NoAutoIteration.IsPresent || ParameterWasBound(nameof(this.NextToken));
var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint);
do
{
request.NextToken = _nextToken;
if (_emitLimit.HasValue)
{
int correctPageSize = Math.Min(10, _emitLimit.Value);
request.Limit = AutoIterationHelpers.ConvertEmitLimitToInt32(correctPageSize);
}
CmdletOutput output;
try
{
var response = CallAWSServiceOperation(client, request);
object pipelineOutput = null;
if (!useParameterSelect)
{
pipelineOutput = cmdletContext.Select(response, this);
}
output = new CmdletOutput
{
PipelineOutput = pipelineOutput,
ServiceResponse = response
};
int _receivedThisCall = response.RuleSets.Count;
_nextToken = response.NextToken;
_retrievedSoFar += _receivedThisCall;
if (_emitLimit.HasValue)
{
_emitLimit -= _receivedThisCall;
}
}
catch (Exception e)
{
if (_retrievedSoFar == 0 || !_emitLimit.HasValue)
{
output = new CmdletOutput { ErrorResponse = e };
}
else
{
break;
}
}
ProcessOutput(output);
} while (!_userControllingPaging && AutoIterationHelpers.HasValue(_nextToken) && (!_emitLimit.HasValue || _emitLimit.Value >= 1));
if (useParameterSelect)
{
WriteObject(cmdletContext.Select(null, this));
}
return null;
}
#endif
public ExecutorContext CreateContext()
{
return new CmdletContext();
}
#endregion
#region AWS Service Operation Call
private Amazon.GameLift.Model.DescribeMatchmakingRuleSetsResponse CallAWSServiceOperation(IAmazonGameLift client, Amazon.GameLift.Model.DescribeMatchmakingRuleSetsRequest request)
{
Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon GameLift Service", "DescribeMatchmakingRuleSets");
try
{
#if DESKTOP
return client.DescribeMatchmakingRuleSets(request);
#elif CORECLR
return client.DescribeMatchmakingRuleSetsAsync(request).GetAwaiter().GetResult();
#else
#error "Unknown build edition"
#endif
}
catch (AmazonServiceException exc)
{
var webException = exc.InnerException as System.Net.WebException;
if (webException != null)
{
throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
}
throw;
}
}
#endregion
internal partial class CmdletContext : ExecutorContext
{
public int? Limit { get; set; }
public List<System.String> Name { get; set; }
public System.String NextToken { get; set; }
public System.Func<Amazon.GameLift.Model.DescribeMatchmakingRuleSetsResponse, GetGMLMatchmakingRuleSetCmdlet, object> Select { get; set; } =
(response, cmdlet) => response.RuleSets;
}
}
}
| 47.019444 | 774 | 0.580079 | [
"Apache-2.0"
] | joshongithub/aws-tools-for-powershell | modules/AWSPowerShell/Cmdlets/GameLift/Basic/Get-GMLMatchmakingRuleSet-Cmdlet.cs | 16,927 | C# |
// This file was automatically generated and may be regenerated at any
// time. To ensure any changes are retained, modify the tool with any segment/component/group/field name
// or type changes.
namespace Machete.HL7Schema.V26
{
using HL7;
/// <summary>
/// RSP_Z86_QUERY_RESPONSE (Group) -
/// </summary>
public interface RSP_Z86_QUERY_RESPONSE :
HL7V26Layout
{
/// <summary>
/// PATIENT
/// </summary>
Layout<RSP_Z86_PATIENT> Patient { get; }
/// <summary>
/// COMMON_ORDER
/// </summary>
LayoutList<RSP_Z86_COMMON_ORDER> CommonOrder { get; }
}
} | 27.25 | 105 | 0.61315 | [
"Apache-2.0"
] | AreebaAroosh/Machete | src/Machete.HL7Schema/Generated/V26/Groups/RSP_Z86_QUERY_RESPONSE.cs | 654 | C# |
// Copyright (c) Nate McMaster.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
using System.ComponentModel.DataAnnotations;
using McMaster.Extensions.CommandLineUtils;
namespace SubcommandSample
{
/// <summary>
/// This example is meant to show you how to structure a console application that uses
/// the nested subcommands with options and arguments that vary between each subcommand.
/// </summary>
[Command(ThrowOnUnexpectedArgument = false)]
class Program
{
public static int Main(string[] args) => CommandLineApplication.Execute<Program>(args);
[Argument(0), Range(1, 3)]
public int? Option { get; set; }
public string[] RemainingArgs { get; set; }
private int OnExecute()
{
const string prompt = @"Which example would you like to run?
1 - Fake Git
2 - Fake Docker
3 - Fake npm
> ";
if (!Option.HasValue)
{
Option = Prompt.GetInt(prompt);
}
if (RemainingArgs == null || RemainingArgs.Length == 0)
{
var args = Prompt.GetString("Enter some arguments >");
RemainingArgs = args.Split(' ');
}
switch (Option)
{
case 1:
return CommandLineApplication.Execute<Git>(RemainingArgs);
case 2:
return CommandLineApplication.Execute<Docker>(RemainingArgs);
case 3:
return Npm.Main(RemainingArgs);
default:
Console.Error.WriteLine("Unknown option");
return 1;
}
}
}
}
| 31 | 111 | 0.568195 | [
"Apache-2.0"
] | adamskt/CommandLineUtils | samples/Subcommands/Program.cs | 1,769 | C# |
//-----------------------------------------------------------------------
// <copyright company="Nuclei">
// Copyright 2013 Nuclei. Licensed under the Apache License, Version 2.0.
// </copyright>
//-----------------------------------------------------------------------
using System;
namespace Nuclei.Communication.Protocol
{
/// <summary>
/// The default <see cref="ISerializeObjectData"/> implementation that simply passes the input object through as
/// the serialized object.
/// </summary>
internal sealed class NonTransformingObjectSerializer : ISerializeObjectData
{
/// <summary>
/// Gets the object type that the current serializer can serialize.
/// </summary>
public Type TypeToSerialize
{
get
{
return typeof(object);
}
}
/// <summary>
/// Turns the data provided by the input object into a serialized form that can be transmitted to the remote endpoint.
/// </summary>
/// <param name="input">The input data.</param>
/// <returns>An object that contains the serialized data.</returns>
public object Serialize(object input)
{
return input;
}
/// <summary>
/// Turns the serialized data into an object that can be used by the current endpoint.
/// </summary>
/// <param name="data">The serialized data.</param>
/// <returns>An object that can be used by the current endpoint.</returns>
public object Deserialize(object data)
{
return data;
}
}
}
| 34.571429 | 127 | 0.524203 | [
"Apache-2.0"
] | thenucleus/nuclei.communication | src/nuclei.communication/Protocol/NonTransformingObjectSerializer.cs | 1,696 | C# |
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace s4d_biomedicina.Apresentacao
{
public partial class frmPacientesEnderecos : Form
{
private int idPaciente;
private string comando;
public frmPacientesEnderecos(int idPaciente)
{
InitializeComponent();
this.idPaciente = idPaciente;
}
private void frmPacientesEnderecos_Load(object sender, EventArgs e)
{
AtualizarTabela();
}
public void AtualizarTabela()
{
Modelo.Controle controle = new Modelo.Controle();
dgvPacientesEnderecos.DataSource = controle.ListaPacienteEnderecos(this.idPaciente);
}
private void btnNovo_Click(object sender, EventArgs e)
{
this.comando = "inserir";
frmPacientesEnderecosManter frmPacientesEnderecosManter = new frmPacientesEnderecosManter(this.comando, idPaciente);
frmPacientesEnderecosManter.ShowDialog();
AtualizarTabela();
}
private void btnEditar_Click(object sender, EventArgs e)
{
int idEndereco;
this.comando = "editar";
try
{
idEndereco = Convert.ToInt32(dgvPacientesEnderecos.CurrentRow.Cells[0].Value);
frmPacientesEnderecosManter frmPacientesEnderecosManter = new frmPacientesEnderecosManter(this.comando, idEndereco);
frmPacientesEnderecosManter.ShowDialog();
AtualizarTabela();
}
catch (Exception)
{
MessageBox.Show("Selecione um item da Tabela");
}
}
}
}
| 28.861538 | 132 | 0.622068 | [
"MIT"
] | System4Developers/CsharpTeste | Aplicacao/s4d_biomedicina/s4d_biomedicina/Apresentacao/frmPacientesEnderecos.cs | 1,878 | C# |
using System;
namespace ExpressMapper.Tests.Model.ViewModels
{
public class MailViewModel : IEquatable<MailViewModel>
{
public string From { get; set; }
public ContactViewModel Contact { get; set; }
public ContactViewModel StandardContactVM { get; set; }
public bool Equals(MailViewModel other)
{
return From == other.From && (Contact == null || Contact.Equals(other.Contact) && (StandardContactVM == null || StandardContactVM.Equals(other.StandardContactVM)));
}
}
}
| 31.166667 | 177 | 0.636364 | [
"Apache-2.0"
] | Enegia/ExpressMapper | ExpressMapper.Tests.Model/ViewModels/MailViewModel.cs | 563 | C# |
// ------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by SpecFlow (http://www.specflow.org/).
// SpecFlow Version:3.0.0.0
// SpecFlow Generator Version:3.0.0.0
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
#region Designer generated code
#pragma warning disable
namespace BddTraining.Specs.Features.Files
{
using TechTalk.SpecFlow;
[System.CodeDom.Compiler.GeneratedCodeAttribute("TechTalk.SpecFlow", "3.0.0.0")]
[System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[TechTalk.SpecRun.FeatureAttribute("Calculate Import Duty", Description="\tIn order to comply with regulatory requirements\r\n\tAs a store owner\r\n\tI want to b" +
"e able to calculate import duty for products", SourceFile="Files\\Calculate Import Duty.feature", SourceLine=0)]
public partial class CalculateImportDutyFeature
{
private TechTalk.SpecFlow.ITestRunner testRunner;
#line 1 "Calculate Import Duty.feature"
#line hidden
[TechTalk.SpecRun.FeatureInitialize()]
public virtual void FeatureSetup()
{
testRunner = TechTalk.SpecFlow.TestRunnerManager.GetTestRunner();
TechTalk.SpecFlow.FeatureInfo featureInfo = new TechTalk.SpecFlow.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Calculate Import Duty", "\tIn order to comply with regulatory requirements\r\n\tAs a store owner\r\n\tI want to b" +
"e able to calculate import duty for products", ProgrammingLanguage.CSharp, ((string[])(null)));
testRunner.OnFeatureStart(featureInfo);
}
[TechTalk.SpecRun.FeatureCleanup()]
public virtual void FeatureTearDown()
{
testRunner.OnFeatureEnd();
testRunner = null;
}
public virtual void TestInitialize()
{
}
[TechTalk.SpecRun.ScenarioCleanup()]
public virtual void ScenarioTearDown()
{
testRunner.OnScenarioEnd();
}
public virtual void ScenarioInitialize(TechTalk.SpecFlow.ScenarioInfo scenarioInfo)
{
testRunner.OnScenarioInitialize(scenarioInfo);
}
public virtual void ScenarioStart()
{
testRunner.OnScenarioStart();
}
public virtual void ScenarioCleanup()
{
testRunner.CollectScenarioErrors();
}
public virtual void CalculateImportDuty(string name, string price, string isimported, string importduty, string notes, string[] exampleTags)
{
TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Calculate Import Duty", null, exampleTags);
#line 6
this.ScenarioInitialize(scenarioInfo);
this.ScenarioStart();
#line 7
testRunner.Given(string.Format("I have the following product: {0}, ${1}, {2}", name, price, isimported), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given ");
#line 8
testRunner.When("I calculate Import duty for the product", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "When ");
#line 9
testRunner.Then(string.Format("The import duty returned should be equal to ${0}", importduty), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Then ");
#line hidden
this.ScenarioCleanup();
}
[TechTalk.SpecRun.ScenarioAttribute("Calculate Import Duty, \"TV\"", SourceLine=11)]
public virtual void CalculateImportDuty_TV()
{
#line 6
this.CalculateImportDuty("\"TV\"", "1000", "true", "50", "5% import duty for imported products", ((string[])(null)));
#line hidden
}
[TechTalk.SpecRun.ScenarioAttribute("Calculate Import Duty, \"Furniture\"", SourceLine=11)]
public virtual void CalculateImportDuty_Furniture()
{
#line 6
this.CalculateImportDuty("\"Furniture\"", "500", "false", "0", "no import duty for non imported products", ((string[])(null)));
#line hidden
}
[TechTalk.SpecRun.TestRunCleanup()]
public virtual void TestRunCleanup()
{
TechTalk.SpecFlow.TestRunnerManager.GetTestRunner().OnTestRunEnd();
}
}
}
#pragma warning restore
#endregion
| 40.339286 | 254 | 0.625941 | [
"MIT"
] | frankwang0/BddTraining | ShoppingCart/BddTraining.Specs.Features/Files/Calculate Import Duty.feature.cs | 4,518 | C# |
/*
Copyright 2017 Enkhbold Nyamsuren (http://www.bcogs.net , http://www.bcogs.info/)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SeriousRPG.Model.DrawingNS;
namespace SeriousRPG.Model.MapNS
{
internal class ForegroundOverlay : GenericLayer
{
#region Constants
internal const int LAYER_TYPE = 3;
internal const string LAYER_NAME = "Foreground Overlay";
#endregion Constants
#region Constructors
internal ForegroundOverlay(int rowNum, int colNum)
: base(ForegroundOverlay.LAYER_TYPE, ForegroundOverlay.LAYER_NAME, rowNum, colNum) {
}
#endregion Constructors
#region ImageObject methods
// [TODO]
#endregion ImageObject methods
#region Layer methods
override internal void Act() { }
override internal void Draw(ICanvas canvas) {
throw new NotImplementedException(); // [TODO]
}
override internal void Resize(int rowNum, int colNum) {
throw new NotImplementedException(); // [TODO]
}
override internal bool CanResize(int rowNum, int colNum) {
throw new NotImplementedException(); // [TODO]
}
#endregion Layer methods
}
}
| 26.681159 | 96 | 0.681695 | [
"Apache-2.0"
] | E-Nyamsuren/SeriousRPG-Proof-of-Concept | SeriousRPG/Model/MapNS/ForegroundOverlay.cs | 1,843 | C# |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace ControlSystemsProjectSFG.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ControlSystemsProjectSFG.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}
| 39.944444 | 191 | 0.591794 | [
"MIT"
] | emam95/signalFlowGraphSolver | ControlSystemsProjectSFG/ControlSystemsProjectSFG/Properties/Resources.Designer.cs | 2,878 | C# |
// Generated class v2.50.0.0, don't modify
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
namespace NHtmlUnit.Html
{
public partial class HtmlNav : NHtmlUnit.Html.HtmlElement, NHtmlUnit.W3C.Dom.INode, NHtmlUnit.W3C.Dom.IElement
{
static HtmlNav()
{
ObjectWrapper.RegisterWrapperCreator((com.gargoylesoftware.htmlunit.html.HtmlNav o) =>
new HtmlNav(o));
}
public HtmlNav(com.gargoylesoftware.htmlunit.html.HtmlNav wrappedObject) : base(wrappedObject) {}
public new com.gargoylesoftware.htmlunit.html.HtmlNav WObj
{
get { return (com.gargoylesoftware.htmlunit.html.HtmlNav)WrappedObject; }
}
}
}
| 26.266667 | 114 | 0.681472 | [
"Apache-2.0"
] | HtmlUnit/NHtmlUnit | app/NHtmlUnit/Generated/Html/HtmlNav.cs | 788 | C# |
using System;
namespace Charlotte
{
// Token: 0x02000176 RID: 374
public class ProtectCustomTinRoot
{
// Token: 0x06001D11 RID: 7441 RVA: 0x00044621 File Offset: 0x00042821
public int AvoidCompleteFontaineResolution()
{
return ProtectCustomTinRoot.MonitorUnknownJarnsaxaExport++;
}
// Token: 0x06001D12 RID: 7442 RVA: 0x00044630 File Offset: 0x00042830
public void FallbackDuplicateBismuthGeneration(int DeployStandaloneHassiumNetwork)
{
ProtectCustomTinRoot.MonitorUnknownJarnsaxaExport = DeployStandaloneHassiumNetwork;
}
// Token: 0x06001D13 RID: 7443 RVA: 0x00044638 File Offset: 0x00042838
public int MergeNextBlossomRepository()
{
return this.StopUnavailableTelluriumBundle() - ProtectCustomTinRoot.ContinueUnableSamariumMemory;
}
// Token: 0x06001D14 RID: 7444 RVA: 0x00044648 File Offset: 0x00042848
public void ScanUnavailableRougeRecord(int ExtractNormalNeptuniumTerms, int FindPreviousSeaborgiumRecord, int WrapNullBeautyDescription, int DisableSecureHydrogenPreference, int PreparePreviousWindyCheckbox, int AggregateCorrectFlamingoSignature)
{
var OccurSuccessfulRhodiumNode = new <>f__AnonymousType201<int, int>[]
{
new
{
ReferenceAlternativeDreamLoop = ExtractNormalNeptuniumTerms,
GetAnonymousGreipIssue = DisableSecureHydrogenPreference
},
new
{
ReferenceAlternativeDreamLoop = FindPreviousSeaborgiumRecord,
GetAnonymousGreipIssue = DisableSecureHydrogenPreference
},
new
{
ReferenceAlternativeDreamLoop = WrapNullBeautyDescription,
GetAnonymousGreipIssue = DisableSecureHydrogenPreference
}
};
this.ResetDeprecatedSunnySecurity(new ProtectCustomTinRoot.SignAutomaticMagicalAuthentication
{
RequestAvailableSunState = ExtractNormalNeptuniumTerms,
NoteUndefinedSkathiStartup = FindPreviousSeaborgiumRecord,
BrowseDuplicatePasiphaeTypo = WrapNullBeautyDescription
});
if (OccurSuccessfulRhodiumNode[0].ReferenceAlternativeDreamLoop == DisableSecureHydrogenPreference)
{
this.ProcessBooleanDiaEncoding(OccurSuccessfulRhodiumNode[0].GetAnonymousGreipIssue);
}
if (OccurSuccessfulRhodiumNode[1].ReferenceAlternativeDreamLoop == PreparePreviousWindyCheckbox)
{
this.ProcessBooleanDiaEncoding(OccurSuccessfulRhodiumNode[1].GetAnonymousGreipIssue);
}
if (OccurSuccessfulRhodiumNode[2].ReferenceAlternativeDreamLoop == AggregateCorrectFlamingoSignature)
{
this.ProcessBooleanDiaEncoding(OccurSuccessfulRhodiumNode[2].GetAnonymousGreipIssue);
}
}
// Token: 0x06001D15 RID: 7445 RVA: 0x000446EB File Offset: 0x000428EB
public void ResetDeprecatedSunnySecurity(ProtectCustomTinRoot.SignAutomaticMagicalAuthentication HackSpecificEpimetheusStep)
{
ProtectCustomTinRoot.RestoreAvailableManganeseTimeout = HackSpecificEpimetheusStep;
}
// Token: 0x06001D16 RID: 7446 RVA: 0x000446F3 File Offset: 0x000428F3
public void ProcessBooleanDiaEncoding(int SeeLocalTomorrowTable)
{
if (SeeLocalTomorrowTable != this.ProvisionAbstractKariRow())
{
this.FallbackDuplicateBismuthGeneration(SeeLocalTomorrowTable);
return;
}
this.ChooseInternalNickelMemory(SeeLocalTomorrowTable);
}
// Token: 0x06001D17 RID: 7447 RVA: 0x0004470D File Offset: 0x0004290D
public void ResizeMaximumLedaAlgorithm()
{
this.FallbackDuplicateBismuthGeneration(0);
}
// Token: 0x06001D18 RID: 7448 RVA: 0x00044716 File Offset: 0x00042916
public int CompileUsefulHafniumFont()
{
if (this.DeclareMissingSpondeLock() != 0)
{
return ProtectCustomTinRoot.DisableEmptyArchePopup;
}
return 1;
}
// Token: 0x06001D19 RID: 7449 RVA: 0x00044727 File Offset: 0x00042927
public int ViewFollowingUmbrielCopyright()
{
if (this.CompileUsefulHafniumFont() != 1)
{
return ProtectCustomTinRoot.ExitManualKaleField;
}
return 0;
}
// Token: 0x06001D1A RID: 7450 RVA: 0x00044739 File Offset: 0x00042939
public void LaunchApplicableHaumeaRemoval(int ExtractNormalNeptuniumTerms, int FindPreviousSeaborgiumRecord, int WrapNullBeautyDescription)
{
this.ScanUnavailableRougeRecord(ExtractNormalNeptuniumTerms, FindPreviousSeaborgiumRecord, WrapNullBeautyDescription, this.CopyExtraLivermoriumNavigation().RequestAvailableSunState, this.CopyExtraLivermoriumNavigation().NoteUndefinedSkathiStartup, this.CopyExtraLivermoriumNavigation().BrowseDuplicatePasiphaeTypo);
}
// Token: 0x06001D1B RID: 7451 RVA: 0x00044765 File Offset: 0x00042965
public int DeclareMissingSpondeLock()
{
return ProtectCustomTinRoot.CompileMultiplePhobosResult;
}
// Token: 0x06001D1C RID: 7452 RVA: 0x0004476C File Offset: 0x0004296C
public void ChooseInternalNickelMemory(int ExtractNormalNeptuniumTerms)
{
this.OverrideExistingPriestessBody(ExtractNormalNeptuniumTerms, this.AvoidCompleteFontaineResolution());
}
// Token: 0x06001D1D RID: 7453 RVA: 0x0004477B File Offset: 0x0004297B
public ProtectCustomTinRoot.SignAutomaticMagicalAuthentication CopyExtraLivermoriumNavigation()
{
return ProtectCustomTinRoot.RestoreAvailableManganeseTimeout;
}
// Token: 0x06001D1E RID: 7454 RVA: 0x00044782 File Offset: 0x00042982
public void OverrideExistingPriestessBody(int ExtractNormalNeptuniumTerms, int FindPreviousSeaborgiumRecord)
{
this.LaunchApplicableHaumeaRemoval(ExtractNormalNeptuniumTerms, FindPreviousSeaborgiumRecord, this.AvoidCompleteFontaineResolution());
}
// Token: 0x06001D1F RID: 7455 RVA: 0x00044792 File Offset: 0x00042992
public void ThrowBlankLanthanumAllocation()
{
this.ChooseInternalNickelMemory(this.AvoidCompleteFontaineResolution());
}
// Token: 0x06001D20 RID: 7456 RVA: 0x000447A0 File Offset: 0x000429A0
public int StopUnavailableTelluriumBundle()
{
return this.CommitExtraAntheOccurrence() - ProtectCustomTinRoot.AcceptAutomaticCoperniciumAuthor;
}
// Token: 0x06001D21 RID: 7457 RVA: 0x000447AE File Offset: 0x000429AE
public int CommitExtraAntheOccurrence()
{
if (this.ViewFollowingUmbrielCopyright() != 0)
{
return ProtectCustomTinRoot.EditStaticMagnesiumQueue;
}
return 1;
}
// Token: 0x06001D22 RID: 7458 RVA: 0x000447BF File Offset: 0x000429BF
public int ProvisionAbstractKariRow()
{
return ProtectCustomTinRoot.MonitorUnknownJarnsaxaExport;
}
// Token: 0x04000C6B RID: 3179
public static ProtectCustomTinRoot.SignAutomaticMagicalAuthentication RestoreAvailableManganeseTimeout;
// Token: 0x04000C6C RID: 3180
public static int ExitManualKaleField;
// Token: 0x04000C6D RID: 3181
public static int EditStaticMagnesiumQueue;
// Token: 0x04000C6E RID: 3182
public static int ContinueUnableSamariumMemory;
// Token: 0x04000C6F RID: 3183
public static int MonitorUnknownJarnsaxaExport;
// Token: 0x04000C70 RID: 3184
public static int DisableEmptyArchePopup;
// Token: 0x04000C71 RID: 3185
public static int AcceptAutomaticCoperniciumAuthor;
// Token: 0x04000C72 RID: 3186
public static int CompileMultiplePhobosResult;
// Token: 0x020005D2 RID: 1490
public class SignAutomaticMagicalAuthentication
{
// Token: 0x04001E6D RID: 7789
public int RequestAvailableSunState;
// Token: 0x04001E6E RID: 7790
public int NoteUndefinedSkathiStartup;
// Token: 0x04001E6F RID: 7791
public int BrowseDuplicatePasiphaeTypo;
}
}
}
| 35.616505 | 318 | 0.793376 | [
"MIT"
] | soleil-taruto/Hatena | a20201226/Decompile/Confused_01/Elsa20200001/ProtectCustomTinRoot.cs | 7,339 | C# |
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace DotNet45Test
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
}
}
}
| 15 | 51 | 0.613333 | [
"MIT"
] | scionwest/RoslynCompilationIssue | DotNet45Test/UnitTest1.cs | 227 | C# |
using TGXFExampleApp.ViewModels.SecondDay;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace TGXFExampleApp.Views.SecondDay
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class StepperPage : ContentPage
{
StepperViewModel _viewModel;
public StepperPage ()
{
InitializeComponent ();
NavigationPage.SetHasNavigationBar(this, false);
BindingContext = _viewModel = new StepperViewModel();
}
protected override void OnAppearing()
{
base.OnAppearing();
_viewModel?.OnAppearing();
}
}
} | 24.84 | 65 | 0.663446 | [
"MIT"
] | FSalas06/TecGurusXamarin | Dev/TGXFExampleApp/TGXFExampleApp/Views/SecondDay/StepperPage.xaml.cs | 623 | C# |
namespace FakeItEasy.Tests.Core
{
using FakeItEasy.Core;
using FakeItEasy.Creation;
using NUnit.Framework;
[TestFixture]
public class DefaultFakeManagerAccessorTests
{
private DefaultFakeManagerAccessor accessor;
private FakeManager.Factory managerFactory;
private FakeManager managerToReturnFromFactory;
[SetUp]
public void SetUp()
{
this.managerFactory = () => this.managerToReturnFromFactory;
this.managerToReturnFromFactory = A.Fake<FakeManager>();
this.accessor = new DefaultFakeManagerAccessor(this.managerFactory);
}
[Test]
public void Should_set_manager_from_proxy_to_tag()
{
// Arrange
var proxy = A.Fake<ITaggable>();
// Act
this.accessor.AttachFakeManagerToProxy(typeof(object), proxy, A.Dummy<ICallInterceptedEventRaiser>());
// Assert
Assert.That(proxy.Tag, Is.EqualTo(this.managerToReturnFromFactory));
}
[Test]
public void Should_set_proxy_and_event_raiser_to_manager()
{
// Arrange
this.managerToReturnFromFactory = A.Fake<FakeManager>();
var proxy = A.Dummy<ITaggable>();
var eventRaiser = A.Dummy<ICallInterceptedEventRaiser>();
// Act
this.accessor.AttachFakeManagerToProxy(typeof(object), proxy, eventRaiser);
// Assert
A.CallTo(() => this.managerToReturnFromFactory.AttachProxy(typeof(object), proxy, eventRaiser)).MustHaveHappened();
}
[Test]
public void Should_get_fake_manager_from_tag()
{
// Arrange
var proxy = A.Fake<ITaggable>();
proxy.Tag = this.managerToReturnFromFactory;
// Act
var result = this.accessor.GetFakeManager(proxy);
// Assert
Assert.That(result, Is.SameAs(this.managerToReturnFromFactory));
}
[Test]
public void Should_be_null_guarded()
{
// Arrange
// Act
// Assert
NullGuardedConstraint.Assert(() =>
this.accessor.GetFakeManager(A.Fake<ITaggable>()));
}
[Test]
public void Should_be_able_to_set_and_retrieve_fake_manager_from_non_taggable_objects()
{
// Arrange
var proxy = new object();
this.accessor.AttachFakeManagerToProxy(typeof(object), proxy, A.Dummy<ICallInterceptedEventRaiser>());
// Act
var manager = this.accessor.GetFakeManager(proxy);
// Assert
Assert.That(manager, Is.SameAs(this.managerToReturnFromFactory));
}
[Test]
public void Should_fail_when_getting_manager_from_object_where_a_manager_has_not_been_attached()
{
// Arrange
var proxy = A.Fake<ITaggable>();
proxy.Tag = null;
// Act
// Assert
Assert.That(
() => this.accessor.GetFakeManager(proxy),
Throws.ArgumentException.With.Message.EqualTo("The specified object is not recognized as a fake object."));
}
}
}
| 31.231481 | 128 | 0.571302 | [
"MIT"
] | patrik-hagne/FakeItEasy | Source/FakeItEasy.Tests/Core/DefaultFakeManagerAccessorTests.cs | 3,373 | C# |
using System;
using System.Collections.Generic;
namespace Glicko2
{
public class RatingCalculator
{
private const double DefaultRating = 1500.0;
private const double DefaultDeviation = 350;
private const double DefaultVolatility = 0.06;
private const double DefaultTau = 0.75;
private const double Multiplier = 173.7178;
private const double ConvergenceTolerance = 0.000001;
private readonly double _tau; // constrains volatility over time
private readonly double _defaultVolatility;
/// <summary>
/// Standard constructor, taking default values for volatility and tau.
/// </summary>
public RatingCalculator()
{
_tau = DefaultTau;
_defaultVolatility = DefaultVolatility;
}
/// <summary>
/// Constructor allowing you to specify values for volatility and tau.
/// </summary>
/// <param name="initVolatility"></param>
/// <param name="tau"></param>
public RatingCalculator(double initVolatility, double tau)
{
_defaultVolatility = initVolatility;
_tau = tau;
}
/// <summary>
/// Run through all players within a resultset and calculate their new ratings.
///
/// Players within the resultset who did not compete during the rating period
/// will have see their deviation increase (in line with Prof Glickman's paper).
///
/// Note that this method will clear the results held in the association result set.
/// </summary>
/// <param name="results"></param>
public void UpdateRatings(RatingPeriodResults results)
{
foreach (var player in results.GetParticipants())
{
if (results.GetResults(player).Count > 0)
{
CalculateNewRating(player, results.GetResults(player));
}
else
{
// if a player does not compete during the rating period, then only Step 6 applies.
// the player's rating and volatility parameters remain the same but deviation increases
player.SetWorkingRating(player.GetGlicko2Rating());
player.SetWorkingRatingDeviation(CalculateNewRatingDeviation(player.GetGlicko2RatingDeviation(),
player.GetVolatility()));
player.SetWorkingVolatility(player.GetVolatility());
}
}
// now iterate through the participants and confirm their new ratings
foreach (var player in results.GetParticipants())
{
player.FinaliseRating();
}
// lastly, clear the result set down in anticipation of the next rating period
results.Clear();
}
/// <summary>
/// This is the function processing described in step 5 of Glickman's paper.
/// </summary>
/// <param name="player"></param>
/// <param name="results"></param>
private void CalculateNewRating(Rating player, IList<Result> results)
{
var phi = player.GetGlicko2RatingDeviation();
var sigma = player.GetVolatility();
var a = Math.Log(Math.Pow(sigma, 2));
var delta = Delta(player, results);
var v = V(player, results);
// step 5.2 - set the initial values of the iterative algorithm to come in step 5.4
var A = a;
double B;
if (Math.Pow(delta, 2) > Math.Pow(phi, 2) + v)
{
B = Math.Log(Math.Pow(delta, 2) - Math.Pow(phi, 2) - v);
}
else
{
double k = 1;
B = a - (k*Math.Abs(_tau));
while (F(B, delta, phi, v, a, _tau) < 0)
{
k++;
B = a - (k*Math.Abs(_tau));
}
}
// step 5.3
var fA = F(A, delta, phi, v, a, _tau);
var fB = F(B, delta, phi, v, a, _tau);
// step 5.4
while (Math.Abs(B - A) > ConvergenceTolerance)
{
var C = A + (((A - B)*fA)/(fB - fA));
var fC = F(C, delta, phi, v, a, _tau);
if (fC*fB < 0)
{
A = B;
fA = fB;
}
else
{
fA = fA/2.0;
}
B = C;
fB = fC;
}
var newSigma = Math.Exp(A/2.0);
player.SetWorkingVolatility(newSigma);
// Step 6
var phiStar = CalculateNewRatingDeviation(phi, newSigma);
// Step 7
var newPhi = 1.0/Math.Sqrt((1.0/Math.Pow(phiStar, 2)) + (1.0/v));
// note that the newly calculated rating values are stored in a "working" area in the Rating object
// this avoids us attempting to calculate subsequent participants' ratings against a moving target
player.SetWorkingRating(
player.GetGlicko2Rating()
+ (Math.Pow(newPhi, 2)*OutcomeBasedRating(player, results)));
player.SetWorkingRatingDeviation(newPhi);
player.IncrementNumberOfResults(results.Count);
}
private static double F(double x, double delta, double phi, double v, double a, double tau)
{
return (Math.Exp(x)*(Math.Pow(delta, 2) - Math.Pow(phi, 2) - v - Math.Exp(x))/
(2.0*Math.Pow(Math.Pow(phi, 2) + v + Math.Exp(x), 2))) -
((x - a)/Math.Pow(tau, 2));
}
/// <summary>
/// This is the first sub-function of step 3 of Glickman's paper.
/// </summary>
/// <param name="deviation"></param>
/// <returns></returns>
private static double G(double deviation)
{
return 1.0/(Math.Sqrt(1.0 + (3.0*Math.Pow(deviation, 2)/Math.Pow(Math.PI, 2))));
}
/// <summary>
/// This is the second sub-function of step 3 of Glickman's paper.
/// </summary>
/// <param name="playerRating"></param>
/// <param name="opponentRating"></param>
/// <param name="opponentDeviation"></param>
/// <returns></returns>
private static double E(double playerRating, double opponentRating, double opponentDeviation)
{
return 1.0/(1.0 + Math.Exp(-1.0*G(opponentDeviation)*(playerRating - opponentRating)));
}
/// <summary>
/// This is the main function in step 3 of Glickman's paper.
/// </summary>
/// <param name="player"></param>
/// <param name="results"></param>
/// <returns></returns>
private static double V(Rating player, IEnumerable<Result> results)
{
var v = 0.0;
foreach (var result in results)
{
v = v + (
(Math.Pow(G(result.GetOpponent(player).GetGlicko2RatingDeviation()), 2))
*E(player.GetGlicko2Rating(),
result.GetOpponent(player).GetGlicko2Rating(),
result.GetOpponent(player).GetGlicko2RatingDeviation())
*(1.0 - E(player.GetGlicko2Rating(),
result.GetOpponent(player).GetGlicko2Rating(),
result.GetOpponent(player).GetGlicko2RatingDeviation())
));
}
return Math.Pow(v, -1);
}
/// <summary>
/// This is a formula as per step 4 of Glickman's paper.
/// </summary>
/// <param name="player"></param>
/// <param name="results"></param>
/// <returns></returns>
private double Delta(Rating player, IList<Result> results)
{
return V(player, results)*OutcomeBasedRating(player, results);
}
/// <summary>
/// This is a formula as per step 4 of Glickman's paper.
/// </summary>
/// <param name="player"></param>
/// <param name="results"></param>
/// <returns>Expected rating based on outcomes.</returns>
private static double OutcomeBasedRating(Rating player, IEnumerable<Result> results)
{
double outcomeBasedRating = 0;
foreach (var result in results)
{
outcomeBasedRating = outcomeBasedRating
+ (G(result.GetOpponent(player).GetGlicko2RatingDeviation())
*(result.GetScore(player) - E(
player.GetGlicko2Rating(),
result.GetOpponent(player).GetGlicko2Rating(),
result.GetOpponent(player).GetGlicko2RatingDeviation()))
);
}
return outcomeBasedRating;
}
/// <summary>
/// This is the formula defined in step 6. It is also used for players
/// who have not competed during the rating period.
/// </summary>
/// <param name="phi"></param>
/// <param name="sigma"></param>
/// <returns>New rating deviation.</returns>
private static double CalculateNewRatingDeviation(double phi, double sigma)
{
return Math.Sqrt(Math.Pow(phi, 2) + Math.Pow(sigma, 2));
}
/// <summary>
/// Converts from the value used within the algorithm to a rating in
/// the same range as traditional Elo et al
/// </summary>
/// <param name="rating">Rating in Glicko-2 scla.e</param>
/// <returns>Rating in Glicko scale.</returns>
public double ConvertRatingToOriginalGlickoScale(double rating)
{
return ((rating*Multiplier) + DefaultRating);
}
/// <summary>
/// Converts from a rating in the same range as traditional Elo
/// et al to the value used within the algorithm.
/// </summary>
/// <param name="rating">Rating in Glicko scale.</param>
/// <returns>Rating in Glicko-2 scale.</returns>
public double ConvertRatingToGlicko2Scale(double rating)
{
return ((rating - DefaultRating)/Multiplier);
}
/// <summary>
/// Converts from the value used within the algorithm to a
/// rating deviation in the same range as traditional Elo et al.
/// </summary>
/// <param name="ratingDeviation">Rating deviation </param>
/// <returns></returns>
public double ConvertRatingDeviationToOriginalGlickoScale(double ratingDeviation)
{
return (ratingDeviation*Multiplier);
}
/// <summary>
/// Converts from a rating deviation in the same range as traditional Elo et al
/// to the value used within the algorithm.
/// </summary>
/// <param name="ratingDeviation">Rating deviation in Glicko scale.</param>
/// <returns>Rating deviation in Glicko-2 scale.</returns>
public double ConvertRatingDeviationToGlicko2Scale(double ratingDeviation)
{
return (ratingDeviation/Multiplier);
}
public double GetDefaultRating()
{
return DefaultRating;
}
public double GetDefaultVolatility()
{
return _defaultVolatility;
}
public double GetDefaultRatingDeviation()
{
return DefaultDeviation;
}
}
}
| 37.670927 | 116 | 0.530744 | [
"MIT"
] | Fr0sZ/Discord-PUG-Bot-.Net | DiscordPugBot/Glicko2/RatingCalculator.cs | 11,793 | C# |
using System.Reflection;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Sample.Plugin3")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Sample.Plugin3")]
[assembly: AssemblyCopyright("Copyright © 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
//In order to begin building localizable applications, set
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
//inside a <PropertyGroup>. For example, if you are using US english
//in your source files, set the <UICulture> to en-US. Then uncomment
//the NeutralResourceLanguage attribute below. Update the "en-US" in
//the line below to match the UICulture setting in the project file.
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
[assembly:ThemeInfo(
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
//(used if a resource is not found in the page,
// or application resource dictionaries)
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
//(used if a resource is not found in the page,
// app, or any theme specific resource dictionaries)
)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 41.839286 | 96 | 0.719163 | [
"MIT"
] | hippieZhou/MEF.Sample | src/mvvmlight/Sample.Plugin3/Properties/AssemblyInfo.cs | 2,346 | C# |
using System;
using System.IO;
using System.Collections;
using System.Collections.Generic;
namespace ClickHouse.Ado.Impl.ATG.Insert {
internal class Token {
public int kind; // token kind
public int pos; // token position in bytes in the source text (starting at 0)
public int charPos; // token position in characters in the source text (starting at 0)
public int col; // token column (starting at 1)
public int line; // token line (starting at 1)
public string val; // token value
public Token next; // ML 2005-03-11 Tokens are kept in linked list
}
//-----------------------------------------------------------------------------------
// Buffer
//-----------------------------------------------------------------------------------
internal class Buffer {
// This Buffer supports the following cases:
// 1) seekable stream (file)
// a) whole stream in buffer
// b) part of stream in buffer
// 2) non seekable stream (network, console)
public const int EOF = char.MaxValue + 1;
const int MIN_BUFFER_LENGTH = 1024; // 1KB
const int MAX_BUFFER_LENGTH = MIN_BUFFER_LENGTH * 64; // 64KB
byte[] buf; // input buffer
int bufStart; // position of first byte in buffer relative to input stream
int bufLen; // length of buffer
int fileLen; // length of input stream (may change if the stream is no file)
int bufPos; // current position in buffer
Stream stream; // input stream (seekable)
bool isUserStream; // was the stream opened by the user?
public Buffer (Stream s, bool isUserStream) {
stream = s; this.isUserStream = isUserStream;
if (stream.CanSeek) {
fileLen = (int) stream.Length;
bufLen = Math.Min(fileLen, MAX_BUFFER_LENGTH);
bufStart = Int32.MaxValue; // nothing in the buffer so far
} else {
fileLen = bufLen = bufStart = 0;
}
buf = new byte[(bufLen>0) ? bufLen : MIN_BUFFER_LENGTH];
if (fileLen > 0) Pos = 0; // setup buffer to position 0 (start)
else bufPos = 0; // index 0 is already after the file, thus Pos = 0 is invalid
if (bufLen == fileLen && stream.CanSeek) Close();
}
protected Buffer(Buffer b) { // called in UTF8Buffer constructor
buf = b.buf;
bufStart = b.bufStart;
bufLen = b.bufLen;
fileLen = b.fileLen;
bufPos = b.bufPos;
stream = b.stream;
// keep destructor from closing the stream
b.stream = null;
isUserStream = b.isUserStream;
}
~Buffer() { Close(); }
protected void Close() {
if (!isUserStream && stream != null) {
#if !CLASSIC_FRAMEWORK
stream.Dispose();
#else
stream.Close();
#endif
stream = null;
}
}
public virtual int Read () {
if (bufPos < bufLen) {
return buf[bufPos++];
} else if (Pos < fileLen) {
Pos = Pos; // shift buffer start to Pos
return buf[bufPos++];
} else if (stream != null && !stream.CanSeek && ReadNextStreamChunk() > 0) {
return buf[bufPos++];
} else {
return EOF;
}
}
public int Peek () {
int curPos = Pos;
int ch = Read();
Pos = curPos;
return ch;
}
// beg .. begin, zero-based, inclusive, in byte
// end .. end, zero-based, exclusive, in byte
public string GetString (int beg, int end) {
int len = 0;
char[] buf = new char[end - beg];
int oldPos = Pos;
Pos = beg;
while (Pos < end) buf[len++] = (char) Read();
Pos = oldPos;
return new String(buf, 0, len);
}
public int Pos {
get { return bufPos + bufStart; }
set {
if (value >= fileLen && stream != null && !stream.CanSeek) {
// Wanted position is after buffer and the stream
// is not seek-able e.g. network or console,
// thus we have to read the stream manually till
// the wanted position is in sight.
while (value >= fileLen && ReadNextStreamChunk() > 0);
}
if (value < 0 || value > fileLen) {
throw new FatalError("buffer out of bounds access, position: " + value);
}
if (value >= bufStart && value < bufStart + bufLen) { // already in buffer
bufPos = value - bufStart;
} else if (stream != null) { // must be swapped in
stream.Seek(value, SeekOrigin.Begin);
bufLen = stream.Read(buf, 0, buf.Length);
bufStart = value; bufPos = 0;
} else {
// set the position to the end of the file, Pos will return fileLen.
bufPos = fileLen - bufStart;
}
}
}
// Read the next chunk of bytes from the stream, increases the buffer
// if needed and updates the fields fileLen and bufLen.
// Returns the number of bytes read.
private int ReadNextStreamChunk() {
int free = buf.Length - bufLen;
if (free == 0) {
// in the case of a growing input stream
// we can neither seek in the stream, nor can we
// foresee the maximum length, thus we must adapt
// the buffer size on demand.
byte[] newBuf = new byte[bufLen * 2];
Array.Copy(buf, newBuf, bufLen);
buf = newBuf;
free = bufLen;
}
int read = stream.Read(buf, bufLen, free);
if (read > 0) {
fileLen = bufLen = (bufLen + read);
return read;
}
// end of stream reached
return 0;
}
}
//-----------------------------------------------------------------------------------
// UTF8Buffer
//-----------------------------------------------------------------------------------
internal class UTF8Buffer: Buffer {
public UTF8Buffer(Buffer b): base(b) {}
public override int Read() {
int ch;
do {
ch = base.Read();
// until we find a utf8 start (0xxxxxxx or 11xxxxxx)
} while ((ch >= 128) && ((ch & 0xC0) != 0xC0) && (ch != EOF));
if (ch < 128 || ch == EOF) {
// nothing to do, first 127 chars are the same in ascii and utf8
// 0xxxxxxx or end of file character
} else if ((ch & 0xF0) == 0xF0) {
// 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
int c1 = ch & 0x07; ch = base.Read();
int c2 = ch & 0x3F; ch = base.Read();
int c3 = ch & 0x3F; ch = base.Read();
int c4 = ch & 0x3F;
ch = (((((c1 << 6) | c2) << 6) | c3) << 6) | c4;
} else if ((ch & 0xE0) == 0xE0) {
// 1110xxxx 10xxxxxx 10xxxxxx
int c1 = ch & 0x0F; ch = base.Read();
int c2 = ch & 0x3F; ch = base.Read();
int c3 = ch & 0x3F;
ch = (((c1 << 6) | c2) << 6) | c3;
} else if ((ch & 0xC0) == 0xC0) {
// 110xxxxx 10xxxxxx
int c1 = ch & 0x1F; ch = base.Read();
int c2 = ch & 0x3F;
ch = (c1 << 6) | c2;
}
return ch;
}
}
//-----------------------------------------------------------------------------------
// Scanner
//-----------------------------------------------------------------------------------
internal class Scanner {
const char EOL = '\n';
const int eofSym = 0; /* pdt */
const int maxT = 18;
const int noSym = 18;
char valCh; // current input character (for token.val)
public Buffer buffer; // scanner buffer
Token t; // current token
int ch; // current input character
int pos; // byte position of current character
int charPos; // position by unicode characters starting with 0
int col; // column number of current character
int line; // line number of current character
int oldEols; // EOLs that appeared in a comment;
static readonly Dictionary<int,int> start; // maps first token character to start state
Token tokens; // list of tokens already peeked (first token is a dummy)
Token pt; // current peek token
char[] tval = new char[128]; // text of current token
int tlen; // length of current token
static Scanner() {
start = new Dictionary<int,int>(128);
for (int i = 95; i <= 95; ++i) start[i] = 14;
for (int i = 97; i <= 122; ++i) start[i] = 14;
for (int i = 48; i <= 57; ++i) start[i] = 10;
start[96] = 3;
start[34] = 5;
start[39] = 7;
start[46] = 26;
for (int i = 43; i <= 43; ++i) start[i] = 9;
for (int i = 45; i <= 45; ++i) start[i] = 9;
start[44] = 18;
start[64] = 19;
start[58] = 20;
start[91] = 21;
start[93] = 22;
start[40] = 23;
start[41] = 24;
start[59] = 25;
start[Buffer.EOF] = -1;
}
public Scanner (string fileName) {
try {
Stream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
buffer = new Buffer(stream, false);
Init();
} catch (IOException) {
throw new FatalError("Cannot open file " + fileName);
}
}
public Scanner (Stream s) {
buffer = new UTF8Buffer(new Buffer(s, true));
Init();
}
void Init() {
pos = -1; line = 1; col = 0; charPos = -1;
oldEols = 0;
NextCh();
if (ch == 0xEF) { // check optional byte order mark for UTF-8
NextCh(); int ch1 = ch;
NextCh(); int ch2 = ch;
if (ch1 != 0xBB || ch2 != 0xBF) {
throw new FatalError(String.Format("illegal byte order mark: EF {0,2:X} {1,2:X}", ch1, ch2));
}
buffer = new UTF8Buffer(buffer); col = 0; charPos = -1;
NextCh();
}
pt = tokens = new Token(); // first token is a dummy
}
void NextCh() {
if (oldEols > 0) { ch = EOL; oldEols--; }
else {
pos = buffer.Pos;
// buffer reads unicode chars, if UTF8 has been detected
ch = buffer.Read(); col++; charPos++;
// replace isolated '\r' by '\n' in order to make
// eol handling uniform across Windows, Unix and Mac
if (ch == '\r' && buffer.Peek() != '\n') ch = EOL;
if (ch == EOL) { line++; col = 0; }
}
if (ch != Buffer.EOF) {
valCh = (char) ch;
ch = char.ToLower((char) ch);
}
}
void AddCh() {
if (tlen >= tval.Length) {
char[] newBuf = new char[2 * tval.Length];
Array.Copy(tval, 0, newBuf, 0, tval.Length);
tval = newBuf;
}
if (ch != Buffer.EOF) {
tval[tlen++] = valCh;
NextCh();
}
}
void CheckLiteral() {
switch (t.val.ToLower()) {
case "insert": t.kind = 6; break;
case "values": t.kind = 7; break;
case "into": t.kind = 8; break;
default: break;
}
}
Token NextToken() {
while (ch == ' ' ||
ch >= 9 && ch <= 10 || ch == 13
) NextCh();
int recKind = noSym;
int recEnd = pos;
t = new Token();
t.pos = pos; t.col = col; t.line = line; t.charPos = charPos;
int state;
if (start.ContainsKey(ch)) { state = (int) start[ch]; }
else { state = 0; }
tlen = 0; AddCh();
switch (state) {
case -1: { t.kind = eofSym; break; } // NextCh already done
case 0: {
if (recKind != noSym) {
tlen = recEnd - t.pos;
SetScannerBehindT();
}
t.kind = recKind; break;
} // NextCh already done
case 1:
if (ch == '_' || ch >= 'a' && ch <= 'z') {AddCh(); goto case 2;}
else {goto case 0;}
case 2:
recEnd = pos; recKind = 1;
if (ch >= '0' && ch <= '9' || ch == '_' || ch >= 'a' && ch <= 'z') {AddCh(); goto case 2;}
else {t.kind = 1; t.val = new String(tval, 0, tlen); CheckLiteral(); return t;}
case 3:
if (ch <= '!' || ch >= '#' && ch <= '&' || ch >= '(' && ch <= '[' || ch >= ']' && ch <= '_' || ch >= 'a' && ch <= 65535) {AddCh(); goto case 3;}
else if (ch == '`') {AddCh(); goto case 4;}
else if (ch == 92) {AddCh(); goto case 15;}
else {goto case 0;}
case 4:
{t.kind = 2; break;}
case 5:
if (ch <= '!' || ch >= '#' && ch <= '&' || ch >= '(' && ch <= '[' || ch >= ']' && ch <= '_' || ch >= 'a' && ch <= 65535) {AddCh(); goto case 5;}
else if (ch == '"') {AddCh(); goto case 6;}
else if (ch == 92) {AddCh(); goto case 16;}
else {goto case 0;}
case 6:
{t.kind = 3; break;}
case 7:
if (ch <= '!' || ch >= '#' && ch <= '&' || ch >= '(' && ch <= '[' || ch >= ']' && ch <= '_' || ch >= 'a' && ch <= 65535) {AddCh(); goto case 7;}
else if (ch == 39) {AddCh(); goto case 8;}
else if (ch == 92) {AddCh(); goto case 17;}
else {goto case 0;}
case 8:
{t.kind = 4; break;}
case 9:
if (ch >= '0' && ch <= '9') {AddCh(); goto case 10;}
else if (ch == '.') {AddCh(); goto case 12;}
else {goto case 0;}
case 10:
recEnd = pos; recKind = 5;
if (ch >= '0' && ch <= '9') {AddCh(); goto case 10;}
else if (ch == '.') {AddCh(); goto case 11;}
else {t.kind = 5; break;}
case 11:
recEnd = pos; recKind = 5;
if (ch >= '0' && ch <= '9') {AddCh(); goto case 11;}
else {t.kind = 5; break;}
case 12:
if (ch >= '0' && ch <= '9') {AddCh(); goto case 13;}
else {goto case 0;}
case 13:
recEnd = pos; recKind = 5;
if (ch >= '0' && ch <= '9') {AddCh(); goto case 13;}
else {t.kind = 5; break;}
case 14:
recEnd = pos; recKind = 1;
if (ch >= '0' && ch <= '9' || ch == '_' || ch >= 'a' && ch <= 'z') {AddCh(); goto case 14;}
else if (ch == '.') {AddCh(); goto case 1;}
else {t.kind = 1; t.val = new String(tval, 0, tlen); CheckLiteral(); return t;}
case 15:
if (ch == 39 || ch == 92 || ch == '`') {AddCh(); goto case 3;}
else {goto case 0;}
case 16:
if (ch == 39 || ch == 92) {AddCh(); goto case 5;}
else {goto case 0;}
case 17:
if (ch == '"' || ch == 39 || ch == 92 || ch == '`') {AddCh(); goto case 7;}
else {goto case 0;}
case 18:
{t.kind = 10; break;}
case 19:
{t.kind = 11; break;}
case 20:
{t.kind = 12; break;}
case 21:
{t.kind = 13; break;}
case 22:
{t.kind = 14; break;}
case 23:
{t.kind = 15; break;}
case 24:
{t.kind = 16; break;}
case 25:
{t.kind = 17; break;}
case 26:
recEnd = pos; recKind = 9;
if (ch >= '0' && ch <= '9') {AddCh(); goto case 13;}
else {t.kind = 9; break;}
}
t.val = new String(tval, 0, tlen);
return t;
}
private void SetScannerBehindT() {
buffer.Pos = t.pos;
NextCh();
line = t.line; col = t.col; charPos = t.charPos;
for (int i = 0; i < tlen; i++) NextCh();
}
// get the next token (possibly a token already seen during peeking)
public Token Scan () {
if (tokens.next == null) {
return NextToken();
} else {
pt = tokens = tokens.next;
return tokens;
}
}
// peek for the next token, ignore pragmas
public Token Peek () {
do {
if (pt.next == null) {
pt.next = NextToken();
}
pt = pt.next;
} while (pt.kind > maxT); // skip pragmas
return pt;
}
// make sure that peeking starts at the current scan position
public void ResetPeek () { pt = tokens; }
} // end Scanner
} | 29.574153 | 148 | 0.546887 | [
"MIT"
] | Fallenyasha/ClickHouse-Net | ClickHouse.Ado/Impl/ATG/Insert/Scanner.cs | 13,959 | C# |
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Handcards : MonoBehaviour {
public CardID cardid = CardID.none;
}
| 18.333333 | 40 | 0.775758 | [
"MIT"
] | Code-Ponys/Cardgame-0.2 | Assets/Handcards.cs | 167 | C# |
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using Pgno = System.UInt32;
using i64 = System.Int64;
using u32 = System.UInt32;
using BITVEC_TELEM = System.Byte;
namespace Community.CsharpSqlite
{
public partial class Globals
{
/*
** 2008 February 16
**
** The author disclaims copyright to this source code. In place of
** a legal notice, here is a blessing:
**
** May you do good and not evil.
** May you find forgiveness for yourself and forgive others.
** May you share freely, never taking more than you give.
**
*************************************************************************
** This file implements an object that represents a fixed-length
** bitmap. Bits are numbered starting with 1.
**
** A bitmap is used to record which pages of a database file have been
** journalled during a transaction, or which pages have the "dont-write"
** property. Usually only a few pages are meet either condition.
** So the bitmap is usually sparse and has low cardinality.
** But sometimes (for example when during a DROP of a large table) most
** or all of the pages in a database can get journalled. In those cases,
** the bitmap becomes dense with high cardinality. The algorithm needs
** to handle both cases well.
**
** The size of the bitmap is fixed when the object is created.
**
** All bits are clear when the bitmap is created. Individual bits
** may be set or cleared one at a time.
**
** Test operations are about 100 times more common that set operations.
** Clear operations are exceedingly rare. There are usually between
** 5 and 500 set operations per Bitvec object, though the number of sets can
** sometimes grow into tens of thousands or larger. The size of the
** Bitvec object is the number of pages in the database file at the
** start of a transaction, and is thus usually less than a few thousand,
** but can be as large as 2 billion for a really big database.
*************************************************************************
** Included in SQLite3 port to C#-SQLite; 2008 Noah B Hart
** C#-SQLite is an independent reimplementation of the SQLite software library
**
** SQLITE_SOURCE_ID: 2010-08-23 18:52:01 42537b60566f288167f1b5864a5435986838e3a3
**
*************************************************************************
*/
//#include "sqliteInt.h"
/* Size of the Bitvec structure in bytes. */
static int BITVEC_SZ = 512;
/* Round the union size down to the nearest pointer boundary, since that's how
** it will be aligned within the Bitvec struct. */
//#define BITVEC_USIZE (((BITVEC_SZ-(3*sizeof(u32)))/sizeof(Bitvec*))*sizeof(Bitvec*))
static int BITVEC_USIZE = ( ( ( BITVEC_SZ - ( 3 * sizeof( u32 ) ) ) / 4 ) * 4 );
/* Type of the array "element" for the bitmap representation.
** Should be a power of 2, and ideally, evenly divide into BITVEC_USIZE.
** Setting this to the "natural word" size of your CPU may improve
** performance. */
//#define BITVEC_TELEM u8
//using BITVEC_TELEM = System.Byte;
/* Size, in bits, of the bitmap element. */
//#define BITVEC_SZELEM 8
const int BITVEC_SZELEM = 8;
/* Number of elements in a bitmap array. */
//#define BITVEC_NELEM (BITVEC_USIZE/sizeof(BITVEC_TELEM))
static int BITVEC_NELEM = (int)( BITVEC_USIZE / sizeof( BITVEC_TELEM ) );
/* Number of bits in the bitmap array. */
//#define BITVEC_NBIT (BITVEC_NELEM*BITVEC_SZELEM)
static int BITVEC_NBIT = ( BITVEC_NELEM * BITVEC_SZELEM );
/* Number of u32 values in hash table. */
//#define BITVEC_NINT (BITVEC_USIZE/sizeof(u32))
static u32 BITVEC_NINT = (u32)( BITVEC_USIZE / sizeof( u32 ) );
/* Maximum number of entries in hash table before
** sub-dividing and re-hashing. */
//#define BITVEC_MXHASH (BITVEC_NINT/2)
static int BITVEC_MXHASH = (int)( BITVEC_NINT / 2 );
/* Hashing function for the aHash representation.
** Empirical testing showed that the *37 multiplier
** (an arbitrary prime)in the hash function provided
** no fewer collisions than the no-op *1. */
//#define BITVEC_HASH(X) (((X)*1)%BITVEC_NINT)
static u32 BITVEC_HASH( u32 X )
{
return (u32)( ( ( X ) * 1 ) % BITVEC_NINT );
}
static int BITVEC_NPTR = (int)( BITVEC_USIZE / 4 );//sizeof(Bitvec *));
/*
** Create a new bitmap object able to handle bits between 0 and iSize,
** inclusive. Return a pointer to the new object. Return NULL if
** malloc fails.
*/
static Bitvec sqlite3BitvecCreate( u32 iSize )
{
Bitvec p;
//Debug.Assert( sizeof(p)==BITVEC_SZ );
p = new Bitvec();//sqlite3MallocZero( sizeof(p) );
if ( p != null )
{
p.iSize = iSize;
}
return p;
}
/*
** Check to see if the i-th bit is set. Return true or false.
** If p is NULL (if the bitmap has not been created) or if
** i is out of range, then return false.
*/
static int sqlite3BitvecTest( Bitvec p, u32 i )
{
if ( p == null || i == 0 )
return 0;
if ( i > p.iSize )
return 0;
i--;
while ( p.iDivisor != 0 )
{
u32 bin = i / p.iDivisor;
i = i % p.iDivisor;
p = p.u.apSub[bin];
if ( null == p )
{
return 0;
}
}
if ( p.iSize <= BITVEC_NBIT )
{
return ( ( p.u.aBitmap[i / BITVEC_SZELEM] & ( 1 << (int)( i & ( BITVEC_SZELEM - 1 ) ) ) ) != 0 ) ? 1 : 0;
}
else
{
u32 h = BITVEC_HASH( i++ );
while ( p.u.aHash[h] != 0 )
{
if ( p.u.aHash[h] == i )
return 1;
h = ( h + 1 ) % BITVEC_NINT;
}
return 0;
}
}
/*
** Set the i-th bit. Return 0 on success and an error code if
** anything goes wrong.
**
** This routine might cause sub-bitmaps to be allocated. Failing
** to get the memory needed to hold the sub-bitmap is the only
** that can go wrong with an insert, assuming p and i are valid.
**
** The calling function must ensure that p is a valid Bitvec object
** and that the value for "i" is within range of the Bitvec object.
** Otherwise the behavior is undefined.
*/
static int sqlite3BitvecSet( Bitvec p, u32 i )
{
u32 h;
if ( p == null )
return SQLITE_OK;
Debug.Assert( i > 0 );
Debug.Assert( i <= p.iSize );
i--;
while ( ( p.iSize > BITVEC_NBIT ) && p.iDivisor != 0 )
{
u32 bin = i / p.iDivisor;
i = i % p.iDivisor;
if ( p.u.apSub[bin] == null )
{
p.u.apSub[bin] = sqlite3BitvecCreate( p.iDivisor );
//if ( p.u.apSub[bin] == null )
// return SQLITE_NOMEM;
}
p = p.u.apSub[bin];
}
if ( p.iSize <= BITVEC_NBIT )
{
p.u.aBitmap[i / BITVEC_SZELEM] |= (byte)( 1 << (int)( i & ( BITVEC_SZELEM - 1 ) ) );
return SQLITE_OK;
}
h = BITVEC_HASH( i++ );
/* if there wasn't a hash collision, and this doesn't */
/* completely fill the hash, then just add it without */
/* worring about sub-dividing and re-hashing. */
if ( 0 == p.u.aHash[h] )
{
if ( p.nSet < ( BITVEC_NINT - 1 ) )
{
goto bitvec_set_end;
}
else
{
goto bitvec_set_rehash;
}
}
/* there was a collision, check to see if it's already */
/* in hash, if not, try to find a spot for it */
do
{
if ( p.u.aHash[h] == i )
return SQLITE_OK;
h++;
if ( h >= BITVEC_NINT )
h = 0;
} while ( p.u.aHash[h] != 0 );
/* we didn't find it in the hash. h points to the first */
/* available free spot. check to see if this is going to */
/* make our hash too "full". */
bitvec_set_rehash:
if ( p.nSet >= BITVEC_MXHASH )
{
u32 j;
int rc;
u32[] aiValues = new u32[BITVEC_NINT];// = sqlite3StackAllocRaw(0, sizeof(p->u.aHash));
//if ( aiValues == null )
//{
// return SQLITE_NOMEM;
//}
//else
{
Buffer.BlockCopy( p.u.aHash, 0, aiValues, 0, aiValues.Length * ( sizeof( u32 ) ) );// memcpy(aiValues, p->u.aHash, sizeof(p->u.aHash));
p.u.apSub = new Bitvec[BITVEC_NPTR];//memset(p->u.apSub, 0, sizeof(p->u.apSub));
p.iDivisor = (u32)( ( p.iSize + BITVEC_NPTR - 1 ) / BITVEC_NPTR );
rc = sqlite3BitvecSet( p, i );
for ( j = 0; j < BITVEC_NINT; j++ )
{
if ( aiValues[j] != 0 )
rc |= sqlite3BitvecSet( p, aiValues[j] );
}
//sqlite3StackFree( null, aiValues );
return rc;
}
}
bitvec_set_end:
p.nSet++;
p.u.aHash[h] = i;
return SQLITE_OK;
}
/*
** Clear the i-th bit.
**
** pBuf must be a pointer to at least BITVEC_SZ bytes of temporary storage
** that BitvecClear can use to rebuilt its hash table.
*/
static void sqlite3BitvecClear( Bitvec p, u32 i, u32[] pBuf )
{
if ( p == null )
return;
Debug.Assert( i > 0 );
i--;
while ( p.iDivisor != 0 )
{
u32 bin = i / p.iDivisor;
i = i % p.iDivisor;
p = p.u.apSub[bin];
if ( null == p )
{
return;
}
}
if ( p.iSize <= BITVEC_NBIT )
{
p.u.aBitmap[i / BITVEC_SZELEM] &= (byte)~( ( 1 << (int)( i & ( BITVEC_SZELEM - 1 ) ) ) );
}
else
{
u32 j;
u32[] aiValues = pBuf;
Array.Copy( p.u.aHash, aiValues, p.u.aHash.Length );//memcpy(aiValues, p->u.aHash, sizeof(p->u.aHash));
p.u.aHash = new u32[aiValues.Length];// memset(p->u.aHash, 0, sizeof(p->u.aHash));
p.nSet = 0;
for ( j = 0; j < BITVEC_NINT; j++ )
{
if ( aiValues[j] != 0 && aiValues[j] != ( i + 1 ) )
{
u32 h = BITVEC_HASH( aiValues[j] - 1 );
p.nSet++;
while ( p.u.aHash[h] != 0 )
{
h++;
if ( h >= BITVEC_NINT )
h = 0;
}
p.u.aHash[h] = aiValues[j];
}
}
}
}
/*
** Destroy a bitmap object. Reclaim all memory used.
*/
static void sqlite3BitvecDestroy( ref Bitvec p )
{
if ( p == null )
return;
if ( p.iDivisor != 0 )
{
u32 i;
for ( i = 0; i < BITVEC_NPTR; i++ )
{
sqlite3BitvecDestroy( ref p.u.apSub[i] );
}
}
//sqlite3_free( ref p );
}
/*
** Return the value of the iSize parameter specified when Bitvec *p
** was created.
*/
static u32 sqlite3BitvecSize( Bitvec p )
{
return p.iSize;
}
#if !SQLITE_OMIT_BUILTIN_TEST
/*
** Let V[] be an array of unsigned characters sufficient to hold
** up to N bits. Let I be an integer between 0 and N. 0<=I<N.
** Then the following macros can be used to set, clear, or test
** individual bits within V.
*/
//#define SETBIT(V,I) V[I>>3] |= (1<<(I&7))
static void SETBIT( byte[] V, int I )
{
V[I >> 3] |= (byte)( 1 << ( I & 7 ) );
}
//#define CLEARBIT(V,I) V[I>>3] &= ~(1<<(I&7))
static void CLEARBIT( byte[] V, int I )
{
V[I >> 3] &= (byte)~( 1 << ( I & 7 ) );
}
//#define TESTBIT(V,I) (V[I>>3]&(1<<(I&7)))!=0
static int TESTBIT( byte[] V, int I )
{
return ( V[I >> 3] & ( 1 << ( I & 7 ) ) ) != 0 ? 1 : 0;
}
/*
** This routine runs an extensive test of the Bitvec code.
**
** The input is an array of integers that acts as a program
** to test the Bitvec. The integers are opcodes followed
** by 0, 1, or 3 operands, depending on the opcode. Another
** opcode follows immediately after the last operand.
**
** There are 6 opcodes numbered from 0 through 5. 0 is the
** "halt" opcode and causes the test to end.
**
** 0 Halt and return the number of errors
** 1 N S X Set N bits beginning with S and incrementing by X
** 2 N S X Clear N bits beginning with S and incrementing by X
** 3 N Set N randomly chosen bits
** 4 N Clear N randomly chosen bits
** 5 N S X Set N bits from S increment X in array only, not in bitvec
**
** The opcodes 1 through 4 perform set and clear operations are performed
** on both a Bitvec object and on a linear array of bits obtained from malloc.
** Opcode 5 works on the linear array only, not on the Bitvec.
** Opcode 5 is used to deliberately induce a fault in order to
** confirm that error detection works.
**
** At the conclusion of the test the linear array is compared
** against the Bitvec object. If there are any differences,
** an error is returned. If they are the same, zero is returned.
**
** If a memory allocation error occurs, return -1.
*/
static int sqlite3BitvecBuiltinTest( u32 sz, int[] aOp )
{
Bitvec pBitvec = null;
byte[] pV = null;
int rc = -1;
int i, nx, pc, op;
u32[] pTmpSpace;
/* Allocate the Bitvec to be tested and a linear array of
** bits to act as the reference */
pBitvec = sqlite3BitvecCreate( sz );
pV = sqlite3_malloc( (int)( sz + 7 ) / 8 + 1 );
pTmpSpace = new u32[BITVEC_SZ];// sqlite3_malloc( BITVEC_SZ );
if ( pBitvec == null || pV == null || pTmpSpace == null )
goto bitvec_end;
Array.Clear( pV, 0, (int)( sz + 7 ) / 8 + 1 );// memset( pV, 0, ( sz + 7 ) / 8 + 1 );
/* NULL pBitvec tests */
sqlite3BitvecSet( null, (u32)1 );
sqlite3BitvecClear( null, 1, pTmpSpace );
/* Run the program */
pc = 0;
while ( ( op = aOp[pc] ) != 0 )
{
switch ( op )
{
case 1:
case 2:
case 5:
{
nx = 4;
i = aOp[pc + 2] - 1;
aOp[pc + 2] += aOp[pc + 3];
break;
}
case 3:
case 4:
default:
{
nx = 2;
i64 i64Temp = 0;
sqlite3_randomness( sizeof( i64 ), ref i64Temp );
i = (int)i64Temp;
break;
}
}
if ( ( --aOp[pc + 1] ) > 0 )
nx = 0;
pc += nx;
i = (int)( ( i & 0x7fffffff ) % sz );
if ( ( op & 1 ) != 0 )
{
SETBIT( pV, ( i + 1 ) );
if ( op != 5 )
{
if ( sqlite3BitvecSet( pBitvec, (u32)i + 1 ) != 0 )
goto bitvec_end;
}
}
else
{
CLEARBIT( pV, ( i + 1 ) );
sqlite3BitvecClear( pBitvec, (u32)i + 1, pTmpSpace );
}
}
/* Test to make sure the linear array exactly matches the
** Bitvec object. Start with the assumption that they do
** match (rc==0). Change rc to non-zero if a discrepancy
** is found.
*/
rc = sqlite3BitvecTest( null, 0 ) + sqlite3BitvecTest( pBitvec, sz + 1 )
+ sqlite3BitvecTest( pBitvec, 0 )
+ (int)( sqlite3BitvecSize( pBitvec ) - sz );
for ( i = 1; i <= sz; i++ )
{
if ( ( TESTBIT( pV, i ) ) != sqlite3BitvecTest( pBitvec, (u32)i ) )
{
rc = i;
break;
}
}
/* Free allocated structure */
bitvec_end:
//sqlite3_free( ref pTmpSpace );
//sqlite3_free( ref pV );
sqlite3BitvecDestroy( ref pBitvec );
return rc;
}
#endif //* SQLITE_OMIT_BUILTIN_TEST */
}
}
| 29.877551 | 142 | 0.576776 | [
"MIT"
] | ArsenShnurkov/csharp-sqlite | Community.CsharpSqlite/src/bitvec_c.cs | 14,640 | C# |
using IntelligentKioskSample.Data;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IntelligentKioskSample.Models
{
public class CheckoutViewModel : BaseViewModel
{
private bool _isRecognized;
public bool IsRecognized
{
get { return _isRecognized; }
set { Set(ref _isRecognized, value); }
}
private bool _isUnrecognized = true;
public bool IsUnrecognized
{
get { return _isUnrecognized; }
set { Set(ref _isUnrecognized, value); }
}
private string _customerName = "";
public string CustomerName
{
get { return _customerName; }
set { Set(ref _customerName, value); }
}
private string _visitDateStr = "";
public string VisitDateStr
{
get { return _visitDateStr; }
set { Set(ref _visitDateStr, value); }
}
private string _previousPurchase = "";
public string PreviousPurchase
{
get { return _previousPurchase; }
set { Set(ref _previousPurchase, value); }
}
private string _recommendedActions = "";
public string RecommendedActions
{
get { return _recommendedActions; }
set { Set(ref _recommendedActions, value); }
}
private ProductViewModel _itemGiveaway;
public ProductViewModel ItemGiveaway
{
get { return _itemGiveaway; }
set { Set(ref _itemGiveaway, value); }
}
public bool IsRemovable(int qtyString)
{
return qtyString > 1;
}
private int _totalItems = 1;
public int TotalItems
{
get { return _totalItems; }
set { Set(ref _totalItems, value); }
}
public void AddToGiveaway(int qty)
{
ItemGiveaway.ProductQty += 1;
}
public void RemoveFromGiveaway(int qty)
{
if (ItemGiveaway.ProductQty > 1)
{
ItemGiveaway.ProductQty -= 1;
}
}
public ObservableCollection<Product> ProductChoices { get; set; }
public bool IsWarningNoCheckout { get; set; }
private CustomerInfo customerInfo; // obtained from DB
private CustomerRegistrationInfo customerRegistrationInfo; // obtained form registration UI
public void UpdateCustomer(CustomerRegistrationInfo info)
{
customerRegistrationInfo = info;
if (info != null && info.CustomerName.Length > 0)
{
customerInfo = IgniteDataAccess.GetCustomerInfo(info.CustomerFaceHash);
if (customerInfo == null) // first visit
{
IsRecognized = true;
IsUnrecognized = false;
CustomerName = info.CustomerName;
VisitDateStr = "";
PreviousPurchase = "";
RecommendedActions = IgniteDataServices.GetRecommendedActions(customerInfo);
IsWarningNoCheckout = true; // we want to avoid having registered customers without transactions
}
else // second visit
{
IsRecognized = true;
IsUnrecognized = false;
CustomerName = customerInfo.CustomerName;
VisitDateStr = customerInfo.PreviousVisitDate.ToString("MM/dd/yyyy");
PreviousPurchase = ProductCatalog.Instance.GetProductById(customerInfo.SourceItemId).ItemDescription;
RecommendedActions = IgniteDataServices.GetRecommendedActions(customerInfo);
}
}
else
{
customerInfo = null;
IsRecognized = false;
IsUnrecognized = true;
CustomerName = "";
VisitDateStr = "";
PreviousPurchase = "";
RecommendedActions = "";
}
}
public void Checkout()
{
if (customerInfo == null) // no previous transactions
{
if (customerRegistrationInfo == null) // unregistered customer
{
IgniteDataAccess.CreateNewTransaction(DateTime.Now, ItemGiveaway.ItemId, ItemGiveaway.ProductQty, IgniteDataAccess.UNREGISTERED_CUSTOMERID);
}
else
{
IgniteDataAccess.CreateNewTransaction(DateTime.Now, ItemGiveaway.ItemId, ItemGiveaway.ProductQty, customerRegistrationInfo.CustomerFaceHash);
}
}
else
{
IgniteDataAccess.CreateNewTransaction(DateTime.Now, ItemGiveaway.ItemId, ItemGiveaway.ProductQty, customerInfo.CustomerFaceHash);
}
// TODO: report transaction success status
// Prepare for the next customer
UpdateCustomer(null);
ItemGiveaway.Reset(IgniteDataServices.GetLocatedProduct(), 1);
TotalItems = 1;
IsWarningNoCheckout = false;
}
public CheckoutViewModel()
{
// Ideally, both customer and item should be recognized somehow, but here
// intialize with unrecognized customer and default located product
ItemGiveaway = new ProductViewModel();
Product locatedProd = IgniteDataServices.GetLocatedProduct();
ItemGiveaway.Reset(locatedProd, 1); // one item at a time please
TotalItems = 1;
ProductChoices = new ObservableCollection<Product>(ProductCatalog.Instance.Products);
// Limit choices to similar items
//ProductChoices = new ObservableCollection<Product>(from prod in ProductCatalog.Instance.Products
// where prod.ProductHierarchyName == locatedProd.ProductHierarchyName
// select prod);
}
}
} | 36.16092 | 161 | 0.559758 | [
"MIT"
] | ksaye/azure-intelligent-edge-patterns | retail-of-the-future-demo/IgniteDemoApp/Kiosk/Models/CheckoutViewModel.cs | 6,294 | C# |
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
namespace Pulumi.AzureNative.Cdn.Inputs
{
/// <summary>
/// The pricing tier (defines a CDN provider, feature list and rate) of the CDN profile.
/// </summary>
public sealed class SkuArgs : Pulumi.ResourceArgs
{
/// <summary>
/// Name of the pricing tier.
/// </summary>
[Input("name")]
public InputUnion<string, Pulumi.AzureNative.Cdn.SkuName>? Name { get; set; }
public SkuArgs()
{
}
}
}
| 26.862069 | 92 | 0.637997 | [
"Apache-2.0"
] | polivbr/pulumi-azure-native | sdk/dotnet/Cdn/Inputs/SkuArgs.cs | 779 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace Microsoft.Toolkit.Wpf.UI.Controls
{
/// <summary>
/// Extensions for use with UWP UIElement objects wrapped by the WindowsXamlHostBaseExt
/// </summary>
public static class UwpUIElementExtensions
{
private static Windows.UI.Xaml.DependencyProperty WrapperProperty { get; } =
Windows.UI.Xaml.DependencyProperty.RegisterAttached("Wrapper", typeof(System.Windows.UIElement), typeof(WindowsXamlHostBaseExt), new Windows.UI.Xaml.PropertyMetadata(null));
public static WindowsXamlHostBaseExt GetWrapper(this Windows.UI.Xaml.UIElement element)
{
return (WindowsXamlHostBaseExt)element.GetValue(WrapperProperty);
}
public static void SetWrapper(this Windows.UI.Xaml.UIElement element, WindowsXamlHostBaseExt wrapper)
{
element.SetValue(WrapperProperty, wrapper);
}
}
}
| 42.038462 | 185 | 0.720952 | [
"MIT"
] | XamlBrewer/UWPCommunityToolkit | Microsoft.Toolkit.Win32/Microsoft.Toolkit.Wpf.UI.Controls/UwpUIElementExtensions.cs | 1,093 | C# |
using UnityEngine;
namespace traVRsal.SDK
{
public interface IWorldStateReactor
{
void ZoneChange(Zone zone, bool isCurrent);
void FinishedLoading(Vector3 tileSizes, bool instantEnablement = false);
}
} | 21.181818 | 80 | 0.708155 | [
"MIT"
] | WetzoldStudios/traVRsal-sdk | Runtime/Types/IWorldStateReactor.cs | 235 | C# |
namespace tcl.lang
{
public partial class TCL
{
/*
* tcl.h --
*
* This header file describes the externally-visible facilities
* of the Tcl interpreter.
*
* Copyright (c) 1987-1994 The Regents of the University of California.
* Copyright (c) 1993-1996 Lucent Technologies.
* Copyright (c) 1994-1998 Sun Microsystems, Inc.
* Copyright (c) 1998-2000 by Scriptics Corporation.
* Copyright (c) 2002 by Kevin B. Kenny. All rights reserved.
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
* Included in SQLite3 port to C# for use in testharness only; 2008 Noah B Hart
*
* RCS @(#) $Id: tcl.h,v 1.153.2.34 2008/02/06 15:25:15 dgp Exp $
*/
#if !_TCL
//#define _TCL
/*
* For C++ compilers, use extern "C"
*/
#if __cplusplus
//extern "C" {
#endif
/*
* The following defines are used to indicate the various release levels.
*/
//#define TCL_ALPHA_RELEASE 0
//#define TCL_BETA_RELEASE 1
//#define TCL_FINAL_RELEASE 2
/*
* When version numbers change here, must also go into the following files
* and update the version numbers:
*
* library/init.tcl (only if Major.minor changes, not patchlevel) 1 LOC
* unix/configure.in (2 LOC Major, 2 LOC minor, 1 LOC patch)
* win/configure.in (as above)
* win/tcl.m4 (not patchlevel)
* win/makefile.vc (not patchlevel) 2 LOC
* README (sections 0 and 2)
* mac/README (2 LOC, not patchlevel)
* macosx/Tcl.pbproj/project.pbxproj (not patchlevel) 1 LOC
* macosx/Tcl.pbproj/default.pbxuser (not patchlevel) 1 LOC
* win/README.binary (sections 0-4)
* win/README (not patchlevel) (sections 0 and 2)
* unix/tcl.spec (2 LOC Major/Minor, 1 LOC patch)
* tests/basic.test (1 LOC M/M, not patchlevel)
* tools/tcl.hpj.in (not patchlevel, for windows installer)
* tools/tcl.wse.in (for windows installer)
* tools/tclSplash.bmp (not patchlevel)
*/
//#define TCL_MAJOR_VERSION 8
//#define TCL_MINOR_VERSION 4
//#define TCL_RELEASE_LEVEL TCL_FINAL_RELEASE
//#define TCL_RELEASE_SERIAL 18
//#define TCL_VERSION "8.4"
//#define TCL_PATCH_LEVEL "8.4.18"
/*
* The following definitions set up the proper options for Windows
* compilers. We use this method because there is no autoconf equivalent.
*/
//#if !__WIN32__
//# if defined(_WIN32) || defined(WIN32) || defined(__MINGW32__) || defined(__BORLANDC__)
//# define __WIN32__
//# ifndef WIN32
//# define WIN32
//# endif
//# endif
//#endif
/*
* STRICT: See MSDN Article Q83456
*/
//#if __WIN32__
//# ifndef STRICT
//# define STRICT
//# endif
//#endif // * __WIN32__ */
/*
* The following definitions set up the proper options for Macintosh
* compilers. We use this method because there is no autoconf equivalent.
*/
//#if MAC_TCL
//#include <ConditionalMacros.h>
//# ifndef USE_TCLALLOC
//# define USE_TCLALLOC 1
//# endif
//# ifndef NO_STRERROR
//# define NO_STRERROR 1
//# endif
//# define INLINE
//#endif
/*
* Utility macros: STRINGIFY takes an argument and wraps it in "" (double
* quotation marks), JOIN joins two arguments.
*/
//#if !STRINGIFY
//# define STRINGIFY(x) STRINGIFY1(x)
//# define STRINGIFY1(x) #x
//#endif
//#if !JOIN
//# define JOIN(a,b) JOIN1(a,b)
//# define JOIN1(a,b) a##b
//#endif
/*
* A special definition used to allow this header file to be included
* from windows or mac resource files so that they can obtain version
* information. RC_INVOKED is defined by default by the windows RC tool
* and manually set for macintosh.
*
* Resource compilers don't like all the C stuff, like typedefs and
* procedure declarations, that occur below, so block them out.
*/
#if !RC_INVOKED
/*
* Special macro to define mutexes, that doesn't do anything
* if we are not using threads.
*/
#if TCL_THREADS
//#define TCL_DECLARE_MUTEX(name) static Tcl_Mutex name;
#else
//#define TCL_DECLARE_MUTEX(name)
#endif
/*
* Macros that eliminate the overhead of the thread synchronization
* functions when compiling without thread support.
*/
#if !TCL_THREADS
//#define Tcl_MutexLock(mutexPtr)
//#define Tcl_MutexUnlock(mutexPtr)
//#define Tcl_MutexFinalize(mutexPtr)
//#define Tcl_ConditionNotify(condPtr)
//#define Tcl_ConditionWait(condPtr, mutexPtr, timePtr)
//#define Tcl_ConditionFinalize(condPtr)
#endif // * TCL_THREADS */
//#if !BUFSIZ
//# include <stdio.h>
//#endif
/*
* Definitions that allow Tcl functions with variable numbers of
* arguments to be used with either varargs.h or stdarg.h. TCL_VARARGS
* is used in procedure prototypes. TCL_VARARGS_DEF is used to declare
* the arguments in a function definiton: it takes the type and name of
* the first argument and supplies the appropriate argument declaration
* string for use in the function definition. TCL_VARARGS_START
* initializes the va_list data structure and returns the first argument.
*/
//#if !(NO_STDARG)
//# include <stdarg.h>
//# define TCL_VARARGS(type, name) (type name, ...)
//# define TCL_VARARGS_DEF(type, name) (type name, ...)
//# define TCL_VARARGS_START(type, name, list) (va_start(list, name), name)
//#else
//# include <varargs.h>
//# define TCL_VARARGS(type, name) ()
//# define TCL_VARARGS_DEF(type, name) (va_alist)
//# define TCL_VARARGS_START(type, name, list) \
// (va_start(list), va_arg(list, type))
//#endif
/*
* Macros used to declare a function to be exported by a DLL.
* Used by Windows, maps to no-op declarations on non-Windows systems.
* The default build on windows is for a DLL, which causes the DLLIMPORT
* and DLLEXPORT macros to be nonempty. To build a static library, the
* macro STATIC_BUILD should be defined.
*/
//#if STATIC_BUILD
//# define DLLIMPORT
//# define DLLEXPORT
//#else
//# if (defined(__WIN32__) && (defined(_MSC_VER) || (__BORLANDC__ >= 0x0550) || (defined(__GNUC__) && defined(__declspec)))) || (defined(MAC_TCL) && FUNCTION_DECLSPEC)
//# define DLLIMPORT __declspec(dllimport)
//# define DLLEXPORT __declspec(dllexport)
//# else
//# define DLLIMPORT
//# define DLLEXPORT
//# endif
//#endif
/*
* These macros are used to control whether functions are being declared for
* import or export. If a function is being declared while it is being built
* to be included in a shared library, then it should have the DLLEXPORT
* storage class. If is being declared for use by a module that is going to
* link against the shared library, then it should have the DLLIMPORT storage
* class. If the symbol is beind declared for a static build or for use from a
* stub library, then the storage class should be empty.
*
* The convention is that a macro called BUILD_xxxx, where xxxx is the
* name of a library we are building, is set on the compile line for sources
* that are to be placed in the library. When this macro is set, the
* storage class will be set to DLLEXPORT. At the end of the header file, the
* storage class will be reset to DLLIMPORT.
*/
//#undef TCL_STORAGE_CLASS
//#if BUILD_tcl
//# define TCL_STORAGE_CLASS DLLEXPORT
//#else
//# ifdef USE_TCL_STUBS
//# define TCL_STORAGE_CLASS
//# else
//# define TCL_STORAGE_CLASS DLLIMPORT
//# endif
//#endif
/*
* Definitions that allow this header file to be used either with or
* without ANSI C features like function prototypes.
*/
//#undef _ANSI_ARGS_
//#undef CONST
//#if !INLINE
//# define INLINE
//#endif
//#if !NO_CONST
//# define CONST const
//#else
//# define CONST
//#endif
//#if !NO_PROTOTYPES
//# define _ANSI_ARGS_(x) x
//#else
//# define _ANSI_ARGS_(x) ()
//#endif
//#if USE_NON_CONST
//# ifdef USE_COMPAT_CONST
//# error define at most one of USE_NON_CONST and USE_COMPAT_CONST
//# endif
//# define CONST84
//# define CONST84_RETURN
//#else
//# ifdef USE_COMPAT_CONST
//# define CONST84
//# define CONST84_RETURN CONST
//# else
//# define CONST84 CONST
//# define CONST84_RETURN CONST
//# endif
//#endif
/*
* Make sure EXTERN isn't defined elsewhere
*/
//#if EXTERN
//# undef EXTERN
//#endif // * EXTERN */
//#if __cplusplus
//# define EXTERN extern "C" TCL_STORAGE_CLASS
//#else
//# define EXTERN extern TCL_STORAGE_CLASS
//#endif
/*
* The following code is copied from winnt.h.
* If we don't replicate it here, then <windows.h> can't be included
* after tcl.h, since tcl.h also defines VOID.
* This block is skipped under Cygwin and Mingw.
*
*
*/
//#if (__WIN32__) && !HAVE_WINNT_IGNORE_VOID)
//#if !VOID
////#define VOID void
////typedef char CHAR;
////typedef short SHORT;
////typedef long LONG;
//#endif
//#endif // * __WIN32__ && !HAVE_WINNT_IGNORE_VOID */
/*
* Macro to use instead of "void" for arguments that must have
* type "void *" in ANSI C; maps them to type "char *" in
* non-ANSI systems.
*/
//#if !NO_VOID
//# define VOID void
//#else
//# define VOID char
//#endif
///*
//* Miscellaneous declarations.
//*/
//#if !_CLIENTDATA
//# ifndef NO_VOID
//// typedef void *ClientData;
//# else
//// typedef int *ClientData;
//# endif
//# define _CLIENTDATA
//#endif
/*
* Darwin specifc configure overrides (to support fat compiles, where
* configure runs only once for multiple architectures):
*/
//#if __APPLE__
//# ifdef __LP64__
//# undef TCL_WIDE_INT_TYPE
//# define TCL_WIDE_INT_IS_LONG 1
//# else /* !__LP64__ */
//# define TCL_WIDE_INT_TYPE long long
//# undef TCL_WIDE_INT_IS_LONG
//# endif /* __LP64__ */
//# undef HAVE_STRUCT_STAT64
//#endif // * __APPLE__ */
/*
* Define Tcl_WideInt to be a type that is (at least) 64-bits wide,
* and define Tcl_Wideu32 to be the unsigned variant of that type
* (assuming that where we have one, we can have the other.)
*
* Also defines the following macros:
* TCL_WIDE_INT_IS_LONG - if wide ints are really longs (i.e. we're on
* a real 64-bit system.)
* Tcl_WideAsLong - forgetful converter from wideInt to long.
* Tcl_LongAsWide - sign-extending converter from long to wideInt.
* Tcl_WideAsDouble - converter from wideInt to double.
* Tcl_DoubleAsWide - converter from double to wideInt.
*
* The following invariant should hold for any long value 'longVal':
* longVal == TCL.Tcl_WideAsLong(Tcl_LongAsWide(longVal))
*
* Note on converting between Tcl_WideInt and strings. This
* implementation (in tclObj.c) depends on the functions strtoull()
* and sprintf(...,"%" TCL_LL_MODIFIER "d",...). TCL_LL_MODIFIER_SIZE
* is the length of the modifier string, which is "ll" on most 32-bit
* Unix systems. It has to be split up like this to allow for the more
* complex formats sometimes needed (e.g. in the format(n) command.)
*/
//#if !(TCL_WIDE_INT_TYPE)&&!TCL_WIDE_INT_IS_LONG)
//# if defined(__GNUC__)
//# define TCL_WIDE_INT_TYPE long long
//# if defined(__WIN32__) && !__CYGWIN__)
//# define TCL_LL_MODIFIER "I64"
//# define TCL_LL_MODIFIER_SIZE 3
//# else
//# define TCL_LL_MODIFIER "L"
//# define TCL_LL_MODIFIER_SIZE 1
//# endif
////typedef struct stat Tcl_StatBuf;
//# elif defined(__WIN32__)
//# define TCL_WIDE_INT_TYPE __int64
//# ifdef __BORLANDC__
////typedef struct stati64 Tcl_StatBuf;
//# define TCL_LL_MODIFIER "L"
//# define TCL_LL_MODIFIER_SIZE 1
//# else /* __BORLANDC__ */
//# if _MSC_VER < 1400 || !_M_IX86)
////typedef struct _stati64 Tcl_StatBuf;
//# else
////typedef struct _stat64 Tcl_StatBuf;
//# endif /* _MSC_VER < 1400 */
//# define TCL_LL_MODIFIER "I64"
//# define TCL_LL_MODIFIER_SIZE 3
//# endif /* __BORLANDC__ */
//# else /* __WIN32__ */
///*
//* Don't know what platform it is and configure hasn't discovered what
//* is going on for us. Try to guess...
//*/
//# ifdef NO_LIMITS_H
//# error please define either TCL_WIDE_INT_TYPE or TCL_WIDE_INT_IS_LONG
//# else /* !NO_LIMITS_H */
//# include <limits.h>
//# if (INT_MAX < LONG_MAX)
//# define TCL_WIDE_INT_IS_LONG 1
//# else
//# define TCL_WIDE_INT_TYPE long long
//# endif
//# endif /* NO_LIMITS_H */
//# endif /* __WIN32__ */
//#endif // * !TCL_WIDE_INT_TYPE & !TCL_WIDE_INT_IS_LONG */
//#if TCL_WIDE_INT_IS_LONG
//# undef TCL_WIDE_INT_TYPE
//# define TCL_WIDE_INT_TYPE long
//#endif // * TCL_WIDE_INT_IS_LONG */
////typedef TCL_WIDE_INT_TYPE Tcl_WideInt;
////typedef unsigned TCL_WIDE_INT_TYPE Tcl_Wideu32;
//#if TCL_WIDE_INT_IS_LONG
////typedef struct stat Tcl_StatBuf;
//# define Tcl_WideAsLong(val) ((long)(val))
//# define Tcl_LongAsWide(val) ((long)(val))
//# define Tcl_WideAsDouble(val) ((double)((long)(val)))
//# define Tcl_DoubleAsWide(val) ((long)((double)(val)))
//# ifndef TCL_LL_MODIFIER
//# define TCL_LL_MODIFIER "l"
//# define TCL_LL_MODIFIER_SIZE 1
//# endif /* !TCL_LL_MODIFIER */
//#else /* TCL_WIDE_INT_IS_LONG */
///*
//* The next short section of defines are only done when not running on
//* Windows or some other strange platform.
//*/
//# ifndef TCL_LL_MODIFIER
//# ifdef HAVE_STRUCT_STAT64
////typedef struct stat64 Tcl_StatBuf;
//# else
////typedef struct stat Tcl_StatBuf;
//# endif /* HAVE_STRUCT_STAT64 */
//# define TCL_LL_MODIFIER "ll"
//# define TCL_LL_MODIFIER_SIZE 2
//# endif /* !TCL_LL_MODIFIER */
//# define Tcl_WideAsLong(val) ((long)((Tcl_WideInt)(val)))
//# define Tcl_LongAsWide(val) ((Tcl_WideInt)((long)(val)))
//# define Tcl_WideAsDouble(val) ((double)((Tcl_WideInt)(val)))
//# define Tcl_DoubleAsWide(val) ((Tcl_WideInt)((double)(val)))
//#endif // * TCL_WIDE_INT_IS_LONG */
/*
* This flag controls whether binary compatability is maintained with
* extensions built against a previous version of Tcl. This is true
* by default.
*/
//#if !TCL_PRESERVE_BINARY_COMPATABILITY
//# define TCL_PRESERVE_BINARY_COMPATABILITY 1
//#endif
/*
* Data structures defined opaquely in this module. The definitions below
* just provide dummy types. A few fields are made visible in Tcl_Interp
* structures, namely those used for returning a string result from
* commands. Direct access to the result field is discouraged in Tcl 8.0.
* The interpreter result is either an object or a string, and the two
* values are kept consistent unless some C code sets interp.result
* directly. Programmers should use either the procedure Tcl_GetObjResult()
* or Tcl_GetStringResult() to read the interpreter's result. See the
* SetResult man page for details.
*
* Note: any change to the Tcl_Interp definition below must be mirrored
* in the "real" definition in tclInt.h.
*
* Note: Tcl_ObjCmdProc procedures do not directly set result and freeProc.
* Instead, they set a Tcl_Obj member in the "real" structure that can be
* accessed with Tcl_GetObjResult() and Tcl_SetObjResult().
*/
//typedef struct Tcl_Interp {
// char *result; /* If the last command returned a string
// * result, this points to it. */
// void (*freeProc) _ANSI_ARGS_((char *blockPtr));
// /* Zero means the string result is
// * statically allocated. TCL_DYNAMIC means
// * it was allocated with ckalloc and should
// * be freed with ckfree. Other values give
// * the address of procedure to invoke to
// * free the result. Tcl_Eval must free it
// * before executing next command. */
// int errorLine; /* When TCL_ERROR is returned, this gives
// * the line number within the command where
// * the error occurred (1 if first line). */
//} Tcl_Interp;
//typedef struct Tcl_AsyncHandler_ *Tcl_AsyncHandler;
//typedef struct Tcl_Channel_ *Tcl_Channel;
//typedef struct Tcl_Command_ *Tcl_Command;
//typedef struct Tcl_Condition_ *Tcl_Condition;
//typedef struct Tcl_EncodingState_ *Tcl_EncodingState;
//typedef struct Tcl_Encoding_ *Tcl_Encoding;
//typedef struct Tcl_Event Tcl_Event;
//typedef struct Tcl_Mutex_ *Tcl_Mutex;
//typedef struct Tcl_Pid_ *Tcl_Pid;
//typedef struct Tcl_RegExp_ *Tcl_RegExp;
//typedef struct Tcl_ThreadDataKey_ *Tcl_ThreadDataKey;
//typedef struct Tcl_ThreadId_ *Tcl_ThreadId;
//typedef struct Tcl_TimerToken_ *Tcl_TimerToken;
//typedef struct Tcl_Trace_ *Tcl_Trace;
//typedef struct Tcl_Var_ *Tcl_Var;
//typedef struct Tcl_ChannelTypeVersion_ *Tcl_ChannelTypeVersion;
//typedef struct Tcl_LoadHandle_ *Tcl_LoadHandle;
/*
* Definition of the interface to procedures implementing threads.
* A procedure following this definition is given to each call of
* 'Tcl_CreateThread' and will be called as the main fuction of
* the new thread created by that call.
*/
//#if MAC_TCL
////typedef pascal void *(Tcl_ThreadCreateProc) _ANSI_ARGS_((ClientData clientData));
//#elif defined __WIN32__
////typedef unsigned (__stdcall Tcl_ThreadCreateProc) _ANSI_ARGS_((ClientData clientData));
//#else
////typedef void (Tcl_ThreadCreateProc) _ANSI_ARGS_((ClientData clientData));
//#endif
/*
* Threading function return types used for abstracting away platform
* differences when writing a Tcl_ThreadCreateProc. See the NewThread
* function in generic/tclThreadTest.c for it's usage.
*/
//#if MAC_TCL
//# define Tcl_ThreadCreateType pascal void *
//# define TCL_THREAD_CREATE_RETURN return NULL
//#elif defined __WIN32__
//# define Tcl_ThreadCreateType unsigned __stdcall
//# define TCL_THREAD_CREATE_RETURN return 0
//#else
//# define Tcl_ThreadCreateType void
//# define TCL_THREAD_CREATE_RETURN
//#endif
/*
* Definition of values for default stacksize and the possible flags to be
* given to Tcl_CreateThread.
*/
//#define TCL_THREAD_STACK_DEFAULT (0) /* Use default size for stack */
//#define TCL_THREAD_NOFLAGS (0000) /* Standard flags, default behavior */
//#define TCL_THREAD_JOINABLE (0001) /* Mark the thread as joinable */
/*
* Flag values passed to Tcl_GetRegExpFromObj.
*/
//#define TCL_REG_BASIC 000000 /* BREs (convenience) */
//#define TCL_REG_EXTENDED 000001 /* EREs */
//#define TCL_REG_ADVF 000002 /* advanced features in EREs */
//#define TCL_REG_ADVANCED 000003 /* AREs (which are also EREs) */
//#define TCL_REG_QUOTE 000004 /* no special characters, none */
//#define TCL_REG_NOCASE 000010 /* ignore case */
//#define TCL_REG_NOSUB 000020 /* don't care about subexpressions */
//#define TCL_REG_EXPANDED 000040 /* expanded format, white space &
// * comments */
//#define TCL_REG_NLSTOP 000100 /* \n doesn't match . or [^ ] */
//#define TCL_REG_NLANCH 000200 /* ^ matches after \n, $ before */
//#define TCL_REG_NEWLINE 000300 /* newlines are line terminators */
//#define TCL_REG_CANMATCH 001000 /* report details on partial/limited
// * matches */
/*
* The following flag is experimental and only intended for use by Expect. It
* will probably go away in a later release.
*/
//#define TCL_REG_BOSONLY 002000 /* prepend \A to pattern so it only
// * matches at the beginning of the
// * string. */
/*
* Flags values passed to Tcl_RegExpExecObj.
*/
//#define TCL_REG_NOTBOL 0001 /* Beginning of string does not match ^. */
//#define TCL_REG_NOTEOL 0002 /* End of string does not match $. */
/*
* Structures filled in by Tcl_RegExpInfo. Note that all offset values are
* relative to the start of the match string, not the beginning of the
* entire string.
*/
//typedef struct Tcl_RegExpIndices {
// long start; /* character offset of first character in match */
// long end; /* character offset of first character after the
// * match. */
//} Tcl_RegExpIndices;
//typedef struct Tcl_RegExpInfo {
// int nsubs; /* number of subexpressions in the
// * compiled expression */
// Tcl_RegExpIndices *matches; /* array of nsubs match offset
// * pairs */
// long extendStart; /* The offset at which a subsequent
// * match might begin. */
// long reserved; /* Reserved for later use. */
//} Tcl_RegExpInfo;
/*
* Picky compilers complain if this typdef doesn't appear before the
* struct's reference in tclDecls.h.
*/
//typedef Tcl_StatBuf *Tcl_Stat_;
//typedef struct stat *Tcl_OldStat_;
/*
* When a TCL command returns, the interpreter contains a result from the
* command. Programmers are strongly encouraged to use one of the
* procedures Tcl_GetObjResult() or Tcl_GetStringResult() to read the
* interpreter's result. See the SetResult man page for details. Besides
* this result, the command procedure returns an integer code, which is
* one of the following:
*
* TCL_OK Command completed normally; the interpreter's
* result contains the command's result.
* TCL_ERROR The command couldn't be completed successfully;
* the interpreter's result describes what went wrong.
* TCL_RETURN The command requests that the current procedure
* return; the interpreter's result contains the
* procedure's return value.
* TCL_BREAK The command requests that the innermost loop
* be exited; the interpreter's result is meaningless.
* TCL_CONTINUE Go on to the next iteration of the current loop;
* the interpreter's result is meaningless.
*/
public const int TCL_OK = 0;
public const int TCL_ERROR = 1;
public const int TCL_RETURN = 2;
public const int TCL_BREAK = 3;
public const int TCL_CONTINUE = 4;
//#define TCL_RESULT_SIZE 200
/*
* Flags to control what substitutions are performed by Tcl_SubstObj():
*/
//#define TCL_SUBST_COMMANDS 001
//#define TCL_SUBST_VARIABLES 002
//#define TCL_SUBST_BACKSLASHES 004
//#define TCL_SUBST_ALL 007
/*
* Argument descriptors for math function callbacks in expressions:
*/
//typedef enum {
// TCL_INT, TCL.TCL_DOUBLE, TCL.TCL_EITHER, TCL.TCL_WIDE_INT
//} Tcl_ValueType;
//typedef struct Tcl_Value {
// Tcl_ValueType type; /* Indicates intValue or doubleValue is
// * valid, or both. */
// long intValue; /* Integer value. */
// double doubleValue; /* Double-precision floating value. */
// Tcl_WideInt wideValue; /* Wide (min. 64-bit) integer value. */
//} Tcl_Value;
/*
* Forward declaration of Tcl_Obj to prevent an error when the forward
* reference to Tcl_Obj is encountered in the procedure types declared
* below.
*/
//struct Tcl_Obj;
/*
* Procedure types defined by Tcl:
*/
//typedef int (Tcl_AppInitProc) _ANSI_ARGS_((Tcl_Interp interp));
//typedef int (Tcl_AsyncProc) _ANSI_ARGS_((ClientData clientData,
// Tcl_Interp interp, int code));
//typedef void (Tcl_ChannelProc) _ANSI_ARGS_((ClientData clientData, int mask));
//typedef void (Tcl_CloseProc) _ANSI_ARGS_((ClientData data));
//typedef void (Tcl_CmdDeleteProc) _ANSI_ARGS_((ClientData clientData));
//typedef int (Tcl_CmdProc) _ANSI_ARGS_((ClientData clientData,
// Tcl_Interp interp, int argc, CONST84 char *argv[]));
//typedef void (Tcl_CmdTraceProc) _ANSI_ARGS_((ClientData clientData,
// Tcl_Interp interp, int level, char *command, TCL.TCL_CmdProc proc,
// ClientData cmdClientData, int argc, CONST84 char *argv[]));
//typedef int (Tcl_CmdObjTraceProc) _ANSI_ARGS_((ClientData clientData,
// Tcl_Interp interp, int level, string command,
// Tcl_Command commandInfo, int objc, struct Tcl_Obj * CONST * objv));
//typedef void (Tcl_CmdObjTraceDeleteProc) _ANSI_ARGS_((ClientData clientData));
//typedef void (Tcl_DupInternalRepProc) _ANSI_ARGS_((struct Tcl_Obj *srcPtr,
// struct Tcl_Obj *dupPtr));
//typedef int (Tcl_EncodingConvertProc)_ANSI_ARGS_((ClientData clientData,
// string src, int srcLen, int flags, TCL.TCL_EncodingState *statePtr,
// char *dst, int dstLen, int *srcReadPtr, int *dstWrotePtr,
// int *dstCharsPtr));
//typedef void (Tcl_EncodingFreeProc)_ANSI_ARGS_((ClientData clientData));
//typedef int (Tcl_EventProc) _ANSI_ARGS_((Tcl_Event *evPtr, int flags));
//typedef void (Tcl_EventCheckProc) _ANSI_ARGS_((ClientData clientData,
// int flags));
//typedef int (Tcl_EventDeleteProc) _ANSI_ARGS_((Tcl_Event *evPtr,
// ClientData clientData));
//typedef void (Tcl_EventSetupProc) _ANSI_ARGS_((ClientData clientData,
// int flags));
//typedef void (Tcl_ExitProc) _ANSI_ARGS_((ClientData clientData));
//typedef void (Tcl_FileProc) _ANSI_ARGS_((ClientData clientData, int mask));
//typedef void (Tcl_FileFreeProc) _ANSI_ARGS_((ClientData clientData));
//typedef void (Tcl_FreeInternalRepProc) _ANSI_ARGS_((struct Tcl_Obj *objPtr));
//typedef void (Tcl_FreeProc) _ANSI_ARGS_((char *blockPtr));
//typedef void (Tcl_IdleProc) _ANSI_ARGS_((ClientData clientData));
//typedef void (Tcl_InterpDeleteProc) _ANSI_ARGS_((ClientData clientData,
// Tcl_Interp interp));
//typedef int (Tcl_MathProc) _ANSI_ARGS_((ClientData clientData,
// Tcl_Interp interp, TCL.TCL_Value *args, TCL.TCL_Value *resultPtr));
//typedef void (Tcl_NamespaceDeleteProc) _ANSI_ARGS_((ClientData clientData));
//typedef int (Tcl_ObjCmdProc) _ANSI_ARGS_((ClientData clientData,
// Tcl_Interp interp, int objc, struct Tcl_Obj * CONST * objv));
//typedef int (Tcl_PackageInitProc) _ANSI_ARGS_((Tcl_Interp interp));
//typedef void (Tcl_PanicProc) _ANSI_ARGS_(TCL_VARARGS(string , format));
//typedef void (Tcl_TcpAcceptProc) _ANSI_ARGS_((ClientData callbackData,
// Tcl_Channel chan, char *address, int port));
//typedef void (Tcl_TimerProc) _ANSI_ARGS_((ClientData clientData));
//typedef int (Tcl_SetFromAnyProc) _ANSI_ARGS_((Tcl_Interp interp,
// struct Tcl_Obj *objPtr));
//typedef void (Tcl_UpdateStringProc) _ANSI_ARGS_((struct Tcl_Obj *objPtr));
//typedef char *(Tcl_VarTraceProc) _ANSI_ARGS_((ClientData clientData,
// Tcl_Interp interp, CONST84 char part1, CONST84 char part2, int flags));
//typedef void (Tcl_CommandTraceProc) _ANSI_ARGS_((ClientData clientData,
// Tcl_Interp interp, string oldName, string newName,
// int flags));
//typedef void (Tcl_CreateFileHandlerProc) _ANSI_ARGS_((int fd, int mask,
// Tcl_FileProc proc, ClientData clientData));
//typedef void (Tcl_DeleteFileHandlerProc) _ANSI_ARGS_((int fd));
//typedef void (Tcl_AlertNotifierProc) _ANSI_ARGS_((ClientData clientData));
//typedef void (Tcl_ServiceModeHookProc) _ANSI_ARGS_((int mode));
//typedef ClientData (Tcl_InitNotifierProc) _ANSI_ARGS_((VOID));
//typedef void (Tcl_FinalizeNotifierProc) _ANSI_ARGS_((ClientData clientData));
//typedef void (Tcl_MainLoopProc) _ANSI_ARGS_((void));
/*
* The following structure represents a type of object, which is a
* particular internal representation for an object plus a set of
* procedures that provide standard operations on objects of that type.
*/
//typedef struct Tcl_ObjType {
// char *name; /* Name of the type, e.g. "int". */
// Tcl_FreeInternalRepProc *freeIntRepProc;
// /* Called to free any storage for the type's
// * internal rep. NULL if the internal rep
// * does not need freeing. */
// Tcl_DupInternalRepProc *dupIntRepProc;
// /* Called to create a new object as a copy
// * of an existing object. */
// Tcl_UpdateStringProc *updateStringProc;
// /* Called to update the string rep from the
// * type's internal representation. */
// Tcl_SetFromAnyProc *setFromAnyProc;
// /* Called to convert the object's internal
// * rep to this type. Frees the internal rep
// * of the old type. Returns TCL_ERROR on
// * failure. */
//} Tcl_ObjType;
/*
* One of the following structures exists for each object in the Tcl
* system. An object stores a value as either a string, some internal
* representation, or both.
*/
//typedef struct Tcl_Obj {
// int refCount; /* When 0 the object will be freed. */
// char *bytes; /* This points to the first byte of the
// * object's string representation. The array
// * must be followed by a null byte (i.e., at
// * offset length) but may also contain
// * embedded null characters. The array's
// * storage is allocated by ckalloc. NULL
// * means the string rep is invalid and must
// * be regenerated from the internal rep.
// * Clients should use Tcl_GetStringFromObj
// * or Tcl_GetString to get a pointer to the
// * byte array as a readonly value. */
// int length; /* The number of bytes at *bytes, not
// * including the terminating null. */
// Tcl_ObjType *typePtr; /* Denotes the object's type. Always
// * corresponds to the type of the object's
// * internal rep. NULL indicates the object
// * has no internal rep (has no type). */
// union { /* The internal representation: */
// long longValue; /* - an long integer value */
// double doubleValue; /* - a double-precision floating value */
// VOID *otherValuePtr; /* - another, type-specific value */
// Tcl_WideInt wideValue; /* - a long long value */
// struct { /* - internal rep as two pointers */
// VOID ptr1;
// VOID ptr2;
// } twoPtrValue;
// } internalRep;
//} Tcl_Obj;
/*
* Macros to increment and decrement a Tcl_Obj's reference count, and to
* test whether an object is shared (i.e. has reference count > 1).
* Note: clients should use Tcl_DecrRefCount() when they are finished using
* an object, and should never call TclFreeObj() directly. TclFreeObj() is
* only defined and made public in tcl.h to support Tcl_DecrRefCount's macro
* definition. Note also that Tcl_DecrRefCount() refers to the parameter
* "obj" twice. This means that you should avoid calling it with an
* expression that is expensive to compute or has side effects.
*/
//void Tcl_IncrRefCount _ANSI_ARGS_((Tcl_Obj *objPtr));
//void Tcl_DecrRefCount _ANSI_ARGS_((Tcl_Obj *objPtr));
//int Tcl_IsShared _ANSI_ARGS_((Tcl_Obj *objPtr));
//#if TCL_MEM_DEBUG
//# define Tcl_IncrRefCount(objPtr) \
//// Tcl_DbIncrRefCount(objPtr, __FILE__, __LINE__)
//# define Tcl_DecrRefCount(objPtr) \
//// Tcl_DbDecrRefCount(objPtr, __FILE__, __LINE__)
//# define Tcl_IsShared(objPtr) \
//// Tcl_DbIsShared(objPtr, __FILE__, __LINE__)
//#else
//# define Tcl_IncrRefCount(objPtr) \
//// ++(objPtr)->refCount
//// /*
//// * Use do/while0 idiom for optimum correctness without compiler warnings
//// * http://c2.com/cgi/wiki?TrivialDoWhileLoop
//// */
//# define Tcl_DecrRefCount(objPtr) \
//// do { if (--(objPtr)->refCount <= 0) TclFreeObj(objPtr); } while(0)
//# define Tcl_IsShared(objPtr) \
//// ((objPtr)->refCount > 1)
//#endif
/*
* Macros and definitions that help to debug the use of Tcl objects.
* When TCL_MEM_DEBUG is defined, the Tcl_New declarations are
* overridden to call debugging versions of the object creation procedures.
*/
//#if TCL_MEM_DEBUG
//# define Tcl_NewBooleanObj(val) \
//// Tcl_DbNewBooleanObj(val, __FILE__, __LINE__)
//# define Tcl_NewByteArrayObj(bytes, len) \
//// Tcl_DbNewByteArrayObj(bytes, len, __FILE__, __LINE__)
//# define Tcl_NewDoubleObj(val) \
//// Tcl_DbNewDoubleObj(val, __FILE__, __LINE__)
//# define Tcl_NewIntObj(val) \
//// Tcl_DbNewLongObj(val, __FILE__, __LINE__)
//# define Tcl_NewListObj(objc, objv) \
//// Tcl_DbNewListObj(objc, objv, __FILE__, __LINE__)
//# define Tcl_NewLongObj(val) \
//// Tcl_DbNewLongObj(val, __FILE__, __LINE__)
//# define Tcl_NewObj() \
//// Tcl_DbNewObj(__FILE__, __LINE__)
//# define Tcl_NewStringObj(bytes, len) \
//// Tcl_DbNewStringObj(bytes, len, __FILE__, __LINE__)
//# define Tcl_NewWideIntObj(val) \
//// Tcl_DbNewWideIntObj(val, __FILE__, __LINE__)
//#endif // * TCL_MEM_DEBUG */
/*
* The following structure contains the state needed by
* Tcl_SaveResult. No-one outside of Tcl should access any of these
* fields. This structure is typically allocated on the stack.
*/
//typedef struct Tcl_SavedResult {
// char *result;
// Tcl_FreeProc *freeProc;
// Tcl_Obj *objResultPtr;
// char *appendResult;
// int appendAvl;
// int appendUsed;
// char resultSpace[TCL_RESULT_SIZE+1];
//} Tcl_SavedResult;
/*
* The following definitions support Tcl's namespace facility.
* Note: the first five fields must match exactly the fields in a
* Namespace structure (see tclInt.h).
*/
//typedef struct Tcl_Namespace {
// char *name; /* The namespace's name within its parent
// * namespace. This contains no ::'s. The
// * name of the global namespace is ""
// * although "::" is an synonym. */
// char *fullName; /* The namespace's fully qualified name.
// * This starts with ::. */
// ClientData clientData; /* Arbitrary value associated with this
// * namespace. */
// Tcl_NamespaceDeleteProc* deleteProc;
// /* Procedure invoked when deleting the
// * namespace to, e.g., free clientData. */
// struct Tcl_Namespace* parentPtr;
// /* Points to the namespace that contains
// * this one. NULL if this is the global
// * namespace. */
//} Tcl_Namespace;
/*
* The following structure represents a call frame, or activation record.
* A call frame defines a naming context for a procedure call: its local
* scope (for local variables) and its namespace scope (used for non-local
* variables; often the global :: namespace). A call frame can also define
* the naming context for a namespace eval or namespace inscope command:
* the namespace in which the command's code should execute. The
* Tcl_CallFrame structures exist only while procedures or namespace
* eval/inscope's are being executed, and provide a Tcl call stack.
*
* A call frame is initialized and pushed using Tcl_PushCallFrame and
* popped using Tcl_PopCallFrame. Storage for a Tcl_CallFrame must be
* provided by the Tcl_PushCallFrame caller, and callers typically allocate
* them on the C call stack for efficiency. For this reason, TCL.TCL_CallFrame
* is defined as a structure and not as an opaque token. However, most
* Tcl_CallFrame fields are hidden since applications should not access
* them directly; others are declared as "dummyX".
*
* WARNING!! The structure definition must be kept consistent with the
* CallFrame structure in tclInt.h. If you change one, change the other.
*/
//typedef struct Tcl_CallFrame {
// Tcl_Namespace *nsPtr;
// int dummy1;
// int dummy2;
// char *dummy3;
// char *dummy4;
// char *dummy5;
// int dummy6;
// char *dummy7;
// char *dummy8;
// int dummy9;
// char* dummy10;
//} Tcl_CallFrame;
/*
* Information about commands that is returned by Tcl_GetCommandInfo and
* passed to Tcl_SetCommandInfo. objProc is an objc/objv object-based
* command procedure while proc is a traditional Tcl argc/argv
* string-based procedure. Tcl_CreateObjCommand and Tcl_CreateCommand
* ensure that both objProc and proc are non-NULL and can be called to
* execute the command. However, it may be faster to call one instead of
* the other. The member isNativeObjectProc is set to 1 if an
* object-based procedure was registered by Tcl_CreateObjCommand, and to
* 0 if a string-based procedure was registered by Tcl_CreateCommand.
* The other procedure is typically set to a compatibility wrapper that
* does string-to-object or object-to-string argument conversions then
* calls the other procedure.
*/
//typedef struct Tcl_CmdInfo {
// int isNativeObjectProc; /* 1 if objProc was registered by a call to
// * Tcl_CreateObjCommand; 0 otherwise.
// * Tcl_SetCmdInfo does not modify this
// * field. */
// Tcl_ObjCmdProc *objProc; /* Command's object-based procedure. */
// ClientData objClientData; /* ClientData for object proc. */
// Tcl_CmdProc proc; /* Command's string-based procedure. */
// ClientData clientData; /* ClientData for string proc. */
// Tcl_CmdDeleteProc *deleteProc;
// /* Procedure to call when command is
// * deleted. */
// ClientData deleteData; /* Value to pass to deleteProc (usually
// * the same as clientData). */
// Tcl_Namespace *namespacePtr; /* Points to the namespace that contains
// * this command. Note that Tcl_SetCmdInfo
// * will not change a command's namespace;
// * use Tcl_RenameCommand to do that. */
//} Tcl_CmdInfo;
/*
* The structure defined below is used to hold dynamic strings. The only
* field that clients should use is the string field, accessible via the
* macro Tcl_DStringValue.
*/
//#define TCL_DSTRING_STATIC_SIZE 200
//typedef struct Tcl_DString {
// char *string; /* Points to beginning of string: either
// * staticSpace below or a malloced array. */
// int length; /* Number of non-NULL characters in the
// * string. */
// int spaceAvl; /* Total number of bytes available for the
// * string and its terminating NULL char. */
// char staticSpace[TCL_DSTRING_STATIC_SIZE];
// /* Space to use in common case where string
// * is small. */
//} Tcl_DString;
//#define Tcl_DStringLength(dsPtr) ((dsPtr)->length)
//#define Tcl_DStringValue(dsPtr) ((dsPtr)->string)
//#define Tcl_DStringTrunc Tcl_DStringSetLength
/*
* Definitions for the maximum number of digits of precision that may
* be specified in the "tcl_precision" variable, and the number of
* bytes of buffer space required by Tcl_PrintDouble.
*/
//#define TCL_MAX_PREC 17
//#define TCL_DOUBLE_SPACE (TCL_MAX_PREC+10)
/*
* Definition for a number of bytes of buffer space sufficient to hold the
* string representation of an integer in base 10 (assuming the existence
* of 64-bit integers).
*/
//#define TCL_INTEGER_SPACE 24
/*
* Flag that may be passed to Tcl_ConvertElement to force it not to
* output braces (careful! if you change this flag be sure to change
* the definitions at the front of tclUtil.c).
*/
//#define TCL_DONT_USE_BRACES 1
/*
* Flag that may be passed to Tcl_GetIndexFromObj to force it to disallow
* abbreviated strings.
*/
//#define TCL_EXACT 1
/*
* Flag values passed to Tcl_RecordAndEval and/or Tcl_EvalObj.
* WARNING: these bit choices must not conflict with the bit choices
* for evalFlag bits in tclInt.h!!
*/
public const int TCL_NO_EVAL = 0x10000;
public const int TCL_EVAL_GLOBAL = 0x20000;
public const int TCL_EVAL_DIRECT = 0x40000;
public const int TCL_EVAL_INVOKE = 0x80000;
/*
* Special freeProc values that may be passed to Tcl_SetResult (see
* the man page for details):
*/
public const int TCL_VOLATILE = 1;//((Tcl_FreeProc ) 1)
public const int TCL_STATIC = 2;//((Tcl_FreeProc ) 0)
public const int TCL_DYNAMIC = 3;//((Tcl_FreeProc ) 3)
/*
* Flag values passed to variable-related procedures.
*/
public const int TCL_GLOBAL_ONLY = 1;
public const int TCL_NAMESPACE_ONLY = 2;
public const int TCL_APPEND_VALUE = 4;
public const int TCL_LIST_ELEMENT = 8;
public const int TCL_TRACE_READS = 0x10;
public const int TCL_TRACE_WRITES = 0x20;
public const int TCL_TRACE_UNSETS = 0x40;
public const int TCL_TRACE_DESTROYED = 0x80;
public const int Tcl_Interp_DESTROYED = 0x100;
public const int TCL_LEAVE_ERR_MSG = 0x200;
public const int TCL_TRACE_ARRAY = 0x800;
#if !TCL_REMOVE_OBSOLETE_TRACES
/* Required to support old variable/vdelete/vinfo traces */
public const int TCL_TRACE_OLD_STYLE = 0x1000;
#endif
/* Indicate the semantics of the result of a trace */
public const int TCL_TRACE_RESULT_DYNAMIC = 0x8000;
public const int TCL_TRACE_RESULT_OBJECT = 0x10000;
/*
* Flag values passed to command-related procedures.
*/
//#define TCL_TRACE_RENAME 0x2000
//#define TCL_TRACE_DELETE 0x4000
//#define TCL_ALLOW_INLINE_COMPILATION 0x20000
/*
* Flag values passed to Tcl_CreateObjTrace, and used internally
* by command execution traces. Slots 4,8,16 and 32 are
* used internally by execution traces (see tclCmdMZ.c)
*/
//#define TCL_TRACE_ENTER_EXEC 1
//#define TCL_TRACE_LEAVE_EXEC 2
/*
* The TCL_PARSE_PART1 flag is deprecated and has no effect.
* The part1 is now always parsed whenever the part2 is NULL.
* (This is to avoid a common error when converting code to
* use the new object based APIs and forgetting to give the
* flag)
*/
#if !TCL_NO_DEPRECATED
//# define TCL_PARSE_PART1 0x400
#endif
/*
* Types for linked variables:
*/
//const int TCL_LINK_INT = 1;
//const int TCL_LINK_DOUBLE = 2;
//const int TCL_LINK_BOOLEAN =3;
//const int TCL_LINK_STRING = 4;
//const int TCL_LINK_WIDE_INT= 5;
//const int TCL_LINK_READ_ONLY= 0x80;
/*
* Forward declarations of Tcl_HashTable and related types.
*/
//typedef struct Tcl_HashKeyType Tcl_HashKeyType;
//typedef struct Tcl_HashTable Tcl_HashTable;
//typedef struct Tcl_HashEntry Tcl_HashEntry;
//typedef unsigned int (Tcl_HashKeyProc) _ANSI_ARGS_((Tcl_HashTable *tablePtr,
// VOID *keyPtr));
//typedef int (Tcl_CompareHashKeysProc) _ANSI_ARGS_((VOID *keyPtr,
// Tcl_HashEntry *hPtr));
//typedef Tcl_HashEntry *(Tcl_AllocHashEntryProc) _ANSI_ARGS_((
// Tcl_HashTable *tablePtr, object *keyPtr));
//typedef void (Tcl_FreeHashEntryProc) _ANSI_ARGS_((Tcl_HashEntry *hPtr));
/*
* This flag controls whether the hash table stores the hash of a key, or
* recalculates it. There should be no reason for turning this flag off
* as it is completely binary and source compatible unless you directly
* access the bucketPtr member of the Tcl_HashTableEntry structure. This
* member has been removed and the space used to store the hash value.
*/
//#if !TCL_HASH_KEY_STORE_HASH
//# define TCL_HASH_KEY_STORE_HASH 1
//#endif
/*
* Structure definition for an entry in a hash table. No-one outside
* Tcl should access any of these fields directly; use the macros
* defined below.
*/
//struct Tcl_HashEntry {
// Tcl_HashEntry *nextPtr; /* Pointer to next entry in this
// * hash bucket, or NULL for end of
// * chain. */
// Tcl_HashTable *tablePtr; /* Pointer to table containing entry. */
#if TCL_HASH_KEY_STORE_HASH
# if TCL_PRESERVE_BINARY_COMPATABILITY
// VOID *hash; /* Hash value, stored as pointer to
// * ensure that the offsets of the
// * fields in this structure are not
// * changed. */
# else
// unsigned int hash; /* Hash value. */
# endif
#else
// Tcl_HashEntry **bucketPtr; /* Pointer to bucket that points to
// * first entry in this entry's chain:
// * used for deleting the entry. */
#endif
// ClientData clientData; /* Application stores something here
// * with Tcl_SetHashValue. */
// union { /* Key has one of these forms: */
// char *oneWordValue; /* One-word value for key. */
// Tcl_Obj *objPtr; /* Tcl_Obj * key value. */
// int words[1]; /* Multiple integer words for key.
// * The actual size will be as large
// * as necessary for this table's
// * keys. */
// char string[4]; /* String for key. The actual size
// * will be as large as needed to hold
// * the key. */
// } key; /* MUST BE LAST FIELD IN RECORD!! */
//};
/*
* Flags used in Tcl_HashKeyType.
*
* TCL_HASH_KEY_RANDOMIZE_HASH:
* There are some things, pointers for example
* which don't hash well because they do not use
* the lower bits. If this flag is set then the
* hash table will attempt to rectify this by
* randomising the bits and then using the upper
* N bits as the index into the table.
*/
//#define TCL_HASH_KEY_RANDOMIZE_HASH 0x1
/*
* Structure definition for the methods associated with a hash table
* key type.
*/
//#define TCL_HASH_KEY_TYPE_VERSION 1
//struct Tcl_HashKeyType {
// int version; /* Version of the table. If this structure is
// * extended in future then the version can be
// * used to distinguish between different
// * structures.
// */
// int flags; /* Flags, see above for details. */
// /* Calculates a hash value for the key. If this is NULL then the pointer
// * itself is used as a hash value.
// */
// Tcl_HashKeyProc *hashKeyProc;
// /* Compares two keys and returns zero if they do not match, and non-zero
// * if they do. If this is NULL then the pointers are compared.
// */
// Tcl_CompareHashKeysProc *compareKeysProc;
// /* Called to allocate memory for a new entry, i.e. if the key is a
// * string then this could allocate a single block which contains enough
// * space for both the entry and the string. Only the key field of the
// * allocated Tcl_HashEntry structure needs to be filled in. If something
// * else needs to be done to the key, i.e. incrementing a reference count
// * then that should be done by this function. If this is NULL then Tcl_Alloc
// * is used to allocate enough space for a Tcl_HashEntry and the key pointer
// * is assigned to key.oneWordValue.
// */
// Tcl_AllocHashEntryProc *allocEntryProc;
// /* Called to free memory associated with an entry. If something else needs
// * to be done to the key, i.e. decrementing a reference count then that
// * should be done by this function. If this is NULL then Tcl_Free is used
// * to free the Tcl_HashEntry.
// */
// Tcl_FreeHashEntryProc *freeEntryProc;
//};
/*
* Structure definition for a hash table. Must be in tcl.h so clients
* can allocate space for these structures, but clients should never
* access any fields in this structure.
*/
//#define TCL_SMALL_HASH_TABLE 4
//struct Tcl_HashTable {
// Tcl_HashEntry **buckets; /* Pointer to bucket array. Each
// * element points to first entry in
// * bucket's hash chain, or NULL. */
// Tcl_HashEntry *staticBuckets[TCL_SMALL_HASH_TABLE];
// /* Bucket array used for small tables
// * (to avoid mallocs and frees). */
// int numBuckets; /* Total number of buckets allocated
// * at **bucketPtr. */
// int numEntries; /* Total number of entries present
// * in table. */
// int rebuildSize; /* Enlarge table when numEntries gets
// * to be this large. */
// int downShift; /* Shift count used in hashing
// * function. Designed to use high-
// * order bits of randomized keys. */
// int mask; /* Mask value used in hashing
// * function. */
// int keyType; /* Type of keys used in this table.
// * It's either TCL_CUSTOM_KEYS,
// * TCL_STRING_KEYS, TCL.TCL_ONE_WORD_KEYS,
// * or an integer giving the number of
// * ints that is the size of the key.
// */
#if TCL_PRESERVE_BINARY_COMPATABILITY
// Tcl_HashEntry *(*findProc) _ANSI_ARGS_((Tcl_HashTable *tablePtr,
// string key));
// Tcl_HashEntry *(*createProc) _ANSI_ARGS_((Tcl_HashTable *tablePtr,
// string key, int *newPtr));
#endif
// Tcl_HashKeyType *typePtr; /* Type of the keys used in the
// * Tcl_HashTable. */
//};
/*
* Structure definition for information used to keep track of searches
* through hash tables:
*/
//typedef struct Tcl_HashSearch {
// Tcl_HashTable *tablePtr; /* Table being searched. */
// int nextIndex; /* Index of next bucket to be
// * enumerated after present one. */
// Tcl_HashEntry *nextEntryPtr; /* Next entry to be enumerated in the
// * the current bucket. */
//} Tcl_HashSearch;
/*
* Acceptable key types for hash tables:
*
* TCL_STRING_KEYS: The keys are strings, they are copied into
* the entry.
* TCL_ONE_WORD_KEYS: The keys are pointers, the pointer is stored
* in the entry.
* TCL_CUSTOM_TYPE_KEYS: The keys are arbitrary types which are copied
* into the entry.
* TCL_CUSTOM_PTR_KEYS: The keys are pointers to arbitrary types, the
* pointer is stored in the entry.
*
* While maintaining binary compatability the above have to be distinct
* values as they are used to differentiate between old versions of the
* hash table which don't have a typePtr and new ones which do. Once binary
* compatability is discarded in favour of making more wide spread changes
* TCL_STRING_KEYS can be the same as TCL_CUSTOM_TYPE_KEYS, and
* TCL_ONE_WORD_KEYS can be the same as TCL_CUSTOM_PTR_KEYS because they
* simply determine how the key is accessed from the entry and not the
* behavior.
*/
//#define TCL_STRING_KEYS 0
//#define TCL_ONE_WORD_KEYS 1
//#if TCL_PRESERVE_BINARY_COMPATABILITY
//# define TCL_CUSTOM_TYPE_KEYS -2
//# define TCL_CUSTOM_PTR_KEYS -1
//#else
//# define TCL_CUSTOM_TYPE_KEYS TCL_STRING_KEYS
//# define TCL_CUSTOM_PTR_KEYS TCL_ONE_WORD_KEYS
//#endif
/*
* Macros for clients to use to access fields of hash entries:
*/
//#define Tcl_GetHashValue(h) ((h)->clientData)
//#define Tcl_SetHashValue(h, value) ((h)->clientData = (ClientData) (value))
#if TCL_PRESERVE_BINARY_COMPATABILITY
//# define Tcl_GetHashKey(vtablePtr, h) \
// ((char ) (((vtablePtr)->keyType == TCL.Tcl_ONE_WORD_KEYS || \
// (vtablePtr)->keyType == TCL.Tcl_CUSTOM_PTR_KEYS) \
// ? (h)->key.oneWordValue \
// : (h)->key.string))
#else
//# define Tcl_GetHashKey(vtablePtr, h) \
// ((char ) (((vtablePtr)->keyType == TCL.Tcl_ONE_WORD_KEYS) \
// ? (h)->key.oneWordValue \
// : (h)->key.string))
#endif
/*
* Macros to use for clients to use to invoke find and create procedures
* for hash tables:
*/
#if TCL_PRESERVE_BINARY_COMPATABILITY
//# define Tcl_FindHashEntry(vtablePtr, key) \
// (*((vtablePtr)->findProc))(vtablePtr, key)
//# define Tcl_CreateHashEntry(vtablePtr, key, newPtr) \
// (*((vtablePtr)->createProc))(vtablePtr, key, newPtr)
#else //* !TCL_PRESERVE_BINARY_COMPATABILITY */
/*
* Macro to use new extended version of Tcl_InitHashTable.
*/
//# define Tcl_InitHashTable(vtablePtr, keyType) \
// Tcl_InitHashTableEx(vtablePtr, keyType, NULL)
#endif // * TCL_PRESERVE_BINARY_COMPATABILITY */
/*
* Flag values to pass to Tcl_DoOneEvent to disable searches
* for some kinds of events:
*/
//#define TCL_DONT_WAIT (1<<1)
//#define TCL_WINDOW_EVENTS (1<<2)
//#define TCL_FILE_EVENTS (1<<3)
//#define TCL_TIMER_EVENTS (1<<4)
//#define TCL_IDLE_EVENTS (1<<5) /* WAS 0x10 ???? */
//#define TCL_ALL_EVENTS (~TCL_DONT_WAIT)
/*
* The following structure defines a generic event for the Tcl event
* system. These are the things that are queued in calls to Tcl_QueueEvent
* and serviced later by Tcl_DoOneEvent. There can be many different
* kinds of events with different fields, corresponding to window events,
* timer events, etc. The structure for a particular event consists of
* a Tcl_Event header followed by additional information specific to that
* event.
*/
//struct Tcl_Event {
// Tcl_EventProc proc; /* Procedure to call to service this event. */
// struct Tcl_Event *nextPtr; /* Next in list of pending events, or NULL. */
//};
/*
* Positions to pass to Tcl_QueueEvent:
*/
//typedef enum {
// TCL_QUEUE_TAIL, TCL.TCL_QUEUE_HEAD, TCL.TCL_QUEUE_MARK
//} Tcl_QueuePosition;
/*
* Values to pass to Tcl_SetServiceMode to specify the behavior of notifier
* event routines.
*/
//#define TCL_SERVICE_NONE 0
//#define TCL_SERVICE_ALL 1
/*
* The following structure keeps is used to hold a time value, either as
* an absolute time (the number of seconds from the epoch) or as an
* elapsed time. On Unix systems the epoch is Midnight Jan 1, 1970 GMT.
* On Macintosh systems the epoch is Midnight Jan 1, 1904 GMT.
*/
//typedef struct Tcl_Time {
// long sec; /* Seconds. */
// long usec; /* Microseconds. */
//} Tcl_Time;
//typedef void (Tcl_SetTimerProc) _ANSI_ARGS_((Tcl_Time *timePtr));
//typedef int (Tcl_WaitForEventProc) _ANSI_ARGS_((Tcl_Time *timePtr));
/*
* Bits to pass to Tcl_CreateFileHandler and Tcl_CreateChannelHandler
* to indicate what sorts of events are of interest:
*/
//#define TCL_READABLE (1<<1)
//#define TCL_WRITABLE (1<<2)
//#define TCL_EXCEPTION (1<<3)
/*
* Flag values to pass to Tcl_OpenCommandChannel to indicate the
* disposition of the stdio handles. TCL_STDIN, TCL.TCL_STDOUT, TCL.TCL_STDERR,
* are also used in Tcl_GetStdChannel.
*/
//#define TCL_STDIN (1<<1)
//#define TCL_STDOUT (1<<2)
//#define TCL_STDERR (1<<3)
//#define TCL_ENFORCE_MODE (1<<4)
/*
* Bits passed to Tcl_DriverClose2Proc to indicate which side of a channel
* should be closed.
*/
//#define TCL_CLOSE_READ (1<<1)
//#define TCL_CLOSE_WRITE (1<<2)
/*
* Value to use as the closeProc for a channel that supports the
* close2Proc interface.
*/
//#define TCL_CLOSE2PROC ((Tcl_DriverCloseProc )1)
/*
* Channel version tag. This was introduced in 8.3.2/8.4.
*/
//#define TCL_CHANNEL_VERSION_1 ((Tcl_ChannelTypeVersion) 0x1)
//#define TCL_CHANNEL_VERSION_2 ((Tcl_ChannelTypeVersion) 0x2)
//#define TCL_CHANNEL_VERSION_3 ((Tcl_ChannelTypeVersion) 0x3)
//#define TCL_CHANNEL_VERSION_4 ((Tcl_ChannelTypeVersion) 0x4)
/*
* TIP #218: Channel Actions, Ids for Tcl_DriverThreadActionProc
*/
//#define TCL_CHANNEL_THREAD_INSERT (0)
//#define TCL_CHANNEL_THREAD_REMOVE (1)
/*
* Typedefs for the various operations in a channel type:
*/
//typedef int (Tcl_DriverBlockModeProc) _ANSI_ARGS_((
// ClientData instanceData, int mode));
//typedef int (Tcl_DriverCloseProc) _ANSI_ARGS_((ClientData instanceData,
// Tcl_Interp interp));
//typedef int (Tcl_DriverClose2Proc) _ANSI_ARGS_((ClientData instanceData,
// Tcl_Interp interp, int flags));
//typedef int (Tcl_DriverInputProc) _ANSI_ARGS_((ClientData instanceData,
// char *buf, int toRead, int *errorCodePtr));
//typedef int (Tcl_DriverOutputProc) _ANSI_ARGS_((ClientData instanceData,
// CONST84 char *buf, int toWrite, int *errorCodePtr));
//typedef int (Tcl_DriverSeekProc) _ANSI_ARGS_((ClientData instanceData,
// long offset, int mode, int *errorCodePtr));
//typedef int (Tcl_DriverSetOptionProc) _ANSI_ARGS_((
// ClientData instanceData, TCL.TCL_Interp interp,
// string optionName, string value));
//typedef int (Tcl_DriverGetOptionProc) _ANSI_ARGS_((
// ClientData instanceData, TCL.TCL_Interp interp,
// CONST84 char *optionName, TCL.TCL_DString *dsPtr));
//typedef void (Tcl_DriverWatchProc) _ANSI_ARGS_((
// ClientData instanceData, int mask));
//typedef int (Tcl_DriverGetHandleProc) _ANSI_ARGS_((
// ClientData instanceData, int direction,
// ClientData *handlePtr));
//typedef int (Tcl_DriverFlushProc) _ANSI_ARGS_((
// ClientData instanceData));
//typedef int (Tcl_DriverHandlerProc) _ANSI_ARGS_((
// ClientData instanceData, int interestMask));
//typedef Tcl_WideInt (Tcl_DriverWideSeekProc) _ANSI_ARGS_((
// ClientData instanceData, TCL.TCL_WideInt offset,
// int mode, int *errorCodePtr));
// /* TIP #218, Channel Thread Actions */
//typedef void (Tcl_DriverThreadActionProc) _ANSI_ARGS_ ((
// ClientData instanceData, int action));
/*
* The following declarations either map ckalloc and ckfree to
* malloc and free, or they map them to procedures with all sorts
* of debugging hooks defined in tclCkalloc.c.
*/
#if TCL_MEM_DEBUG
//# define ckalloc(x) Tcl_DbCkalloc(x, __FILE__, __LINE__)
//# define ckfree(x) Tcl_DbCkfree(x, __FILE__, __LINE__)
//# define ckrealloc(x,y) Tcl_DbCkrealloc((x), (y),__FILE__, __LINE__)
//# define attemptckalloc(x) Tcl_AttemptDbCkalloc(x, __FILE__, __LINE__)
//# define attemptckrealloc(x,y) Tcl_AttemptDbCkrealloc((x), (y), __FILE__, __LINE__)
#else // * !TCL_MEM_DEBUG */
/*
* If we are not using the debugging allocator, we should call the
* Tcl_Alloc, et al. routines in order to guarantee that every module
* is using the same memory allocator both inside and outside of the
* Tcl library.
*/
//# define ckalloc(x) Tcl_Alloc(x)
//# define ckfree(x) Tcl_Free(x)
//# define ckrealloc(x,y) Tcl_Realloc(x,y)
//# define attemptckalloc(x) Tcl_AttemptAlloc(x)
//# define attemptckrealloc(x,y) Tcl_AttemptRealloc(x,y)
//# define Tcl_InitMemory(x)
//# define Tcl_DumpActiveMemory(x)
//# define Tcl_ValidateAllMemory(x,y)
#endif // * !TCL_MEM_DEBUG */
/*
* struct Tcl_ChannelType:
*
* One such structure exists for each type (kind) of channel.
* It collects together in one place all the functions that are
* part of the specific channel type.
*
* It is recommend that the Tcl_Channel* functions are used to access
* elements of this structure, instead of direct accessing.
*/
//typedef struct Tcl_ChannelType {
// char *typeName; /* The name of the channel type in Tcl
// * commands. This storage is owned by
// * channel type. */
// Tcl_ChannelTypeVersion version; /* Version of the channel type. */
// Tcl_DriverCloseProc *closeProc; /* Procedure to call to close the
// * channel, or TCL_CLOSE2PROC if the
// * close2Proc should be used
// * instead. */
// Tcl_DriverInputProc *inputProc; /* Procedure to call for input
// * on channel. */
// Tcl_DriverOutputProc *outputProc; /* Procedure to call for output
// * on channel. */
// Tcl_DriverSeekProc *seekProc; /* Procedure to call to seek
// * on the channel. May be NULL. */
// Tcl_DriverSetOptionProc *setOptionProc;
// /* Set an option on a channel. */
// Tcl_DriverGetOptionProc *getOptionProc;
// /* Get an option from a channel. */
// Tcl_DriverWatchProc *watchProc; /* Set up the notifier to watch
// * for events on this channel. */
// Tcl_DriverGetHandleProc *getHandleProc;
// /* Get an OS handle from the channel
// * or NULL if not supported. */
// Tcl_DriverClose2Proc *close2Proc; /* Procedure to call to close the
// * channel if the device supports
// * closing the read & write sides
// * independently. */
// Tcl_DriverBlockModeProc *blockModeProc;
// /* Set blocking mode for the
// * raw channel. May be NULL. */
// /*
// * Only valid in TCL_CHANNEL_VERSION_2 channels or later
// */
// Tcl_DriverFlushProc *flushProc; /* Procedure to call to flush a
// * channel. May be NULL. */
// Tcl_DriverHandlerProc *handlerProc; /* Procedure to call to handle a
// * channel event. This will be passed
// * up the stacked channel chain. */
// /*
// * Only valid in TCL_CHANNEL_VERSION_3 channels or later
// */
// Tcl_DriverWideSeekProc *wideSeekProc;
// /* Procedure to call to seek
// * on the channel which can
// * handle 64-bit offsets. May be
// * NULL, and must be NULL if
// * seekProc is NULL. */
// /*
// * Only valid in TCL_CHANNEL_VERSION_4 channels or later
// * TIP #218, Channel Thread Actions
// */
// Tcl_DriverThreadActionProc *threadActionProc;
// /* Procedure to call to notify
// * the driver of thread specific
// * activity for a channel.
// * May be NULL. */
//} Tcl_ChannelType;
/*
* The following flags determine whether the blockModeProc above should
* set the channel into blocking or nonblocking mode. They are passed
* as arguments to the blockModeProc procedure in the above structure.
*/
//#define TCL_MODE_BLOCKING 0 /* Put channel into blocking mode. */
//#define TCL_MODE_NONBLOCKING 1 /* Put channel into nonblocking
// * mode. */
/*
* Enum for different types of file paths.
*/
//typedef enum Tcl_PathType {
// TCL_PATH_ABSOLUTE,
// TCL_PATH_RELATIVE,
// TCL_PATH_VOLUME_RELATIVE
//} Tcl_PathType;
/*
* The following structure is used to pass glob type data amongst
* the various glob routines and Tcl_FSMatchInDirectory.
*/
//typedef struct Tcl_GlobTypeData {
// /* Corresponds to bcdpfls as in 'find -t' */
// int type;
// /* Corresponds to file permissions */
// int perm;
// /* Acceptable mac type */
// Tcl_Obj* macType;
// /* Acceptable mac creator */
// Tcl_Obj* macCreator;
//} Tcl_GlobTypeData;
/*
* type and permission definitions for glob command
*/
//#define TCL_GLOB_TYPE_BLOCK (1<<0)
//#define TCL_GLOB_TYPE_CHAR (1<<1)
//#define TCL_GLOB_TYPE_DIR (1<<2)
//#define TCL_GLOB_TYPE_PIPE (1<<3)
//#define TCL_GLOB_TYPE_FILE (1<<4)
//#define TCL_GLOB_TYPE_LINK (1<<5)
//#define TCL_GLOB_TYPE_SOCK (1<<6)
//#define TCL_GLOB_TYPE_MOUNT (1<<7)
//#define TCL_GLOB_PERM_RONLY (1<<0)
//#define TCL_GLOB_PERM_HIDDEN (1<<1)
//#define TCL_GLOB_PERM_R (1<<2)
//#define TCL_GLOB_PERM_W (1<<3)
//#define TCL_GLOB_PERM_X (1<<4)
/*
* Typedefs for the various filesystem operations:
*/
//typedef int (Tcl_FSStatProc) _ANSI_ARGS_((Tcl_Obj pathPtr, TCL.TCL_StatBuf *buf));
//typedef int (Tcl_FSAccessProc) _ANSI_ARGS_((Tcl_Obj pathPtr, int mode));
//typedef Tcl_Channel (Tcl_FSOpenFileChannelProc)
// _ANSI_ARGS_((Tcl_Interp interp, TCL.TCL_Obj pathPtr,
// int mode, int permissions));
//typedef int (Tcl_FSMatchInDirectoryProc) _ANSI_ARGS_((Tcl_Interp* interp,
// Tcl_Obj *result, TCL.TCL_Obj pathPtr, CONST char pattern,
// Tcl_GlobTypeData * types));
//typedef Tcl_Obj* (Tcl_FSGetCwdProc) _ANSI_ARGS_((Tcl_Interp interp));
//typedef int (Tcl_FSChdirProc) _ANSI_ARGS_((Tcl_Obj pathPtr));
//typedef int (Tcl_FSLstatProc) _ANSI_ARGS_((Tcl_Obj pathPtr,
// Tcl_StatBuf *buf));
//typedef int (Tcl_FSCreateDirectoryProc) _ANSI_ARGS_((Tcl_Obj pathPtr));
//typedef int (Tcl_FSDeleteFileProc) _ANSI_ARGS_((Tcl_Obj pathPtr));
//typedef int (Tcl_FSCopyDirectoryProc) _ANSI_ARGS_((Tcl_Obj *srcPathPtr,
// Tcl_Obj *destPathPtr, TCL.TCL_Obj **errorPtr));
//typedef int (Tcl_FSCopyFileProc) _ANSI_ARGS_((Tcl_Obj *srcPathPtr,
// Tcl_Obj *destPathPtr));
//typedef int (Tcl_FSRemoveDirectoryProc) _ANSI_ARGS_((Tcl_Obj pathPtr,
// int recursive, TCL.TCL_Obj **errorPtr));
//typedef int (Tcl_FSRenameFileProc) _ANSI_ARGS_((Tcl_Obj *srcPathPtr,
// Tcl_Obj *destPathPtr));
//typedef void (Tcl_FSUnloadFileProc) _ANSI_ARGS_((Tcl_LoadHandle loadHandle));
//typedef Tcl_Obj* (Tcl_FSListVolumesProc) _ANSI_ARGS_((void));
/* We have to declare the utime structure here. */
//struct utimbuf;
//typedef int (Tcl_FSUtimeProc) _ANSI_ARGS_((Tcl_Obj pathPtr,
// struct utimbuf *tval));
//typedef int (Tcl_FSNormalizePathProc) _ANSI_ARGS_((Tcl_Interp interp,
// Tcl_Obj pathPtr, int nextCheckpoint));
//typedef int (Tcl_FSFileAttrsGetProc) _ANSI_ARGS_((Tcl_Interp interp,
// int index, TCL.TCL_Obj pathPtr,
// Tcl_Obj **objPtrRef));
//typedef CONST char** (Tcl_FSFileAttrStringsProc) _ANSI_ARGS_((Tcl_Obj pathPtr,
// Tcl_Obj** objPtrRef));
//typedef int (Tcl_FSFileAttrsSetProc) _ANSI_ARGS_((Tcl_Interp interp,
// int index, TCL.TCL_Obj pathPtr,
// Tcl_Obj *objPtr));
//typedef Tcl_Obj* (Tcl_FSLinkProc) _ANSI_ARGS_((Tcl_Obj pathPtr,
// Tcl_Obj *toPtr, int linkType));
//typedef int (Tcl_FSLoadFileProc) _ANSI_ARGS_((Tcl_Interp * interp,
// Tcl_Obj pathPtr,
// Tcl_LoadHandle *handlePtr,
// Tcl_FSUnloadFileProc **unloadProcPtr));
//typedef int (Tcl_FSPathInFilesystemProc) _ANSI_ARGS_((Tcl_Obj pathPtr,
// ClientData *clientDataPtr));
//typedef Tcl_Obj* (Tcl_FSFilesystemPathTypeProc)
// _ANSI_ARGS_((Tcl_Obj pathPtr));
//typedef Tcl_Obj* (Tcl_FSFilesystemSeparatorProc)
// _ANSI_ARGS_((Tcl_Obj pathPtr));
//typedef void (Tcl_FSFreeInternalRepProc) _ANSI_ARGS_((ClientData clientData));
//typedef ClientData (Tcl_FSDupInternalRepProc)
// _ANSI_ARGS_((ClientData clientData));
//typedef Tcl_Obj* (Tcl_FSInternalToNormalizedProc)
// _ANSI_ARGS_((ClientData clientData));
//typedef ClientData (Tcl_FSCreateInternalRepProc) _ANSI_ARGS_((Tcl_Obj pathPtr));
//typedef struct Tcl_FSVersion_ *Tcl_FSVersion;
/*
*----------------------------------------------------------------
* Data structures related to hooking into the filesystem
*----------------------------------------------------------------
*/
/*
* Filesystem version tag. This was introduced in 8.4.
*/
//#define TCL_FILESYSTEM_VERSION_1 ((Tcl_FSVersion) 0x1)
/*
* struct Tcl_Filesystem:
*
* One such structure exists for each type (kind) of filesystem.
* It collects together in one place all the functions that are
* part of the specific filesystem. Tcl always accesses the
* filesystem through one of these structures.
*
* Not all entries need be non-NULL; any which are NULL are simply
* ignored. However, a complete filesystem should provide all of
* these functions. The explanations in the structure show
* the importance of each function.
*/
//typedef struct Tcl_Filesystem {
// string typeName; /* The name of the filesystem. */
// int structureLength; /* Length of this structure, so future
// * binary compatibility can be assured. */
// Tcl_FSVersion version;
// /* Version of the filesystem type. */
// Tcl_FSPathInFilesystemProc pathInFilesystemProc;
// /* Function to check whether a path is in
// * this filesystem. This is the most
// * important filesystem procedure. */
// Tcl_FSDupInternalRepProc *dupInternalRepProc;
// /* Function to duplicate internal fs rep. May
// * be NULL (but then fs is less efficient). */
// Tcl_FSFreeInternalRepProc *freeInternalRepProc;
// /* Function to free internal fs rep. Must
// * be implemented, if internal representations
// * need freeing, otherwise it can be NULL. */
// Tcl_FSInternalToNormalizedProc *internalToNormalizedProc;
// /* Function to convert internal representation
// * to a normalized path. Only required if
// * the fs creates pure path objects with no
// * string/path representation. */
// Tcl_FSCreateInternalRepProc *createInternalRepProc;
// /* Function to create a filesystem-specific
// * internal representation. May be NULL
// * if paths have no internal representation,
// * or if the Tcl_FSPathInFilesystemProc
// * for this filesystem always immediately
// * creates an internal representation for
// * paths it accepts. */
// Tcl_FSNormalizePathProc *normalizePathProc;
// /* Function to normalize a path. Should
// * be implemented for all filesystems
// * which can have multiple string
// * representations for the same path
// * object. */
// Tcl_FSFilesystemPathTypeProc *filesystemPathTypeProc;
// /* Function to determine the type of a
// * path in this filesystem. May be NULL. */
// Tcl_FSFilesystemSeparatorProc *filesystemSeparatorProc;
// /* Function to return the separator
// * character(s) for this filesystem. Must
// * be implemented. */
// Tcl_FSStatProc *statProc;
// /*
// * Function to process a 'Tcl_FSStat()'
// * call. Must be implemented for any
// * reasonable filesystem.
// */
// Tcl_FSAccessProc *accessProc;
// /*
// * Function to process a 'Tcl_FSAccess()'
// * call. Must be implemented for any
// * reasonable filesystem.
// */
// Tcl_FSOpenFileChannelProc *openFileChannelProc;
// /*
// * Function to process a
// * 'Tcl_FSOpenFileChannel()' call. Must be
// * implemented for any reasonable
// * filesystem.
// */
// Tcl_FSMatchInDirectoryProc *matchInDirectoryProc;
// /* Function to process a
// * 'Tcl_FSMatchInDirectory()'. If not
// * implemented, then glob and recursive
// * copy functionality will be lacking in
// * the filesystem. */
// Tcl_FSUtimeProc *utimeProc;
// /* Function to process a
// * 'Tcl_FSUtime()' call. Required to
// * allow setting (not reading) of times
// * with 'file mtime', 'file atime' and
// * the open-r/open-w/fcopy implementation
// * of 'file copy'. */
// Tcl_FSLinkProc *linkProc;
// /* Function to process a
// * 'Tcl_FSLink()' call. Should be
// * implemented only if the filesystem supports
// * links (reading or creating). */
// Tcl_FSListVolumesProc *listVolumesProc;
// /* Function to list any filesystem volumes
// * added by this filesystem. Should be
// * implemented only if the filesystem adds
// * volumes at the head of the filesystem. */
// Tcl_FSFileAttrStringsProc *fileAttrStringsProc;
// /* Function to list all attributes strings
// * which are valid for this filesystem.
// * If not implemented the filesystem will
// * not support the 'file attributes' command.
// * This allows arbitrary additional information
// * to be attached to files in the filesystem. */
// Tcl_FSFileAttrsGetProc *fileAttrsGetProc;
// /* Function to process a
// * 'Tcl_FSFileAttrsGet()' call, used by
// * 'file attributes'. */
// Tcl_FSFileAttrsSetProc *fileAttrsSetProc;
// /* Function to process a
// * 'Tcl_FSFileAttrsSet()' call, used by
// * 'file attributes'. */
// Tcl_FSCreateDirectoryProc *createDirectoryProc;
// /* Function to process a
// * 'Tcl_FSCreateDirectory()' call. Should
// * be implemented unless the FS is
// * read-only. */
// Tcl_FSRemoveDirectoryProc *removeDirectoryProc;
// /* Function to process a
// * 'Tcl_FSRemoveDirectory()' call. Should
// * be implemented unless the FS is
// * read-only. */
// Tcl_FSDeleteFileProc *deleteFileProc;
// /* Function to process a
// * 'Tcl_FSDeleteFile()' call. Should
// * be implemented unless the FS is
// * read-only. */
// Tcl_FSCopyFileProc *copyFileProc;
// /* Function to process a
// * 'Tcl_FSCopyFile()' call. If not
// * implemented Tcl will fall back
// * on open-r, open-w and fcopy as
// * a copying mechanism, for copying
// * actions initiated in Tcl (not C). */
// Tcl_FSRenameFileProc *renameFileProc;
// /* Function to process a
// * 'Tcl_FSRenameFile()' call. If not
// * implemented, Tcl will fall back on
// * a copy and delete mechanism, for
// * rename actions initiated in Tcl (not C). */
// Tcl_FSCopyDirectoryProc *copyDirectoryProc;
// /* Function to process a
// * 'Tcl_FSCopyDirectory()' call. If
// * not implemented, Tcl will fall back
// * on a recursive create-dir, file copy
// * mechanism, for copying actions
// * initiated in Tcl (not C). */
// Tcl_FSLstatProc *lstatProc;
// /* Function to process a
// * 'Tcl_FSLstat()' call. If not implemented,
// * Tcl will attempt to use the 'statProc'
// * defined above instead. */
// Tcl_FSLoadFileProc *loadFileProc;
// /* Function to process a
// * 'Tcl_FSLoadFile()' call. If not
// * implemented, Tcl will fall back on
// * a copy to native-temp followed by a
// * Tcl_FSLoadFile on that temporary copy. */
// Tcl_FSGetCwdProc *getCwdProc;
// /*
// * Function to process a 'Tcl_FSGetCwd()'
// * call. Most filesystems need not
// * implement this. It will usually only be
// * called once, if 'getcwd' is called
// * before 'chdir'. May be NULL.
// */
// Tcl_FSChdirProc *chdirProc;
// /*
// * Function to process a 'Tcl_FSChdir()'
// * call. If filesystems do not implement
// * this, it will be emulated by a series of
// * directory access checks. Otherwise,
// * virtual filesystems which do implement
// * it need only respond with a positive
// * return result if the dirName is a valid
// * directory in their filesystem. They
// * need not remember the result, since that
// * will be automatically remembered for use
// * by GetCwd. Real filesystems should
// * carry out the correct action (i.e. call
// * the correct system 'chdir' api). If not
// * implemented, then 'cd' and 'pwd' will
// * fail inside the filesystem.
// */
//} Tcl_Filesystem;
/*
* The following definitions are used as values for the 'linkAction' flag
* to Tcl_FSLink, or the linkProc of any filesystem. Any combination
* of flags can be given. For link creation, the linkProc should create
* a link which matches any of the types given.
*
* TCL_CREATE_SYMBOLIC_LINK: Create a symbolic or soft link.
* TCL_CREATE_HARD_LINK: Create a hard link.
*/
//#define TCL_CREATE_SYMBOLIC_LINK 0x01
//#define TCL_CREATE_HARD_LINK 0x02
/*
* The following structure represents the Notifier functions that
* you can override with the Tcl_SetNotifier call.
*/
//typedef struct Tcl_NotifierProcs {
// Tcl_SetTimerProc *setTimerProc;
// Tcl_WaitForEventProc *waitForEventProc;
// Tcl_CreateFileHandlerProc *createFileHandlerProc;
// Tcl_DeleteFileHandlerProc *deleteFileHandlerProc;
// Tcl_InitNotifierProc *initNotifierProc;
// Tcl_FinalizeNotifierProc *finalizeNotifierProc;
// Tcl_AlertNotifierProc *alertNotifierProc;
// Tcl_ServiceModeHookProc *serviceModeHookProc;
//} Tcl_NotifierProcs;
/*
* The following structure represents a user-defined encoding. It collects
* together all the functions that are used by the specific encoding.
*/
//typedef struct Tcl_EncodingType {
// string encodingName; /* The name of the encoding, e.g. "euc-jp".
// * This name is the unique key for this
// * encoding type. */
// Tcl_EncodingConvertProc *toUtfProc;
// /* Procedure to convert from external
// * encoding into UTF-8. */
// Tcl_EncodingConvertProc *fromUtfProc;
// /* Procedure to convert from UTF-8 into
// * external encoding. */
// Tcl_EncodingFreeProc *freeProc;
// /* If non-NULL, procedure to call when this
// * encoding is deleted. */
// ClientData clientData; /* Arbitrary value associated with encoding
// * type. Passed to conversion procedures. */
// int nullSize; /* Number of zero bytes that signify
// * end-of-string in this encoding. This
// * number is used to determine the source
// * string length when the srcLen argument is
// * negative. Must be 1 or 2. */
//} Tcl_EncodingType;
/*
* The following definitions are used as values for the conversion control
* flags argument when converting text from one character set to another:
*
* TCL_ENCODING_START: Signifies that the source buffer is the first
* block in a (potentially multi-block) input
* stream. Tells the conversion procedure to
* reset to an initial state and perform any
* initialization that needs to occur before the
* first byte is converted. If the source
* buffer contains the entire input stream to be
* converted, this flag should be set.
*
* TCL_ENCODING_END: Signifies that the source buffer is the last
* block in a (potentially multi-block) input
* stream. Tells the conversion routine to
* perform any finalization that needs to occur
* after the last byte is converted and then to
* reset to an initial state. If the source
* buffer contains the entire input stream to be
* converted, this flag should be set.
*
* TCL_ENCODING_STOPONERROR: If set, then the converter will return
* immediately upon encountering an invalid
* byte sequence or a source character that has
* no mapping in the target encoding. If clear,
* then the converter will skip the problem,
* substituting one or more "close" characters
* in the destination buffer and then continue
* to sonvert the source.
*/
//#define TCL_ENCODING_START 0x01
//#define TCL_ENCODING_END 0x02
//#define TCL_ENCODING_STOPONERROR 0x04
/*
* The following data structures and declarations are for the new Tcl
* parser.
*/
/*
* For each word of a command, and for each piece of a word such as a
* variable reference, one of the following structures is created to
* describe the token.
*/
//typedef struct Tcl_Token {
// int type; /* Type of token, such as TCL_TOKEN_WORD;
// * see below for valid types. */
// string start; /* First character in token. */
// int size; /* Number of bytes in token. */
// int numComponents; /* If this token is composed of other
// * tokens, this field tells how many of
// * them there are (including components of
// * components, etc.). The component tokens
// * immediately follow this one. */
//} Tcl_Token;
/*
* Type values defined for Tcl_Token structures. These values are
* defined as mask bits so that it's easy to check for collections of
* types.
*
* TCL_TOKEN_WORD - The token describes one word of a command,
* from the first non-blank character of
* the word (which may be " or {) up to but
* not including the space, semicolon, or
* bracket that terminates the word.
* NumComponents counts the total number of
* sub-tokens that make up the word. This
* includes, for example, sub-tokens of
* TCL_TOKEN_VARIABLE tokens.
* TCL_TOKEN_SIMPLE_WORD - This token is just like TCL_TOKEN_WORD
* except that the word is guaranteed to
* consist of a single TCL_TOKEN_TEXT
* sub-token.
* TCL_TOKEN_TEXT - The token describes a range of literal
* text that is part of a word.
* NumComponents is always 0.
* TCL_TOKEN_BS - The token describes a backslash sequence
* that must be collapsed. NumComponents
* is always 0.
* TCL_TOKEN_COMMAND - The token describes a command whose result
* must be substituted into the word. The
* token includes the enclosing brackets.
* NumComponents is always 0.
* TCL_TOKEN_VARIABLE - The token describes a variable
* substitution, including the dollar sign,
* variable name, and array index (if there
* is one) up through the right
* parentheses. NumComponents tells how
* many additional tokens follow to
* represent the variable name. The first
* token will be a TCL_TOKEN_TEXT token
* that describes the variable name. If
* the variable is an array reference then
* there will be one or more additional
* tokens, of type TCL_TOKEN_TEXT,
* TCL_TOKEN_BS, TCL.TCL_TOKEN_COMMAND, and
* TCL_TOKEN_VARIABLE, that describe the
* array index; numComponents counts the
* total number of nested tokens that make
* up the variable reference, including
* sub-tokens of TCL_TOKEN_VARIABLE tokens.
* TCL_TOKEN_SUB_EXPR - The token describes one subexpression of a
* expression, from the first non-blank
* character of the subexpression up to but not
* including the space, brace, or bracket
* that terminates the subexpression.
* NumComponents counts the total number of
* following subtokens that make up the
* subexpression; this includes all subtokens
* for any nested TCL_TOKEN_SUB_EXPR tokens.
* For example, a numeric value used as a
* primitive operand is described by a
* TCL_TOKEN_SUB_EXPR token followed by a
* TCL_TOKEN_TEXT token. A binary subexpression
* is described by a TCL_TOKEN_SUB_EXPR token
* followed by the TCL_TOKEN_OPERATOR token
* for the operator, then TCL_TOKEN_SUB_EXPR
* tokens for the left then the right operands.
* TCL_TOKEN_OPERATOR - The token describes one expression operator.
* An operator might be the name of a math
* function such as "abs". A TCL_TOKEN_OPERATOR
* token is always preceeded by one
* TCL_TOKEN_SUB_EXPR token for the operator's
* subexpression, and is followed by zero or
* more TCL_TOKEN_SUB_EXPR tokens for the
* operator's operands. NumComponents is
* always 0.
*/
//#define TCL_TOKEN_WORD 1
//#define TCL_TOKEN_SIMPLE_WORD 2
//#define TCL_TOKEN_TEXT 4
//#define TCL_TOKEN_BS 8
//#define TCL_TOKEN_COMMAND 16
//#define TCL_TOKEN_VARIABLE 32
//#define TCL_TOKEN_SUB_EXPR 64
//#define TCL_TOKEN_OPERATOR 128
/*
* Parsing error types. On any parsing error, one of these values
* will be stored in the error field of the Tcl_Parse structure
* defined below.
*/
//#define TCL_PARSE_SUCCESS 0
//#define TCL_PARSE_QUOTE_EXTRA 1
//#define TCL_PARSE_BRACE_EXTRA 2
//#define TCL_PARSE_MISSING_BRACE 3
//#define TCL_PARSE_MISSING_BRACKET 4
//#define TCL_PARSE_MISSING_PAREN 5
//#define TCL_PARSE_MISSING_QUOTE 6
//#define TCL_PARSE_MISSING_VAR_BRACE 7
//#define TCL_PARSE_SYNTAX 8
//#define TCL_PARSE_BAD_NUMBER 9
/*
* A structure of the following type is filled in by Tcl_ParseCommand.
* It describes a single command parsed from an input string.
*/
//#define NUM_STATIC_TOKENS 20
//typedef struct Tcl_Parse {
// string commentStart; /* Pointer to # that begins the first of
// * one or more comments preceding the
// * command. */
// int commentSize; /* Number of bytes in comments (up through
// * newline character that terminates the
// * last comment). If there were no
// * comments, this field is 0. */
// string commandStart; /* First character in first word of command. */
// int commandSize; /* Number of bytes in command, including
// * first character of first word, up
// * through the terminating newline,
// * close bracket, or semicolon. */
// int numWords; /* Total number of words in command. May
// * be 0. */
// Tcl_Token *tokenPtr; /* Pointer to first token representing
// * the words of the command. Initially
// * points to staticTokens, but may change
// * to point to malloc-ed space if command
// * exceeds space in staticTokens. */
// int numTokens; /* Total number of tokens in command. */
// int tokensAvailable; /* Total number of tokens available at
// * *tokenPtr. */
// int errorType; /* One of the parsing error types defined
// * above. */
// /*
// * The fields below are intended only for the private use of the
// * parser. They should not be used by procedures that invoke
// * Tcl_ParseCommand.
// */
// string string; /* The original command string passed to
// * Tcl_ParseCommand. */
// string end; /* Points to the character just after the
// * last one in the command string. */
// Tcl_Interp interp; /* Interpreter to use for error reporting,
// * or NULL. */
// string term; /* Points to character in string that
// * terminated most recent token. Filled in
// * by ParseTokens. If an error occurs,
// * points to beginning of region where the
// * error occurred (e.g. the open brace if
// * the close brace is missing). */
// int incomplete; /* This field is set to 1 by Tcl_ParseCommand
// * if the command appears to be incomplete.
// * This information is used by
// * Tcl_CommandComplete. */
// Tcl_Token staticTokens[NUM_STATIC_TOKENS];
// /* Initial space for tokens for command.
// * This space should be large enough to
// * accommodate most commands; dynamic
// * space is allocated for very large
// * commands that don't fit here. */
//} Tcl_Parse;
/*
* The following definitions are the error codes returned by the conversion
* routines:
*
* TCL_OK: All characters were converted.
*
* TCL_CONVERT_NOSPACE: The output buffer would not have been large
* enough for all of the converted data; as many
* characters as could fit were converted though.
*
* TCL_CONVERT_MULTIBYTE: The last few bytes in the source string were
* the beginning of a multibyte sequence, but
* more bytes were needed to complete this
* sequence. A subsequent call to the conversion
* routine should pass the beginning of this
* unconverted sequence plus additional bytes
* from the source stream to properly convert
* the formerly split-up multibyte sequence.
*
* TCL_CONVERT_SYNTAX: The source stream contained an invalid
* character sequence. This may occur if the
* input stream has been damaged or if the input
* encoding method was misidentified. This error
* is reported only if TCL_ENCODING_STOPONERROR
* was specified.
*
* TCL_CONVERT_UNKNOWN: The source string contained a character
* that could not be represented in the target
* encoding. This error is reported only if
* TCL_ENCODING_STOPONERROR was specified.
*/
//#define TCL_CONVERT_MULTIBYTE -1
//#define TCL_CONVERT_SYNTAX -2
//#define TCL_CONVERT_UNKNOWN -3
//#define TCL_CONVERT_NOSPACE -4
/*
* The maximum number of bytes that are necessary to represent a single
* Unicode character in UTF-8. The valid values should be 3 or 6 (or
* perhaps 1 if we want to support a non-unicode enabled core).
* If 3, then Tcl_UniChar must be 2-bytes in size (UCS-2). (default)
* If 6, then Tcl_UniChar must be 4-bytes in size (UCS-4).
* At this time UCS-2 mode is the default and recommended mode.
* UCS-4 is experimental and not recommended. It works for the core,
* but most extensions expect UCS-2.
*/
#if !TCL_UTF_MAX
//#define TCL_UTF_MAX 3
#endif
/*
* This represents a Unicode character. Any changes to this should
* also be reflected in regcustom.h.
*/
//#if TCL_UTF_MAX > 3
// /*
// * unsigned int isn't 100% accurate as it should be a strict 4-byte
// * value (perhaps wchar_t). 64-bit systems may have troubles. The
// * size of this value must be reflected correctly in regcustom.h and
// * in tclEncoding.c.
// * XXX: Tcl is currently UCS-2 and planning UTF-16 for the Unicode
// * XXX: string rep that Tcl_UniChar represents. Changing the size
// * XXX: of Tcl_UniChar is /not/ supported.
// */
//typedef unsigned int Tcl_UniChar;
//#else
//typedef unsigned short Tcl_UniChar;
//#endif
/*
* Deprecated Tcl procedures:
*/
#if !TCL_NO_DEPRECATED
//# define Tcl_EvalObj(interp,objPtr) \
// Tcl_EvalObjEx((interp),(objPtr),0)
//# define Tcl_GlobalEvalObj(interp,objPtr) \
// Tcl_EvalObjEx((interp),(objPtr),TCL_EVAL_GLOBAL)
#endif
/*
* These function have been renamed. The old names are deprecated, but we
* define these macros for backwards compatibilty.
*/
//#define Tcl_Ckalloc Tcl_Alloc
//#define Tcl_Ckfree Tcl_Free
//#define Tcl_Ckrealloc Tcl_Realloc
//#define Tcl_return TCL.TCL_SetResult
//#define Tcl_TildeSubst Tcl_TranslateFileName
//#define panic Tcl_Panic
//#define panicVA Tcl_PanicVA
/*
* The following constant is used to test for older versions of Tcl
* in the stubs tables.
*
* Jan Nijtman's plus patch uses 0xFCA1BACF, so we need to pick a different
* value since the stubs tables don't match.
*/
//#define TCL_STUB_MAGIC ((int)0xFCA3BACF)
/*
* The following function is required to be defined in all stubs aware
* extensions. The function is actually implemented in the stub
* library, not the main Tcl library, although there is a trivial
* implementation in the main library in case an extension is statically
* linked into an application.
*/
//EXTERN string Tcl_InitStubs _ANSI_ARGS_((Tcl_Interp interp,
// string version, int exact));
#if !USE_TCL_STUBS
/*
* When not using stubs, make it a macro.
*/
//#define Tcl_InitStubs(interp, version, exact) \
// Tcl_PkgRequire(interp, "Tcl", version, exact)
#endif
/*
* Include the public function declarations that are accessible via
* the stubs table.
*/
//#include "tclDecls.h"
/*
* Include platform specific public function declarations that are
* accessible via the stubs table.
*/
/*
* tclPlatDecls.h can't be included here on the Mac, as we need
* Mac specific headers to define the Mac types used in this file,
* but these Mac haders conflict with a number of tk types
* and thus can't be included in the globally read tcl.h
* This header was originally added here as a fix for bug 5241
* (stub link error for symbols in TclPlatStubs table), as a work-
* around for the bug on the mac, tclMac.h is included immediately
* after tcl.h in the tcl precompiled header (with DLLEXPORT set).
*/
//#if !(MAC_TCL)
//#include "tclPlatDecls.h"
//#endif
/*
* Public functions that are not accessible via the stubs table.
*/
//EXTERN void Tcl_Main _ANSI_ARGS_((int argc, char **argv,
// Tcl_AppInitProc *appInitProc));
/*
* Convenience declaration of Tcl_AppInit for backwards compatibility.
* This function is not *implemented* by the tcl library, so the storage
* class is neither DLLEXPORT nor DLLIMPORT
*/
//#undef TCL_STORAGE_CLASS
//#define TCL_STORAGE_CLASS
//EXTERN int Tcl_AppInit _ANSI_ARGS_((Tcl_Interp interp));
//#undef TCL_STORAGE_CLASS
//#define TCL_STORAGE_CLASS DLLIMPORT
#endif // * RC_INVOKED */
/*
* end block for C++
*/
#if __cplusplus
//}
#endif
#endif // * _TCL */
}
}
| 41.673959 | 174 | 0.617814 | [
"MIT"
] | ARLM-Keller/csharp-sqlite | TCL/src/tcl_h.cs | 99,059 | C# |
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Reflection;
namespace WatchThis.Utilities
{
// From http://stackoverflow.com/questions/7597761/reflecting-across-serialized-object-to-set-propertychanged-event
public static class NotifyPropertyChangedHelper
{
public delegate void ChangeOccuredHandler(object sender, string propertyName);
public static void SetupPropertyChanged(INotifyPropertyChanged component, ChangeOccuredHandler changedHandler)
{
SetupPropertyChanged(new List<object>(), component, changedHandler);
}
static void SetupPropertyChanged(IList<object> closed, INotifyPropertyChanged component, ChangeOccuredHandler changedHandler)
{
if (closed.Contains(component)) return; // event was already registered
closed.Add(component); //adds the property that is to be processed
//sets the property changed event if the property isn't a collection
if (!(component is INotifyCollectionChanged))
component.PropertyChanged += (sender, e) => changedHandler(sender, e.PropertyName);
/*
* If the component is an enumerable there are two steps. First check to see if it supports the INotifyCollectionChanged event.
* If it supports it add and handler on to this object to support notification. Next iterate through the collection of objects
* to add hook up their PropertyChangedEvent.
*
* If the component isn't a collection then iterate through its properties and attach the changed handler to the properties.
*/
if (component is IEnumerable<object>)
{
if (component is INotifyCollectionChanged)
{
//((INotifyCollectionChanged)component).CollectionChanged += collectionHandler;
((INotifyCollectionChanged)component).CollectionChanged += (sender, e) => changedHandler(sender, "collection");
}
foreach (object obj in component as IEnumerable<object>)
{
if (obj is INotifyPropertyChanged)
SetupPropertyChanged(closed, (INotifyPropertyChanged)obj, changedHandler);
}
}
else
{
foreach (PropertyInfo info in component.GetType().GetProperties())
{
var propertyValue = info.GetValue(component, new object[] { });
var inpc = propertyValue as INotifyPropertyChanged;
if (inpc == null) continue;
SetupPropertyChanged(closed, inpc, changedHandler);
}
}
}
}
}
| 37.446154 | 135 | 0.739934 | [
"MIT"
] | kevintavog/WatchThis.net | src/Utilities/NotifyPropertyChangedHelper.cs | 2,434 | C# |
// Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
namespace Microsoft.Azure.Management.RecoveryServices.Backup
{
using Microsoft.Rest.Azure;
using Models;
/// <summary>
/// RecoveryPointsOperations operations.
/// </summary>
public partial interface IRecoveryPointsOperations
{
/// <summary>
/// Provides the information of the backed up data identified using
/// RecoveryPointID. This is an asynchronous operation. To know the
/// status of the operation, call the GetProtectedItemOperationResult
/// API.
/// </summary>
/// <param name='vaultName'>
/// The name of the recovery services vault.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group where the recovery services vault
/// is present.
/// </param>
/// <param name='fabricName'>
/// Fabric name associated with backed up item.
/// </param>
/// <param name='containerName'>
/// Container name associated with backed up item.
/// </param>
/// <param name='protectedItemName'>
/// Backed up item name whose backup data needs to be fetched.
/// </param>
/// <param name='recoveryPointId'>
/// RecoveryPointID represents the backed up data to be fetched.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<RecoveryPointResource>> GetWithHttpMessagesAsync(string vaultName, string resourceGroupName, string fabricName, string containerName, string protectedItemName, string recoveryPointId, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Lists the backup copies for the backed up item.
/// </summary>
/// <param name='vaultName'>
/// The name of the recovery services vault.
/// </param>
/// <param name='resourceGroupName'>
/// The name of the resource group where the recovery services vault
/// is present.
/// </param>
/// <param name='fabricName'>
/// Fabric name associated with the backed up item.
/// </param>
/// <param name='containerName'>
/// Container name associated with the backed up item.
/// </param>
/// <param name='protectedItemName'>
/// Backed up item whose backup copies are to be fetched.
/// </param>
/// <param name='odataQuery'>
/// OData parameters to apply to the operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<RecoveryPointResource>>> ListWithHttpMessagesAsync(string vaultName, string resourceGroupName, string fabricName, string containerName, string protectedItemName, Microsoft.Rest.Azure.OData.ODataQuery<BMSRPQueryObject> odataQuery = default(Microsoft.Rest.Azure.OData.ODataQuery<BMSRPQueryObject>), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
/// <summary>
/// Lists the backup copies for the backed up item.
/// </summary>
/// <param name='nextPageLink'>
/// The NextLink from the previous successful call to List operation.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="Microsoft.Rest.Azure.CloudException">
/// Thrown when the operation returned an invalid status code
/// </exception>
/// <exception cref="Microsoft.Rest.SerializationException">
/// Thrown when unable to deserialize the response
/// </exception>
/// <exception cref="Microsoft.Rest.ValidationException">
/// Thrown when a required parameter is null
/// </exception>
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Rest.Azure.IPage<RecoveryPointResource>>> ListNextWithHttpMessagesAsync(string nextPageLink, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
}
}
| 51.991525 | 613 | 0.6489 | [
"MIT"
] | samtoubia/azure-sdk-for-net | src/ResourceManagement/RecoveryServices.Backup/Microsoft.Azure.Management.RecoveryServices.Backup/Generated/IRecoveryPointsOperations.cs | 6,135 | C# |
using System;
namespace HarmonyHub.Exceptions
{
/// <summary>
/// Internal session token exception.
/// </summary>
[Serializable]
public class SessionTokenException : Exception
{
/// <summary>
/// Initializes a new instance of the <see cref="SessionTokenException"/> class.
/// </summary>
public SessionTokenException()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="SessionTokenException"/> class.
/// </summary>
/// <param name="message">Exception message.</param>
public SessionTokenException(string message)
: base(message)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="SessionTokenException"/> class.
/// </summary>
/// <param name="message">Exception message.</param>
/// <param name="inner">Inner exception.</param>
public SessionTokenException(string message, Exception inner)
: base(message, inner)
{
}
}
}
| 28.447368 | 88 | 0.569843 | [
"MIT"
] | 1iveowl/HarmonyHub | src/HarmonyHub/Exceptions/SessionTokenException.cs | 1,083 | C# |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information
namespace DotNetNuke.HttpModules.Compression
{
/// <summary>
/// The available compression algorithms to use with the HttpCompressionModule.
/// </summary>
public enum Algorithms
{
Deflate = 2,
GZip = 1,
None = 0,
Default = -1,
}
}
| 27.555556 | 83 | 0.65121 | [
"MIT"
] | Acidburn0zzz/Dnn.Platform | DNN Platform/HttpModules/Compression/Config/Enums.cs | 498 | C# |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.