Show / Hide Table of Contents

Class ViewDistance

ViewDistance structure used by IWorldObserver for representing view distance optimized for checks. Visible is when object is visible in the view distance and NotVisible is when object is out of view distance. It usually higher than Visible value to avoid too adding and removing objects in the view.

Inheritance
System.Object
ViewDistance
Namespace: Eco.Shared.Networking
Assembly: Eco.Shared.dll
Syntax
public sealed class ViewDistance : ValueType

Constructors

ViewDistance(Single, Single)

Creates new ViewDistance with visible distance and invisibilityThreshold when objects in view distance no more visible. NotVisible calculated as Visible + invisibilityThreshold.

Declaration
public ViewDistance(float visible, float invisibilityThreshold)
Parameters
Type Name Description
System.Single visible
System.Single invisibilityThreshold

Fields

NotVisible

Declaration
public readonly float NotVisible
Field Value
Type Description
System.Single

NotVisibleSq

Declaration
public readonly float NotVisibleSq
Field Value
Type Description
System.Single

Visible

Declaration
public readonly float Visible
Field Value
Type Description
System.Single

VisibleSq

Declaration
public readonly float VisibleSq
Field Value
Type Description
System.Single

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾