This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <unordered_map> | |
#include <utility> | |
typedef std::pair<std::string, std::string> pair; | |
struct pair_hash | |
{ | |
template <class T1, class T2> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#version 330 | |
out vec4 outColor; | |
uniform vec2 iResolution; | |
uniform vec2 iMouse; | |
uniform float iTime; | |
#define ROTATE false | |
#define flag true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/watch?v=6YSsvMb6tVI -- > practisce | |
https://www.youtube.com/watch?v=6YSsvMb6tVI ---> practisce | |
https://www.youtube.com/watch?v=27tFyKc6g3U ---> practisce | |
https://www.youtube.com/watch?v=h5t3hP2yx1s ---> practisce |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Gradient.h" | |
#include <vector> | |
Gradient::GradientColor::GradientColor(float _r, float _g, float _b, float _a):r(_r), g(_g), b(_b), a(_a) {} | |
Gradient::GradientColor::GradientColor():r(), g(0), b(0), a(0) {} | |
const Gradient::GradientColor & Gradient::GradientColor::operator+=(const GradientColor &lhs){ | |
r += lhs.r; | |
g += lhs.g; | |
b += lhs.b; | |
a += lhs.a; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
refrence: https://www.youtube.com/watch?v=BEmAo6Fdg-Q | |
what does the undefined behaviour? | |
#include<stdio.h> | |
int x=100; | |
int left() | |
{ | |
x++; | |
return x; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://gist.github.com/NickBeeuwsaert/6258245 | |
http://web.mit.edu/hyperbook/Patrikalakis-Maekawa-Cho/node5.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/watch?v=F4rZXZhUmkg | |
illumination model, | |
1) FLAT SHADING | |
2) INTENSITY INTERPOLATION SCHEME ---> GOURAUD SHADING | |
IT CONSISTS OF THREE STEPS | |
1) average normal unit vector | |
2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) synthesizing a tone | |
int createtone() | |
{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
working on discrete signals | |
================================== | |
operations on discreate signals | |
1) Fllipping F[n] =F[-n] | |
2) Scaling F[n]=F[2*n] // samples are lost in | |
3) shifting a signal X[n-n0]= X[n-1] //start the signal with one usnit late or early | |
Shift , Flip and Scale | |
==================== | |
4) X[-2n+3] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) symmetry : f(r,thetha)==f(r,-thetha) then a curve is symmetrical about thetha i.e. theta = PI/2 or PI or ZERO. | |
curve is symmetrical about f(r,thetha)==f(-r,thetha) then curve is symmetrical about pole. | |
2) tangent to pole : a curve passing though pole is called tangent to pole. | |
r=a(1+cos(theta)). | |
putting r=0 whether the theta exixts if not then curve does not exists at r=0 else exists. | |
3) curve tracing : means for calcutes values of theta you have to trace the curve . | |
thetha= ZERO,PI/6,PI/4,PI/2,PI. | |
4) Asymptote: for which values of theta r becomes infinite. | |
5) tangent to the curve: tan(phai) = r / derivative(r,theta); | |
calculates the values of PHAI to evalutes . |
NewerOlder