Skip to content

format

typescript
Ray.toString()

class: Ray

description

Get the string representation of the Ray's properties.

parameter

param_nametypedescription

reture

typedescription
stringReturns the string representation of the Ray's properties.

code example

typescript
 const ray = new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 1));
 const rayString = ray.toString();