title: SCNPlane between two SCNVector Scenekit
body: <p>I have 2 SCNVectors startPoint and endPoint, I'm try to create a SCNplane extend between this point.
  I read some answer here in SO but no one can answer my doubt.
  I found code to draw a line between to point but nothing for a plane.</p>
  <pre><code>
  class CustomPlane : SCNNode {
      
      
      var startPoint : SCNVector3
      var endPoint : SCNVector3
      
      
       init(startP: SCNVector3, endP: SCNVector3) {
          self.startPoint = startP
          self.endPoint = endP
          super.init()
           makePlane()
      }
      
      required init?(coder: NSCoder) {
          fatalError(&quot;init(coder:) has not been implemented&quot;)
      }
      
      
      func makePlane(){
          let distLenght = startPoint.distance(to: endPoint)
          let scnPlane = SCNPlane(width: 1, height: CGFloat(distLenght))
          let mat = SCNMaterial()
          mat.diffuse.contents = UIColor.red
          scnPlane.materials = [mat]
          let node = SCNNode(geometry: scnPlane)
          node.eulerAngles = SCNVector3(deg2rad(270), deg2rad(-90), 0)
          node.position = SCNVector3(startPoint.x, startPoint.y+0.1, startPoint.z)
          self.addChildNode(node)
      }
      
  }
  
  
  </code></pre>
  <p>the code above draw actually the floor but is not following the direction between the 2 point.</p>
  <p><a href="https://i.stack.imgur.com/PlWhC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PlWhC.png" alt="floor" /></a></p>