Unravel Engine C# Reference
Loading...
Searching...
No Matches
Unravel.Core.Ray Struct Reference

Represents a ray with an origin and a direction in 3D space. More...

Inheritance diagram for Unravel.Core.Ray:

Public Member Functions

override string ToString ()
 Returns a string representation of the ray.
 
string ToString (string format)
 Returns a string representation of the ray using a specified format.
 
string ToString (string format, IFormatProvider formatProvider)
 Returns a string representation of the ray using a specified format and format provider.
 

Public Attributes

Vector3 origin
 The origin point of the ray in 3D space.
 
Vector3 direction
 The direction of the ray in 3D space.
 

Detailed Description

Represents a ray with an origin and a direction in 3D space.

Definition at line 15 of file Ray.cs.

Member Function Documentation

◆ ToString() [1/3]

override string Unravel.Core.Ray.ToString ( )

Returns a string representation of the ray.

Returns
A string that represents the ray.

Definition at line 31 of file Ray.cs.

◆ ToString() [2/3]

string Unravel.Core.Ray.ToString ( string format)

Returns a string representation of the ray using a specified format.

Parameters
formatThe format string to use.
Returns
A string that represents the ray.

Definition at line 41 of file Ray.cs.

◆ ToString() [3/3]

string Unravel.Core.Ray.ToString ( string format,
IFormatProvider formatProvider )

Returns a string representation of the ray using a specified format and format provider.

Parameters
formatThe format string to use.
formatProviderAn object that provides culture-specific formatting information.
Returns
A string that represents the ray.

Definition at line 54 of file Ray.cs.

Member Data Documentation

◆ direction

Vector3 Unravel.Core.Ray.direction

The direction of the ray in 3D space.

Definition at line 25 of file Ray.cs.

◆ origin

Vector3 Unravel.Core.Ray.origin

The origin point of the ray in 3D space.

Definition at line 20 of file Ray.cs.


The documentation for this struct was generated from the following file: