好了,所以我有這個類 public sealed class LightSource
{
public readonly Point3D Source;
public readonly Point3D Direction;
public readonly float ConeAngle;
public List<Ray> Lights { get; p
我在C#中製作了一個簡單的Ray Traycer。而對於我的視口,我有一個矩形類。 public class Rectangle3D
{
public readonly Point3D Point1;
public readonly Point3D Point2;
public readonly Point3D Point3;
public readonl
所以這裏是我的視口類爲我非常簡單的光線跟蹤器。 public sealed class ViewPort
{
public readonly Rectangle3D Rectangle;
public readonly int Width;
public readonly int Height;
public Bitmap Image { get; p