mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-15 09:34:53 +00:00
Added apply methods to some common Vector containers
Added ColourMultiplier vertex modifier.
This commit is contained in:
1 parent
4bd5aab59a
commit
575ec57050
4 files changed
+61
-1
No files matched your search
@@ -4,6 +4,7 @@ import java.math.BigDecimal;
|
||||
import java.math.MathContext;
|
||||
import java.math.RoundingMode;
|
||||
|
||||
import codechicken.lib.vec.Transformation;
|
||||
import codechicken.lib.vec.Vector3;
|
||||
|
||||
public class Vertex5
|
||||
@@ -54,4 +55,16 @@ public class Vertex5
|
||||
MathContext cont = new MathContext(4, RoundingMode.HALF_UP);
|
||||
return "Vertex: ("+new BigDecimal(vec.x, cont)+", "+new BigDecimal(vec.y, cont)+", "+new BigDecimal(vec.z, cont)+") ("+new BigDecimal(uv.u, cont)+", "+new BigDecimal(uv.v, cont)+")";
|
||||
}
|
||||
|
||||
public Vertex5 apply(Transformation t)
|
||||
{
|
||||
vec.apply(t);
|
||||
return this;
|
||||
}
|
||||
|
||||
public Vertex5 apply(IUVTransformation t)
|
||||
{
|
||||
uv.apply(t);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user