Nebula
Loading...
Searching...
No Matches
Mathf.Ray Struct Reference

Inherits IEquatable< Ray >.

Public Member Functions

 Ray (Vector3 position, Vector3 direction)
 
override bool Equals (object obj)
 
bool Equals (Ray other)
 
override int GetHashCode ()
 
float? Intersects (BoundingBox box)
 
void Intersects (ref BoundingBox box, out float? result)
 
float? Intersects (BoundingSphere sphere)
 
float? Intersects (Plane plane)
 
void Intersects (ref Plane plane, out float? result)
 
void Intersects (ref BoundingSphere sphere, out float? result)
 
override string ToString ()
 
void Deconstruct (out Vector3 position, out Vector3 direction)
 Deconstruction method for Ray.
 

Static Public Member Functions

static bool operator!= (Ray a, Ray b)
 
static bool operator== (Ray a, Ray b)
 

Public Attributes

Vector3 Direction
 
Vector3 Position
 

Properties

string DebugDisplayString [get]
 

Constructor & Destructor Documentation

◆ Ray()

Mathf.Ray.Ray ( Vector3 position,
Vector3 direction )
inline

Member Function Documentation

◆ Deconstruct()

void Mathf.Ray.Deconstruct ( out Vector3 position,
out Vector3 direction )
inline

Deconstruction method for Ray.

Parameters
positionReceives the start position of the ray.
directionReceives the direction of the ray.

◆ Equals() [1/2]

override bool Mathf.Ray.Equals ( object obj)
inline

◆ Equals() [2/2]

bool Mathf.Ray.Equals ( Ray other)
inline

◆ GetHashCode()

override int Mathf.Ray.GetHashCode ( )
inline

◆ Intersects() [1/6]

float? Mathf.Ray.Intersects ( BoundingBox box)
inline

◆ Intersects() [2/6]

float? Mathf.Ray.Intersects ( BoundingSphere sphere)
inline

◆ Intersects() [3/6]

float? Mathf.Ray.Intersects ( Plane plane)
inline

◆ Intersects() [4/6]

void Mathf.Ray.Intersects ( ref BoundingBox box,
out float? result )
inline

◆ Intersects() [5/6]

void Mathf.Ray.Intersects ( ref BoundingSphere sphere,
out float? result )
inline

◆ Intersects() [6/6]

void Mathf.Ray.Intersects ( ref Plane plane,
out float? result )
inline

◆ operator!=()

static bool Mathf.Ray.operator!= ( Ray a,
Ray b )
inlinestatic

◆ operator==()

static bool Mathf.Ray.operator== ( Ray a,
Ray b )
inlinestatic

◆ ToString()

override string Mathf.Ray.ToString ( )
inline

Member Data Documentation

◆ Direction

Vector3 Mathf.Ray.Direction

◆ Position

Vector3 Mathf.Ray.Position

Property Documentation

◆ DebugDisplayString

string Mathf.Ray.DebugDisplayString
getpackage

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