Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Assets/Scripts/Mesh4D.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ public Vector4Triple(Vector4 a, Vector4 b, Vector4 c) {
public Vector4 a;
public Vector4 b;
public Vector4 c;

public override bool Equals(object obj) =>
obj is Vector4Triple r && a == r.a && b == r.b && c == r.c;
public override int GetHashCode() => System.HashCode.Combine(a, b, c);
}
struct Vector4Double {
public Vector4Double(Vector4 a, Vector4 b) {
Expand All @@ -33,6 +37,10 @@ public Vector4Double(Vector4 a, Vector4 b) {
}
public Vector4 a;
public Vector4 b;

public override bool Equals(object obj) =>
obj is Vector4Double r && a == r.a && b == r.b;
public override int GetHashCode() => System.HashCode.Combine(a, b);
}
private HashSet<Vector4Triple> shadowHashset = new();
private HashSet<Vector4Double> wireHashset = new();
Expand Down