Show / Hide Table of Contents

Struct RayD

Represents a ray with a given origin and direction.

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Fusee.Math.Core
Assembly: Fusee.Math.Core.dll
Syntax
public struct RayD

Constructors

RayD(double2, double4x4, double4x4)

Creates a new ray.

Declaration
public RayD(double2 pickPosClip, double4x4 view, double4x4 projection)
Parameters
Type Name Description
double2 pickPosClip

A mouse position in Clip Space.

double4x4 view

The View Matrix of the rendered scene.

double4x4 projection

The Projection Matrix of the rendered scene.

RayD(double3, double3)

Create a new ray.

Declaration
public RayD(double3 origin_, double3 direction_)
Parameters
Type Name Description
double3 origin_

The origin of the ray in world coordinates.

double3 direction_

The direction of the ray.

Fields

Origin

The point in world coordinates from which the ray originates.

Declaration
public double3 Origin
Field Value
Type Description
double3

Properties

Direction

The direction of the ray.

Declaration
public double3 Direction { readonly get; }
Property Value
Type Description
double3

Inverse

The inverse of the direction vector of the ray (1 / direction).

Declaration
public double3 Inverse { readonly get; }
Property Value
Type Description
double3
Generated by DocFX
GitHub Repo
Back to top