Table of Contents

Struct Ray

Namespace
Lime
Assembly
Lime.dll

Representation of endless ray.

public struct Ray : IEquatable<Ray>
Implements
Inherited Members

Constructors

Ray(Vector3, Vector3)

public Ray(Vector3 position, Vector3 direction)

Parameters

position Vector3
direction Vector3

Fields

Direction

[YuzuMember]
public Vector3 Direction

Field Value

Vector3

Position

[YuzuMember]
public Vector3 Position

Field Value

Vector3

Methods

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)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Intersects(BoundingSphere)

Calculates the distance between the center of this ray and border of sphere.

public float? Intersects(BoundingSphere sphere)

Parameters

sphere BoundingSphere

Sphere to check intersection for.

Returns

float?

The distance between the center of this ray and border of sphere. Returns 0.0f if ray is inside of sphere. Returns null if ray is pointed away from sphere.

Intersects(Plane)

public float? Intersects(Plane plane)

Parameters

plane Plane

Returns

float?

IntersectsTriangle(Vector3, Vector3, Vector3)

public float? IntersectsTriangle(Vector3 a, Vector3 b, Vector3 c)

Parameters

a Vector3
b Vector3
c Vector3

Returns

float?

Transform(Matrix44)

public Ray Transform(Matrix44 matrix)

Parameters

matrix Matrix44

Returns

Ray

Operators

operator ==(Ray, Ray)

public static bool operator ==(Ray a, Ray b)

Parameters

a Ray
b Ray

Returns

bool

operator !=(Ray, Ray)

public static bool operator !=(Ray a, Ray b)

Parameters

a Ray
b Ray

Returns

bool