Module vector
Source - ClosestPointOnLineFunction
- CLOSEST_POINT_ON_LINE(point, line_point, line_dir) - Find closest point on line to given point
- LineIntersectFunction
- LINE_INTERSECT(p1, p2, p3, p4) - Find exact intersection point of two 2D lines
- LineReflectPointFunction
- LINE_REFLECT_POINT(point, line_point, line_dir) - Reflect point across line
- PointLineDistanceFunction
- POINT_LINE_DISTANCE(point, line_point, line_dir) - Distance from point to line
- SegmentIntersectFunction
- SEGMENT_INTERSECT(p1, p2, p3, p4) - Check if two line segments intersect
- VecAddFunction
- VEC_ADD(v1, v2) - Add two vectors element-wise
- VecAngleFunction
- VEC_ANGLE(v1, v2) - Compute angle between two vectors in radians
- VecCrossFunction
- VEC_CROSS(v1, v2) - Compute cross product (3D only)
- VecDistanceFunction
- VEC_DISTANCE(v1, v2) - Compute Euclidean distance between two vectors
- VecDotFunction
- VEC_DOT(v1, v2) - Compute dot product
- VecFunction
- VEC(x, y, z, …) - Construct a vector from components
- VecMagFunction
- VEC_MAG(vector) - Compute magnitude (length) of vector
- VecNormalizeFunction
- VEC_NORMALIZE(vector) - Normalize vector to unit length
- VecScaleFunction
- VEC_SCALE(vector, scalar) - Multiply vector by scalar
- VecSubFunction
- VEC_SUB(v1, v2) - Subtract two vectors element-wise