Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.RayD

Malware edited this page Dec 13, 2025 · 49 revisions

DEPRECATION NOTICE

This API documentation is out of date and no longer maintained.

Please visit the new documentation at: https://malforge.github.io/spaceengineers/pbapi

IndexNamespace Index

RayD Struct

public struct RayD: IEquatable<RayD>

Defines a ray.

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

Vector3D Direction

Unit vector specifying the direction the Ray is pointing.

Vector3D Position

Specifies the starting point of the Ray.

Constructors

RayD(Vector3D position, Vector3D direction)

RayD(ref Vector3D position, ref Vector3D direction)

Methods

bool Equals(RayD other)

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

bool Equals(object obj)

Determines whether two instances of Ray are equal.

int GetHashCode()

Gets the hash code for this instance.

double? Intersects(BoundingBoxD box)

Checks whether the Ray intersects a specified BoundingBox.

void Intersects(ref BoundingBoxD box, out double? result)

Checks whether the current Ray intersects a BoundingBox.

double? Intersects(BoundingFrustumD frustum)

Checks whether the Ray intersects a specified BoundingFrustum.

double? Intersects(PlaneD plane)

Determines whether this Ray intersects a specified Plane.

void Intersects(ref PlaneD plane, out double? result)

Determines whether this Ray intersects a specified Plane.

double? Intersects(BoundingSphereD sphere)

Checks whether the Ray intersects a specified BoundingSphere.

void Intersects(ref BoundingSphere sphere, out double? result)

Checks whether the current Ray intersects a BoundingSphere.

string ToString()

Returns a String that represents the current Ray.

Clone this wiki locally