fromRotation static method

void fromRotation(
  1. Mat2D o,
  2. double rad
)

Implementation

static void fromRotation(Mat2D o, double rad) {
  double s = sin(rad);
  double c = cos(rad);
  o[0] = c;
  o[1] = s;
  o[2] = -s;
  o[3] = c;
  o[4] = 0.0;
  o[5] = 0.0;
}