Table of Contents

Class Ray

Namespace
Graphene
Assembly
Graphene-1.0.dll
public sealed class Ray : BoxedRecord, IEquatable<Ray>
Inheritance
Ray
Implements
Inherited Members

Constructors

Ray()

public Ray()

Ray(RayOwnedHandle)

public Ray(RayOwnedHandle handle)

Parameters

handle RayOwnedHandle

Properties

Handle

public RayOwnedHandle Handle { get; }

Property Value

RayOwnedHandle

Methods

Alloc()

[Version("1.4")]
public static Ray Alloc()

Returns

Ray

Equal(Ray)

[Version("1.4")]
public bool Equal(Ray b)

Parameters

b Ray

Returns

bool

Equals(Ray?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Ray? other)

Parameters

other Ray

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

[Version("1.4")]
public void Free()

GetDistanceToPlane(Plane)

[Version("1.4")]
public float GetDistanceToPlane(Plane p)

Parameters

p Plane

Returns

float

GetDistanceToPoint(Point3D)

[Version("1.4")]
public float GetDistanceToPoint(Point3D p)

Parameters

p Point3D

Returns

float

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Init(Point3D?, Vec3?)

[Version("1.4")]
public Ray Init(Point3D? origin, Vec3? direction)

Parameters

origin Point3D
direction Vec3

Returns

Ray

InitFromRay(Ray)

[Version("1.4")]
public Ray InitFromRay(Ray src)

Parameters

src Ray

Returns

Ray

InitFromVec3(Vec3?, Vec3?)

[Version("1.4")]
public Ray InitFromVec3(Vec3? origin, Vec3? direction)

Parameters

origin Vec3
direction Vec3

Returns

Ray

IntersectBox(Box, out float)

[Version("1.10")]
public RayIntersectionKind IntersectBox(Box b, out float tOut)

Parameters

b Box
tOut float

Returns

RayIntersectionKind

IntersectSphere(Sphere, out float)

[Version("1.10")]
public RayIntersectionKind IntersectSphere(Sphere s, out float tOut)

Parameters

s Sphere
tOut float

Returns

RayIntersectionKind

IntersectTriangle(Triangle, out float)

[Version("1.10")]
public RayIntersectionKind IntersectTriangle(Triangle t, out float tOut)

Parameters

t Triangle
tOut float

Returns

RayIntersectionKind

IntersectsBox(Box)

[Version("1.10")]
public bool IntersectsBox(Box b)

Parameters

b Box

Returns

bool

IntersectsSphere(Sphere)

[Version("1.10")]
public bool IntersectsSphere(Sphere s)

Parameters

s Sphere

Returns

bool

IntersectsTriangle(Triangle)

[Version("1.10")]
public bool IntersectsTriangle(Triangle t)

Parameters

t Triangle

Returns

bool