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

Inherits IEquatable.

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()

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

Member Function Documentation

◆ Deconstruct()

void Nebula.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 Nebula.Ray.Equals ( object obj)
inline

◆ Equals() [2/2]

bool Nebula.Ray.Equals ( Ray other)
inline

◆ GetHashCode()

override int Nebula.Ray.GetHashCode ( )
inline

◆ Intersects() [1/6]

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

◆ Intersects() [2/6]

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

◆ Intersects() [3/6]

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

◆ Intersects() [4/6]

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

◆ Intersects() [5/6]

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

◆ Intersects() [6/6]

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

◆ operator!=()

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

◆ operator==()

bool Nebula.Ray.operator== ( Ray a,
Ray b )
inlinestatic

◆ ToString()

override string Nebula.Ray.ToString ( )
inline

Member Data Documentation

◆ Direction

Vector3 Nebula.Ray.Direction

◆ Position

Vector3 Nebula.Ray.Position

Property Documentation

◆ DebugDisplayString

string Nebula.Ray.DebugDisplayString
getpackage

The documentation for this struct was generated from the following file:
  • /github/workspace/code/addons/nsharp/NebulaEngine/mathf/Ray.cs