Falco Engine 3.9.0.1 (beta)
FalcoEngine.Ray Struct Reference

Public Member Functions

 Ray (Vector3 origin, Vector3 direction)
 
Vector3 GetPoint (float distance)
 
override string ToString ()
 
string ToString (string format)
 

Properties

Vector3 origin [getset]
 
Vector3 direction [getset]
 

Detailed Description

Definition at line 8 of file Ray.cs.

Constructor & Destructor Documentation

◆ Ray()

FalcoEngine.Ray.Ray ( Vector3  origin,
Vector3  direction 
)

Creates a ray starting at origin along direction.

Parameters
origin
direction

Definition at line 49 of file Ray.cs.

Member Function Documentation

◆ GetPoint()

Vector3 FalcoEngine.Ray.GetPoint ( float  distance)

Returns a point at distance units along the ray.

Parameters
distance

Definition at line 59 of file Ray.cs.

◆ ToString() [1/2]

override string FalcoEngine.Ray.ToString ( )

Returns a nicely formatted string for this ray.

Parameters
format

Definition at line 68 of file Ray.cs.

◆ ToString() [2/2]

string FalcoEngine.Ray.ToString ( string  format)

Returns a nicely formatted string for this ray.

Parameters
format

Definition at line 77 of file Ray.cs.

Property Documentation

◆ direction

Vector3 FalcoEngine.Ray.direction
getset

The direction of the ray.

Definition at line 32 of file Ray.cs.

◆ origin

Vector3 FalcoEngine.Ray.origin
getset

The origin point of the ray.

Definition at line 17 of file Ray.cs.


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