Struct RayF
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 RayF
Constructors
RayF(float2, float4x4, float4x4)
Creates a new ray.
Declaration
public RayF(float2 pickPosClip, float4x4 view, float4x4 projection)
Parameters
Type | Name | Description |
---|---|---|
float2 | pickPosClip | A mouse position in Clip Space. |
float4x4 | view | The View Matrix of the rendered scene. |
float4x4 | projection | The Projection Matrix of the rendered scene. |
RayF(float3, float3)
Create a new ray.
Declaration
public RayF(float3 origin_, float3 direction_)
Parameters
Type | Name | Description |
---|---|---|
float3 | origin_ | The origin of the ray in world coordinates. |
float3 | direction_ | The direction of the ray. |
Fields
Origin
The point in world coordinates from which the ray originates.
Declaration
public float3 Origin
Field Value
Type | Description |
---|---|
float3 |
Properties
Direction
The direction of the ray.
Declaration
public float3 Direction { readonly get; }
Property Value
Type | Description |
---|---|
float3 |
Inverse
The inverse of the direction vector of the ray (1 / direction).
Declaration
public float3 Inverse { readonly get; }
Property Value
Type | Description |
---|---|
float3 |