Question:
Which of the following is a clipping algorithm?
निम्नलिखित में से कौन सा क्लिपिंग एल्गोरिदम (clipping algorithm) है?
Options:
- Simple DDA
- Liang Barsky’s algorithm
- Bresenham’s algorithm
- Mid-point Algorithm
- सिंपल डीडीए (Simple DDA)
- लियांग बार्स्की एल्गोरिदम (Liang Barsky’s algorithm)
- ब्रेसेनहैम एल्गोरिदम (Bresenham’s algorithm)
- मिड-पॉइंट एल्गोरिदम (Mid-point Algorithm)
Correct Answer: b)
Explanation:
The Liang-Barsky algorithm is a famous 2D line clipping algorithm that uses parametric line equations to determine the visible portion of a line segment within a rectangular clipping window. In contrast, DDA, Bresenham’s, and the Mid-point algorithms are rasterization algorithms used for drawing lines and curves.
कंप्यूटर ग्राफिक्स में, लियांग-बार्स्की एल्गोरिदम (Liang-Barsky algorithm) एक प्रमुख लाइन क्लिपिंग एल्गोरिदम है जो आयताकार विंडो के सापेक्ष रेखाओं को क्लिप करने के लिए पैरामीट्रिक समीकरणों का उपयोग करता है। अन्य तीनों लाइन ड्राइंग एल्गोरिदम हैं।