public IResourceSource GetModelSource(PlaneModelSourcePlane plane, PlaneModelSourceNormalDirection normalDirection, float halfWidth, float halfHeight, float scaleU, float scaleV) { return(new Source(FactoryResourceCache, this) { HalfWidth = halfWidth, HalfHeight = halfHeight, ScaleU = scaleU, ScaleV = scaleV, Plane = plane, NormalDirection = normalDirection }); }
public IExplicitModel PlaneModel(PlaneModelSourcePlane plane, PlaneModelSourceNormalDirection normalDirection, float halfWidth, float halfHeight, float scaleU, float scaleV) => (IExplicitModel)planeModelFactory.GetModelSource(plane, normalDirection, halfWidth, halfHeight, scaleU, scaleV).GetResource();