Fixed Ray
Struct · FFixedRay
#include "Types/Ray.h"
deterministic: safe in simulation code
Ray using fixed-point arithmetic. Represents a ray defined by an origin point and a direction vector. Parametric form: Point(t) = Origin + Direction * t, where t >= 0
Properties
Section titled “Properties”Origin
Section titled “Origin”FFixedVector Origin
Editable in defaults and on instances · Blueprint read and write
Origin point of the ray.
Direction
Section titled “Direction”FFixedVector Direction
Editable in defaults and on instances · Blueprint read and write
Direction vector of the ray (should be normalized).
C++ members (12)
static FFixedRay FromPoints(const FFixedVector& Start, const FFixedVector& End);Creates a ray from two points (from Start to End).FFixedVector GetPointAt(FFixedPoint T) const;Returns a point along the ray at parameter t.FFixedVector GetClosestPoint(const FFixedVector& Point) const;Returns the closest point on the ray to the given point.FFixedPoint GetDistanceToPoint(const FFixedVector& Point) const;Returns the distance from the ray to a point.FFixedPoint GetClosestParameter(const FFixedVector& Point) const;Returns the parameter T for the closest point on the ray to the given point.FFixedRay& Translate(const FFixedVector& Offset);Translates the ray by a vector.FFixedRay GetTranslated(const FFixedVector& Offset) const;Returns a translated copy of the ray.bool operator==(const FFixedRay& Other) const;bool operator!=(const FFixedRay& Other) const;FFixedRay operator+(const FFixedVector& Offset) const;FFixedRay& operator+=(const FFixedVector& Offset);FString ToString() const;