Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.Framework
Commits
727d5eee
Commit
727d5eee
authored
Jul 12, 2022
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 3D鼠标添加是否启用平滑设置
parent
4bdac1b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
VIZ.Framework.Core/ThreeDMouse/Navigation3DModel.cs
+11
-1
No files found.
VIZ.Framework.Core/ThreeDMouse/Navigation3DModel.cs
View file @
727d5eee
...
...
@@ -37,6 +37,11 @@ namespace VIZ.Framework.Core
public
double
MaxX
{
get
;
set
;
}
=
3
;
/// <summary>
/// 是否使用平滑
/// </summary>
public
bool
IsUseSmooth
{
get
;
set
;
}
=
true
;
/// <summary>
/// 平滑处理器
/// </summary>
private
Navigation3DSmooth
Smooth
=
new
Navigation3DSmooth
();
...
...
@@ -46,7 +51,12 @@ namespace VIZ.Framework.Core
/// </summary>
public
void
UpdateSmooth
()
{
double
x
=
this
.
Smooth
.
Call
(-
this
.
Camera
.
Position
.
X
);
double
x
=
-
this
.
Camera
.
Position
.
X
;
if
(
this
.
IsUseSmooth
)
{
x
=
this
.
Smooth
.
Call
(-
this
.
Camera
.
Position
.
X
);
}
x
=
MathHelper
.
Clip
(-
this
.
MaxX
,
this
.
MaxX
,
x
);
this
.
SmoothCamera
.
Position
=
new
Point
(
x
,
0
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment