public override RGBColor diffuseColor(Vector3D localPoint) { Vector3D finalLocalPoint; finalLocalPoint = localPoint.scaleNew(tiling_); finalLocalPoint.add(offset_); return(lerpTexel(finalLocalPoint)); }
public void recalcMinMax() { Vector3D halfExtents = extents.scaleNew(1.0 / 2.0); minimum.set(center); minimum.sub(halfExtents); maximum.set(minimum); maximum.add(extents); }