canvas.c
 1  /* ************************************************************************** */
 2  /*                                                                            */
 3  /*                                                        :::      ::::::::   */
 4  /*   canvas.c                                           :+:      :+:    :+:   */
 5  /*                                                    +:+ +:+         +:+     */
 6  /*   By: salee2 <salee2@student.42seoul.kr>         +#+  +:+       +#+        */
 7  /*                                                +#+#+#+#+#+   +#+           */
 8  /*   Created: 2023/05/24 20:21:00 by salee2            #+#    #+#             */
 9  /*   Updated: 2023/05/24 20:21:02 by salee2           ###   ########.fr       */
10  /*                                                                            */
11  /* ************************************************************************** */
12  
13  #include "include/minirt.h"
14  
15  t_canvas canvas_(int height)
16  {
17  	t_canvas this;
18  
19  //	this.aspect_ratio = 16.0/9.0;
20  	this.aspect_ratio = 4.0/3.0;
21  	this.height = height;
22  	this.width = height * this.aspect_ratio;
23  	return (this);
24  }