Skip to content

Commit

Permalink
Added javadoc for DashLine & Draw3d
Browse files Browse the repository at this point in the history
  • Loading branch information
Zelaux committed Oct 1, 2023
1 parent 6bf9b08 commit 5fc27ab
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion graphics/dashDraw/src/arclibrary/graphics/DashLine.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
import arc.util.*;
import arc.util.pooling.*;
import arc.util.pooling.Pool.*;

/**
* Draws polies with dash lines with same length and same spacing length
* */
public class DashLine{
private static final Vec2 tmp1 = new Vec2(), tmp2 = new Vec2(), tmp3 = new Vec2(), tmp4 = new Vec2();
private static final Vec2 vector = new Vec2(), u = new Vec2(), v = new Vec2(), inner = new Vec2(), outer = new Vec2();
Expand Down
10 changes: 6 additions & 4 deletions graphics/draw3d/src/arclibrary/graphics/Draw3d.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import arc.math.Mathf;
import arc.math.geom.Mat3D;
import arc.math.geom.Vec3;

/**
* Draws 2d region with applying {@link Mat3D}
* */
public class Draw3d {
public static final Mat3D tmpMat1 = new Mat3D();
public static final Mat3D tmpMat2 = new Mat3D();
Expand Down Expand Up @@ -80,9 +82,9 @@ public static void rect(Mat3D mat3D, TextureRegion region, float x, float y, flo
Draw.vert(region.texture, vertices, 0, vertices.length);
}

private static void doubleLast(int idx, Vec3 v5, float color, float mixColor, float u5, float _v5) {
idx = vertex(idx, v5, u5, _v5, color, mixColor);
idx = vertex(idx, v5, u5, _v5, color, mixColor);
private static void doubleLast(int idx, Vec3 vector, float color, float mixColor, float u5, float _v5) {
idx = vertex(idx, vector, u5, _v5, color, mixColor);
idx = vertex(idx, vector, u5, _v5, color, mixColor);
}

private static int vertex(int idx, Vec3 v1, float u, float v, float color, float mixColor) {
Expand Down

0 comments on commit 5fc27ab

Please sign in to comment.