public static BrBounds FromPoints(IEnumerable <BrVector3> points) { BrVector3 min = default; BrVector3 max = default; foreach (var p in points) { if (p.X < min.X) { min.X = p.X; } if (p.Y < min.Y) { min.Y = p.Y; } if (p.Z < min.Z) { min.Z = p.Z; } if (p.X > max.X) { max.X = p.X; } if (p.Y > max.Y) { max.Y = p.Y; } if (p.Z > max.Z) { max.Z = p.Z; } } return(new BrBounds(min, max)); }
public BrVertex(BrScalar x, BrScalar y, BrScalar z, BrScalar u, BrScalar v) : this() { Position = new BrVector3(x, y, z); TextureCoordinate = new BrVector2(u, v); }
public BrBounds(BrVector3 min, BrVector3 max) { Minimum = min; Maximum = max; }