Skip to content

Fixed Plane

Struct · FFixedPlane

#include "Types/Plane.h"

deterministic: safe in simulation code

Plane using fixed-point arithmetic. Defined by a point on the plane and a normal vector. Plane equation: Dot(Normal, Point) = D

FFixedVector Normal

Editable in defaults and on instances · Blueprint read and write

Normal vector of the plane (should be normalized).

FFixedPoint D

Editable in defaults and on instances · Blueprint read and write

Distance from origin along the normal.

C++ members (17)
  • static FFixedPlane FromPoints(const FFixedVector& A, const FFixedVector& B, const FFixedVector& C); Creates a plane from three points.
  • static FFixedPlane FromPlane(const FPlane& Plane); Converts from Unreal’s FPlane.
  • FPlane ToPlane() const; Converts to Unreal’s FPlane.
  • FFixedPoint GetDistanceToPoint(const FFixedVector& Point) const; Returns the signed distance from the plane to a point.
  • FFixedVector GetClosestPoint(const FFixedVector& Point) const; Returns the closest point on the plane to the given point.
  • FFixedVector ProjectPoint(const FFixedVector& Point) const; Projects a point onto the plane.
  • FFixedVector ProjectVector(const FFixedVector& Vector) const; Projects a vector onto the plane (removes component perpendicular to plane).
  • bool IsPointOnPlane(const FFixedVector& Point, FFixedPoint Epsilon = FFixedPoint::Epsilon) const; Returns true if the point is on the plane (within epsilon tolerance).
  • bool IsPointAbove(const FFixedVector& Point) const; Returns true if the point is above the plane (in the direction of the normal).
  • bool IsPointBelow(const FFixedVector& Point) const; Returns true if the point is below the plane (opposite the normal direction).
  • FFixedPlane& Flip(); Flips the plane (reverses the normal).
  • FFixedPlane GetFlipped() const; Returns a flipped copy of the plane.
  • FFixedPlane& Translate(const FFixedVector& Offset); Translates the plane by a vector.
  • FFixedPlane GetTranslated(const FFixedVector& Offset) const; Returns a translated copy of the plane.
  • bool operator==(const FFixedPlane& Other) const;
  • bool operator!=(const FFixedPlane& Other) const;
  • FString ToString() const;