Cumulia Illustrator Rendering Engine v2.1.0
A Rendering engine for industrial CAD/CAE model and optimized for greatest performance
 
Loading...
Searching...
No Matches
projectmatrix.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 2025-08-05
15// Version V2.1.0
16//##################################################################################################
17
18#pragma once
19
20namespace cil
21{
22 class Matrix4f;
23 class MinMax;
24 class Vector2f;
25
30
34 void setOrthoSize(Matrix4f& matrix, const Vector2f& size);
35
40
44 void setOrthoMinMax(Matrix4f& matrix, const MinMax& mm);
45
50 float getAspect(const Matrix4f& matrix);
51
55 void setAspect(Matrix4f& matrix, float aspect);
56}
The Matrix4f class is 4 X 4 matrix.
Definition matrix.h:226
The MinMax class inherits from Tuple, specilizing the template parameters to float for element type.
Definition minmax.h:31
The class Vector2f inherits from the templated class of Vector2, and the template parameters are spec...
Definition vector.h:268
Definition decal.h:23
void setAspect(Matrix4f &matrix, float aspect)
Scales the width of a orthographic view based on the desired aspect ratio while keeping the height co...
void setOrthoSize(Matrix4f &matrix, const Vector2f &size)
Modifying a projection matrix with a desired size of orthographic view.
MinMax getOrthoMinMax(const Matrix4f &matrix)
Calculates the near and far clipping planes of the orthographic projection.
float getAspect(const Matrix4f &matrix)
Gets the aspect ratio of an orthographic projection matrix.
Vector2f getOrthoSize(const Matrix4f &matrix)
Calculates the width and height of the orthographic projection matrix, and returns a Vector2f object ...
void setOrthoMinMax(Matrix4f &matrix, const MinMax &mm)
Modifying a projection matrix with a desired near and far clipping planes for the orthographic projec...