Skip to content

Repository files navigation

crabs

drawCapt: number number number number boolean -> image purpose: xCapt and yCapt represent the x and y position that the captain will be drawn at. thetaCapt represents the heading of the captain sizeCapt represents the size the captain will be drawn at.

getCapt: number boolean -> matrix
purpose: captSize represents the base distance used to calculate the position of each point in correlation to one another. moveArm is either true or false and determines whether the captain's spear will be extended or retracted. getCapt uses these numbers to create a 3x18 matrix representing x,y,z points that make up the shape of the "Captain"
Dependencies: none
Call: capt = getCapt(captSize, moveArm)
Side Effects: None

getRotation: number -> matrix
purpose: thetaCapt represents the angle in radians that will be used to create a 3x3 matrix that will rotate an object stored as a 3xN matrix when multiplied
Dependencies: None
Call: R = getRotation(theta)
Side Effects: None

getTranslation: number number -> matrix
purpose: Number1 represents the amount to shift in the x direction and Number2 the amount to shift in the y direction. getTranslation uses these numbers to create a 3x3 matrix that will translate an object stored as a 3xN matrix when it multiplies the object matrix
Dependencies: None
Call: T = getTranslation(dx,dy)
Side Effects: None

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages