You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

10 lines
314 B

#pragma once
#include "Vector3.h"
class Sphere : public Geometry {
public:
Vector3 mOrigin;
float mRadius;
Sphere(const Vector3& origin, float radius);
void set(const Vector3& origin, float radius);
bool HitTest(const Ray& input_ray, float min_distance, float max_distance, HitPoint& hit_point);
};