Shared Flashcard Set

Details

ED1 midterm
fdsfsd
22
Chemical Engineering
12th Grade
12/06/2009

Additional Chemical Engineering Flashcards

 


 

Cards

Term
What is the vector operation for addition, subtraction, and scalar multiple?
Definition
A + B = R
A - B = R
c(A + B) = cA + cB
Term
What is the formula for the dot product?
and What does it find?
Definition
u.v = a x + b y + c z
Finding the angle between two vectors
Term
What is the formula for the cross product?
and What does it find?
Definition
AXB = C
C.X = (A.Y * B.Z) - (A.Z * B.Y)
C.Y = (A.Z * B.X) - (A.X * B.Z)
C.Z = (A.X * B.Y) - (A.Y * B.X)

Perpendicular angle
Term
What is the formula for the magnitude?
and What does it find?
Definition
r = SquareRoot(x^2+y^2+z^2)
gives us the length of the vector
Term
What is the formula for the normalize?
and What does it find?
Definition
(x/mag, y/mag, z/mag)
vector which vector values are 0-1. Makes it unit length. Gets the direction of what object is facing. The Trex arm of something
Term
How do you move something in the local Z? (forward motion)
Definition
T -= Zaxis * Speed
Term
How/where Translation, Rotation and Scale are represented?
Definition

R        T
1 0 0 | 0
0 1 0 | 0 (s)
0 0 1 | 0
----------
0 0 0 | 1 (uniform scale, dont use)

Term
What is the identity matrix?
Definition
1000
0100
0010
0001
Term
How do you multiply two matrices?
Definition
x3,4 = (1,2,3,4)*(a,b,c,d) = 1a + 2b + 3c + 4d
Term
Types of transformation?
Definition
scale and rotate
Term
What is the rotation transformation matrix?
Definition
just remember them :) - look it up yourself!
Term
Talk about matrix scale
Definition
...
Term
Camera look at algorithm
Definition
vec3f xAxis, yAxis, zAxis = mat.axis_w - target;
zAxis.normalize();
cross_product(xAxis, worldY, zAxis);
xAxis.normalize();
cross_product(yAxis, zAxis, xAxis);
yAxis.normalize();

mat.axis_x = xAxis;
mat.axis_y = yAxis;
mat.axis_z = zAxis;

Term
Collision Detection/Intersection terms
Definition
ask cheddar
Term
Point Collision
Definition
local: half space test (dotproduct( (target - pointOnPlane), normal))
world: dot product(normal, point testing against) - distance distance origin to plane
Term
AABB collision
Definition

for every plane:
for every diagonal:
find the distance between each corner
store the absolute value of the dot result(distance, normal of currentplane)

for every result:
find the largest dot result (which finds which points you are going to use)

if the dot product of the min and max point is less than 0
return false;

Term
sphere collision
Definition

 

 

for every plane:

distance = dot(center - (distance[i]*normal[i]), normal[i])

if (distance < -radius)

return OUTSIDE;

else if (distance < radius)

result =  INTERSECT;

 

return result;

 

 

Term
3d half space test
Definition
The dot product. If it's positive it's in front, else behind.
Term
What is the plane equation?
Definition

Ax + By + Cz = -D

Ax + By + Cz + D = 0

Term
Plane distance to point (local)
Definition
local: half space test
world: dot product(normal, point testing against) - distance distance origin to plane
Term
Sphere to Plane (local)
Definition
fDistance = dot_product(sphere.GetCenter() - (m_Normals * m_Distances), m_Normals);
if (fDistance < -sphere.GetRadius())
return false;
else if (fDistance < sphere.GetRadius())
bResult = true;
}
return(bResult);
Term
Bounding Volumes Hierarchy - generation
Definition
go through a tree and check what u are colliding with. the root being the whole area and splitting the area up into nodes
Supporting users have an ad free experience!