初始提交: UE5.3项目基础框架
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
// Copyright 2020-2024 CesiumGS, Inc. and Contributors
|
||||
|
||||
#include "CesiumCamera.h"
|
||||
#include "CesiumRuntime.h"
|
||||
#include "Math/UnrealMathUtility.h"
|
||||
|
||||
FCesiumCamera::FCesiumCamera()
|
||||
: ViewportSize(1.0, 1.0),
|
||||
Location(0.0, 0.0, 0.0),
|
||||
Rotation(0.0, 0.0, 0.0),
|
||||
FieldOfViewDegrees(0.0),
|
||||
OverrideAspectRatio(0.0) {}
|
||||
|
||||
FCesiumCamera::FCesiumCamera(
|
||||
const FVector2D& ViewportSize_,
|
||||
const FVector& Location_,
|
||||
const FRotator& Rotation_,
|
||||
double FieldOfViewDegrees_)
|
||||
: ViewportSize(ViewportSize_),
|
||||
Location(Location_),
|
||||
Rotation(Rotation_),
|
||||
FieldOfViewDegrees(FieldOfViewDegrees_),
|
||||
OverrideAspectRatio(0.0) {}
|
||||
|
||||
FCesiumCamera::FCesiumCamera(
|
||||
const FVector2D& ViewportSize_,
|
||||
const FVector& Location_,
|
||||
const FRotator& Rotation_,
|
||||
double FieldOfViewDegrees_,
|
||||
double OverrideAspectRatio_)
|
||||
: ViewportSize(ViewportSize_),
|
||||
Location(Location_),
|
||||
Rotation(Rotation_),
|
||||
FieldOfViewDegrees(FieldOfViewDegrees_),
|
||||
OverrideAspectRatio(OverrideAspectRatio_) {}
|
||||
Reference in New Issue
Block a user