- Vector2d forcedAxis = new Vector2d(Math.cos(angrad), Math.sin(angrad));
- Vector2d x = new Vector2d(tr.getScaleX(), tr.getShearX());
- forcedAxis.normalize();
- x.normalize();
- double cosa = forcedAxis.dot(x);
+ Vector2D forcedAxis = new Vector2D(Math.cos(angrad), Math.sin(angrad));
+ Vector2D x = new Vector2D(tr.getScaleX(), tr.getShearX()).normalize();
+ double cosa = forcedAxis.dotProduct(x);