Struct Ray
- Namespace
- NeoVeldrid.Utilities
- Assembly
- NeoVeldrid.Utilities.dll
public struct Ray
- Inherited Members
Constructors
Ray(Vector3, Vector3)
public Ray(Vector3 origin, Vector3 direction)
Parameters
Fields
Direction
public Vector3 Direction
Field Value
Origin
public Vector3 Origin
Field Value
Methods
Intersects(BoundingBox)
public bool Intersects(BoundingBox box)
Parameters
boxBoundingBox
Returns
Intersects(ref BoundingBox)
public bool Intersects(ref BoundingBox box)
Parameters
boxBoundingBox
Returns
Intersects(ref Vector3, ref Vector3, ref Vector3, out float)
public bool Intersects(ref Vector3 V1, ref Vector3 V2, ref Vector3 V3, out float distance)
Parameters
Returns
Transform(Ray, Matrix4x4)
public static Ray Transform(Ray ray, Matrix4x4 mat)