AMX Mod X API Documentation

Signature
stock xs_projpoint_onplane(const Float:plane[], const Float:point[], Float:out[]){ new Float:__tmp[3]; // out = point - (plane normal * distance point<->plane) xs_vec_copy(plane, __tmp); xs_vec_mul_scalar(__tmp, xs_plane_dst2point(plane, point), __tmp); xs_vec_sub(point, __tmp, out);}
Description

Projects a point on the plane. Stores the projected point in @out.

Parameters
  • plane The plane to project the point onto.
  • point The point to project onto the plane.
  • out The vector to copy the projected point into.
No return value
Назад
Верх