splat.cpp
来自「The goal of this project is to explore t」· C++ 代码 · 共 47 行
CPP
47 行
/*+-------------------------------------------------------------------
Ben Landon
CSCI E-235
Final Project
Splat.cpp - Simple implementation of the Splat class. See
the file Splat.hpp for implementation notes.
*/
#include "Splat.hpp"
Splat::Splat (void)
: color(0.0f, 0.0f, 0.0f), point(0.0f, 0.0f, 0.0f)
{
}
/*+-------------------------------------------------------------------
Splat copy constructor
I know that this implementation is just a field by field
copy, which is what the compiler would have produced,
but I like to control the implementation of the copy
constructor and the assignment operator.
*/
Splat::Splat (const Splat& splat)
{
color = splat.color;
point = splat.point;
}
/*+-------------------------------------------------------------------
Splat assignment operator
*/
const Splat& Splat::operator= (const Splat& splat)
{
color = splat.color;
point = splat.point;
return *this;
}
float Splat::max_splat_value = 0.0f;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?