Microsoft.Xna.Framework.Graphics.EffectParameter.GetValueVector2Array C# (CSharp) Метод

GetValueVector2Array() публичный Метод

public GetValueVector2Array ( ) : System.Vector2[]
Результат System.Vector2[]
		public Vector2[] GetValueVector2Array()
		{
            if (ParameterClass != EffectParameterClass.Vector || ParameterType != EffectParameterType.Single)
                throw new InvalidCastException();
			if (Elements != null && Elements.Count > 0)
			{
				Vector2[] result = new Vector2[Elements.Count];
				for (int i = 0; i < Elements.Count; i++)
				{
					var v = Elements[i].GetValueSingleArray();
					result[i] = new Vector2(v[0], v[1]);
				}
			return result;
			}
			
		return null;
		}