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

Ray [Class]

David Eddy edited this page Mar 27, 2017 · 1 revision

A ray is a point in 3D space that has a normal pointing in any given direction.

Constructors
Ray()
Ray(Vec3 startpoint, Vec3 direction)

Public Functions
Ray TransformedBy(Matrix4 transform)
float DistanceToPoint(Vec3 point)
float DistanceToRay(Ray ray)
bool LineSphereIntersect(Vec3 center, float radius, out Vec3 result)
bool LinePlaneIntersect(Plane p, out Vec3 result)
bool LinePlaneIntersect(Vec3 point, Vec3 normal, out Vec3 result)
Vec3 PointAtNormalizedLineDistance(float distance)
Vec3 PointAtLineDistance(float distance)
Vec3 PointLineIntersect(Vec3 point)

Static Public Functions
Vec3 PointAtLineDistance(Vec3 start, Vec3 end, float distance)

Clone this wiki locally