title: How to translate float3 to SIMD3<Float> (Xcode 11 Swift 5 giving depreciation warning with float3 and float4)
body: <p>I am trying to get my code to be warning free. As I've just updated my Xcode and am know getting warning signs. I also have my attempted at fixing this below as well.</p>
  
  <p>This is the code that is giving me the warnings:</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>extension float4x4 {
  var translation: float3 {
      return float3(columns.3.x, columns.3.y, columns.3.z)
  }
  
  init(translation vector: float3) {
      self.init(float4(1, 0, 0, 0),
                float4(0, 1, 0, 0),
                float4(0, 0, 1, 0),
                float4(vector.x, vector.y, vector.z, 1))
   }
  }
  
  extension float4 {
    var xyz: float3 {
      return float3(x, y, z)
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ZKqHk.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZKqHk.png" alt="enter image description here"></a></p>
  
  <p>This is my attempted to translate this below:</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>extension SIMD4 {
  var translation: SIMD3&lt;Float&gt; {
      return SIMD3(columns.3.x, columns.3.y, columns.3.z)
  }
  
    init(translation vector: SIMD3&lt;Float&gt;) {
      self.init(SIMD4&lt;Float&gt;(1, 0, 0, 0),
                SIMD4&lt;Float&gt;(0, 1, 0, 0),
                SIMD4&lt;Float&gt;(0, 0, 1, 0),
                SIMD4(vector.x, vector.y, vector.z))
    }
  }
  
    extension SIMD4 {
      var xyz: SIMD3&lt;Float&gt; {
        return SIMD3&lt;Float&gt;(x, y, z) as! SIMD3&lt;Float&gt;
      }
    }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/NHgC9.png" rel="noreferrer"><img src="https://i.stack.imgur.com/NHgC9.png" alt="enter image description here"></a></p>