Rename RNG-pertitnent members

This commit is contained in:
2024-05-31 15:16:57 -04:00
parent d7bc11ca8e
commit c293f6292b

View File

@@ -237,7 +237,7 @@ namespace J3ML::Geometry {
Enclose(pointArray[i]);
}
Vector3 AABB::GetRandomPointInside(J3ML::Algorithm::RNG &rng) const {
Vector3 AABB::RandomPointInside(RNG &rng) const {
float f1 = rng.Float();
float f2 = rng.Float();
float f3 = rng.Float();
@@ -573,20 +573,20 @@ namespace J3ML::Geometry {
Vector3 AABB::AnyPointFast() const { return minPoint;}
Vector3 AABB::GetRandomPointOnSurface(RNG &rng) const {
Vector3 AABB::RandomPointOnSurface(RNG &rng) const {
int i = rng.Int(0, 5);
float f1 = rng.Float();
float f2 = rng.Float();
return FacePoint(i, f1, f2);
}
Vector3 AABB::GetRandomPointOnEdge(RNG &rng) const {
Vector3 AABB::RandomPointOnEdge(RNG &rng) const {
int i = rng.Int(0, 11);
float f = rng.Float();
return PointOnEdge(i, f);
}
Vector3 AABB::GetRandomCornerPoint(RNG &rng) const {
Vector3 AABB::RandomCornerPoint(RNG &rng) const {
return CornerPoint(rng.Int(0, 7));
}