Method and circuit for rapidly obtaining hypotenuse side length of right triangle for graphic processing
A right-angled triangle and graphics processing technology, applied in image data processing, 3D modeling, instruments, etc., can solve the problems of high power consumption and circuit design complexity, and achieve optimal power consumption, cost-effectiveness, and fast calculation Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0065] Such as image 3 As shown, the α coefficient is equal to other data that cannot be shifted, and the lengths of the two right-angled sides input to the comparator GTE are s and t respectively; compare s and t, if s is greater than t, the comparator GTE outputs signal 1, and passes the signal 1 selects the long right-angled side s, and selects the short right-angled side t through the signal 0 obtained by inverting signal 1; if s is less than t, the comparator GTE outputs signal 0, selects the long right-angled side t through signal 0, and selects the short right-angled side t through signal 0 The inverted signal 1 selects the short right-angled side s; if s input to the comparator GTE is equal to t, the comparator GTE outputs signal 1, the right-angled side s is selected through the signal 1, and the right-angled side is selected through the signal 0 obtained by inverting the signal 1 side t;
[0066] For example, if the α coefficient is equal to 0.3284271247, the lengt...
Embodiment 2
[0068] Such as Figure 4 , the α coefficient is equal to 0.5, the lengths of the two right-angled sides input to the comparator GTE are s=8, t=6.75; compare s and t, s is greater than t, the comparator GTE outputs signal 1, and the long right-angled side s is selected by signal 1 =8, the short right-angled side t=6.75 is selected by the signal 0 obtained by inverting the signal 1; (in other embodiments, if the s input to the comparator GTE is less than t, the comparator GTE outputs a signal 0, and the short right-angled side t=6.75 is selected by the signal 0; The long right-angled side t, the short right-angled side s is selected by the signal 1 obtained by inverting the signal 0; if the s input to the comparator GTE is equal to t, the comparator GTE outputs signal 1, and the right-angled side s is selected by the signal 1, and the right-angled side s is selected by the signal 1 Negate the signal 0 obtained to select the right-angled side t);
[0069] 6.75 is expressed in bi...
Embodiment 3
[0073] Such as Figure 5 As shown, the α coefficient is equal to 0.4375, and the lengths of the two right-angled sides input to the comparator are s=8, t=6.75; comparing s and t, s is greater than t, the comparator GTE outputs signal 1, and the long right-angled side is selected by signal 1 s=8, select short right-angled side t=6.75 by signal 0; (in other embodiments, if the s of input comparator GTE is less than t, comparator GTE output signal 0, select long right-angled side t by signal 0, The signal 1 obtained by inverting signal 0 selects the short right-angled side s; if s input to the comparator GTE is equal to t, the comparator GTE outputs signal 1, and the right-angled side s is selected by signal 1, and the signal obtained by inverting signal 1 0 selects the right-angled side t);
[0074] 6.75 is expressed in binary as 000110.1100000;
[0075] Shift 000110.1100000 to the right by two bits to get 0001.1011000 (1.6875 in decimal), that is, shifting two bits to the rig...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


