Table of Contents

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

origin Vector3
direction Vector3

Fields

Direction

public Vector3 Direction

Field Value

Vector3

Origin

public Vector3 Origin

Field Value

Vector3

Methods

Intersects(BoundingBox)

public bool Intersects(BoundingBox box)

Parameters

box BoundingBox

Returns

bool

Intersects(ref BoundingBox)

public bool Intersects(ref BoundingBox box)

Parameters

box BoundingBox

Returns

bool

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

V1 Vector3
V2 Vector3
V3 Vector3
distance float

Returns

bool

Transform(Ray, Matrix4x4)

public static Ray Transform(Ray ray, Matrix4x4 mat)

Parameters

ray Ray
mat Matrix4x4

Returns

Ray