public Vector getMidpoint ( Vector other ) { double x = ( this . x + other . x ) / 2 ; double y = ( this . y + other . y ) / 2 ; double z = ( this . z + other . z ) / 2 ; return new Vector ( x , y , z ) ; }
Gets a new midpoint vector between this vector and another .