We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e390a5 commit 4474e0bCopy full SHA for 4474e0b
Security_Engine/Query/ViewCone.cs
@@ -48,7 +48,7 @@ public static PolyCurve ViewCone(this CameraDevice cameraDevice)
48
Point targetLocation = cameraDevice.TargetPosition;
49
double radius = targetLocation.Distance(cameraLocation);
50
double horizontal = cameraDevice.HorizontalFieldOfView;
51
- double angle = 2 * Math.Atan(horizontal / 2 / radius);
+ double angle = Math.Atan(horizontal / radius);
52
53
Vector direction = BH.Engine.Geometry.Create.Vector(cameraLocation, cameraDevice.TargetPosition);
54
Vector startPointDir = direction.Rotate(-angle / 2, Vector.ZAxis);
0 commit comments