I'm new to processing (in Java not) and I don't understand how to calculate sin. I saw different examples for how to draw a polygon with line (not vertex), but I don't understand it. This example below is made by me with lines no calculations (sin, cos), I only added the line parameters. So... how to calculate sin? According to what? According to oX, oY? How am I supposed to draw ONLY the red line?
private static final Integer SIZE = 100; // constant
translate(width/2, height/2); //center
stroke(255,0,0); // red color
line( sin( ??? ) + SIZE, cos( ???? ) + SIZE.... // I don't get it