LCOV - code coverage report
Current view: top level - src - Sphere.cpp (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 15 15
Test Date: 2026-04-03 02:26:39 Functions: 100.0 % 7 7

            Line data    Source code
       1              : #include "Sphere.h"
       2              : 
       3              : //------------------------------------------------------------------------------
       4          308 : Sphere::Sphere() {
       5          154 :   x = y = z = radius = 0.0f;
       6          308 : }
       7              : 
       8              : //------------------------------------------------------------------------------
       9          290 : Sphere::~Sphere() {}
      10              : 
      11              : //------------------------------------------------------------------------------
      12          139 : void Sphere::setSphere(const float &tX, const float &tY, const float &tZ, const float &tRadius) {
      13          139 :   x = tX;
      14          139 :   y = tY;
      15          139 :   z = tZ;
      16              : 
      17          139 :   radius = tRadius;
      18          139 : }
      19              : 
      20              : //------------------------------------------------------------------------------
      21           34 : void Sphere::getOriginVector(Vector &v) const {
      22           34 :   v.setVector(x, y, z);
      23           34 : }
      24              : 
      25              : //------------------------------------------------------------------------------
      26           59 : float Sphere::getRadius() const {
      27           59 :   return (radius);
      28              : }
        

Generated by: LCOV version 2.4-0