Function legion::core::math::planeMatrix

Function Documentation

inline mat4 legion::core::math::planeMatrix(const vec3 &p0, const vec3 &p1, const vec3 &p2, const vec3 &centroid)

Calculates a matrix for a plane p1——- / / / / / / / / p0——p2.

Parameters
  • normal: The normal of the plane

  • centroid: The center of the the plane