Cumulia Illustrator Rendering Engine v1.0.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
real.h
1//##################################################################################################
2//
3// Copyright (c) 2024 Beijing Qiongqi Tech Co.,Ltd. All rights reserved.
4
5// This source code is confidential and proprietary to Beijing Qiongqi Tech Co.,Ltd(The Holder).
6// Any unauthorized use, copying, modification, or distribution of the code is strictly prohibited.
7// Any user shall obtain authorizaition from the Holder before modifying the source code. And the user shall not
8// sublicense, sell, distribute, or transfer the source code, whether in original or modified form, to any third party
9// without the prior written consent of the Holder.
10
11// This copyright notice and permission grant shall be included in all copies or substantial portions of the source code.
12
13// Author Cumulia Illustrator
14// Date 2024-05-01
15// Version V1.0.0
16//##################################################################################################
17
18#pragma once
19
20#include "tuple.h"
21
22namespace cil
23{
25 class Real : public Tuple<float>
26 {
27 public:
28 Real();
29 Real(float v);
30 Real(const Real& other);
31
33 void set(float v);
35 float get() const;
36 };
37
38 using real = Real;
39}
The Real class inherits from the Tuple class and stores a single float.
Definition real.h:26
Real(float v)
Contructs a Real object that stores the specified float v.
float get() const
Gets the value of the Real object and the value could not be changed while accessing it.
void set(float v)
Sets the value of the Real object to the provided float v.
Real(const Real &other)
Constructs a Real object by copying the value of another Real object.
Real()
Contructs a Real object that stores a single float, initialized to 0.
The Tuple is a templated class inheriting from the most basic class Variant.
Definition tuple.h:27
Definition decal.h:23