Exhibit 5.1
![LOGO](https://capedge.com/proxy/8-K/0001193125-19-308264/g837922g1205075342265.jpg)
December 6, 2019
ViewRay, Inc.
47,782,500 Shares of Common Stock
Ladies and Gentlemen:
We have acted as counsel for ViewRay, Inc., a Delaware corporation (the “Company”), in connection with the preparation and filing with the Securities and Exchange Commission (the “Commission”) of the Prospectus Supplement, dated December 3, 2019 (the “Prospectus Supplement”), of the Company, filed with the Commission and relating to the issuance and sale by the Company of an aggregate of 47,782,500 shares (the “Shares”) of Common Stock, par value $0.01 per share (the “Common Stock”), of the Company.
In that connection, we have examined originals, or copies certified or otherwise identified to our satisfaction, of such documents, corporate records and other instruments as we have deemed necessary or appropriate for the purposes of this opinion, including: (a) the Amended and Restated Certificate of Incorporation of the Company, as amended; (b) theBy-laws of the Company; (c) resolutions adopted by the Board of Directors of the Company on November 15, 2019, and by the Financing Committee of the Board of Directors on December 3, 2019; and (d) the Registration Statement onForm S-3 (RegistrationNo. 333-229145) filed with the Commission on January 7, 2019 (the “Registration Statement”), with respect to registration under the Securities Act of 1933, as amended (the “Act”), of $250,000,000 aggregate amount of various securities of the Company, to be issued from time to time by the Company. As to various questions of fact material to this opinion, we have relied upon representations of officers or directors of the Company and documents furnished to us by the Company without independent verification of their accuracy.