OpenGL project
This interactive visualization tool illustrates how to determine whether a 2D point lies above, below, or exactly on a line using the signed area (cross product) method.
Color Coding for Intuition
🔴 Red — Point is above the line
🔵 Blue — Point is below the line
This project demonstrates how to represent basic 3D geometry — points, lines, and triangles — and test whether two triangles intersect in 3D space. It uses OpenGL for visualization and organizes code into:
file_handle.h → header with class definitions
file_handle.cpp → implementations and intersection logic
two_triangle.cpp → driver program to draw and test triangles
calculating areas and checking point containment. The point class supports vector operations, while triangle and polygon provide methods for rendering and geometric analysis, such as determining if a point lies within a convex polygon in 2D. Although not explicitly defined, the classes enable checks for whether a point is in, outside, or coplanar with a triangle’s plane by leveraging vector operations and plane equations. This header is designed for use in computer graphics, game development, and computational geometry.
Innovation
Explore robotics and AI for real-world applications.
Research
Insights
rahulkyu062@gmail.com
8651879587
© 2025. All rights reserved.