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

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

public GetValueVector3Array ( ) : System.Vector3[]
Результат System.Vector3[]
       public Vector3[] GetValueVector3Array()
        {
            if (ParameterClass != EffectParameterClass.Vector || ParameterType != EffectParameterType.Single)
                throw new InvalidCastException();

            if (Elements != null && Elements.Count > 0)
            {
                Vector3[] result = new Vector3[Elements.Count];
                for (int i = 0; i < Elements.Count; i++)
                {
                    var v = Elements[i].GetValueSingleArray();
                    result[i] = new Vector3(v[0], v[1], v[2]);
                }
                return result;
            }
            return null;
        }