public Camera(Vector pos, Vector forward, Vector up, float fieldOfView) { _position = pos; _forward = forward.Normalize(); _up = up.Normalize(); _fieldOfView = fieldOfView; }
public static Vector MoveTowardsDirection(Vector position, Vector direction, float distance) { direction = direction.Normalize(); return new Vector( position.X + direction.X * distance, position.Y + direction.Y * distance, position.Z + direction.Z * distance); }