36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
// 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_) {}
|