public BoundingVolumeHierarchyNode(IEntityHitable left, IEntityHitable right, IBoundsComputer boundsComputer, IHitableBoundsComputer hitableBoundsComputer) { Left = left; Right = right; _boundsComputer = boundsComputer; _hitableBoundsComputer = hitableBoundsComputer; }
public Scene(IEntityHitable hitableStructure, IDictionary <EntityId, IPositionable> positionables, IDictionary <EntityId, IScatterable> scatterables, Vector3 background) { EnsureArg.IsNotNull(hitableStructure, nameof(hitableStructure)); EnsureArg.IsNotNull(positionables, nameof(positionables)); EnsureArg.IsNotNull(scatterables, nameof(scatterables)); _hitableStructure = hitableStructure; _positionables = positionables; _scatterables = scatterables; BackgroundColor = background; }