• Api Documentation
  • Manual
Show / Hide Table of Contents
  • FishNet
    • InstanceFinder
  • FishNet.Authenticating
    • Authenticator
  • FishNet.Broadcast
    • IBroadcast
  • FishNet.Broadcast.Helping
    • BroadcastHandlerBase
  • FishNet.CodeGenerating
    • AllowMutableSyncTypeAttribute
    • CustomComparerAttribute
    • DefaultDeltaReaderAttribute
    • DefaultDeltaWriterAttribute
    • DefaultReaderAttribute
    • DefaultWriterAttribute
    • ExcludeSerializationAttribute
    • IncludeSerializationAttribute
    • NotSerializerAttribute
    • ReadUnallocatedAttribute
    • UseGlobalCustomSerializerAttribute
  • FishNet.Component.Animating
    • NetworkAnimator
  • FishNet.Component.ColliderRollback
    • ColliderRollback
    • RollbackManager
    • RollbackPhysicsType
  • FishNet.Component.Observing
    • DistanceCondition
    • GridCondition
    • GridEntry
    • HashGrid
    • HashGrid.GridAxes
    • HostOnlyCondition
    • MatchCondition
    • MatchCondition.ConditionCollections
    • OwnerOnlyCondition
    • SceneCondition
  • FishNet.Component.Ownership
    • PredictedOwner
    • PredictedSpawn
  • FishNet.Component.Prediction
    • NetworkCollider
    • NetworkCollider2D
    • NetworkCollision
    • NetworkCollision2D
    • NetworkTrigger
    • NetworkTrigger2D
    • OfflineRigidbody
    • Rigidbody2DState
    • RigidbodyPauser
    • RigidbodyState
    • RigidbodyStateExtensions
    • RigidbodyStateSerializers
    • RigidbodyType
  • FishNet.Component.Scenes
    • DefaultScene
  • FishNet.Component.Spawning
    • PlayerSpawner
  • FishNet.Component.Transforming
    • DetachableNetworkTickSmoother
    • MonoTickSmoother
    • NetworkTickSmoother
    • NetworkTransform
    • NetworkTransform.ComponentConfigurationType
    • NetworkTransform.GoalData
    • NetworkTransform.RateData
    • NetworkTransform.SnappedAxes
    • NetworkTransform.TransformData
    • NetworkTransform.TransformData.ExtrapolateState
    • SynchronizedProperty
  • FishNet.Component.Utility
    • BandwidthDisplay
    • PingDisplay
  • FishNet.Connection
    • NetworkConnection
    • NetworkConnectionExtensions
  • FishNet.Managing
    • NetworkManager
    • NetworkManager.HostIterationOrder
    • NetworkManager.PersistenceType
    • NetworkManagerExtensions
    • RemoteTimeoutType
  • FishNet.Managing.Client
    • ClientManager
    • ClientObjects
  • FishNet.Managing.Debugging
    • DebugManager
  • FishNet.Managing.Logging
    • LevelLoggingConfiguration
    • LoggingConfiguration
    • LoggingType
  • FishNet.Managing.Object
    • DualPrefab
    • ManagedObjects
  • FishNet.Managing.Observing
    • ObserverManager
  • FishNet.Managing.Predicting
    • PredictionManager
    • PredictionManager.PostPhysicsSyncTransformDel
    • PredictionManager.PostReconcileDel
    • PredictionManager.PostReplicateReplayDel
    • PredictionManager.PrePhysicsSyncTransformDel
    • PredictionManager.PreReconcileDel
    • PredictionManager.PreReplicateReplayDel
    • PredictionManager.ReconcileDel
    • PredictionManager.ReplicateReplayDel
    • ReplicateStateOrder
  • FishNet.Managing.Scened
    • ClientPresenceChangeEventArgs
    • DefaultSceneProcessor
    • EmptyStartScenesBroadcast
    • LoadOptions
    • LoadParams
    • LoadQueueData
    • PreferredScene
    • ReplaceOption
    • SceneLoadData
    • SceneLoadEndEventArgs
    • SceneLoadPercentEventArgs
    • SceneLoadStartEventArgs
    • SceneLookupData
    • SceneManager
    • SceneProcessorBase
    • SceneScopeType
    • SceneUnloadData
    • SceneUnloadEndEventArgs
    • SceneUnloadStartEventArgs
    • UnloadedScene
    • UnloadOptions
    • UnloadOptions.ServerUnloadMode
    • UnloadParams
    • UnloadQueueData
  • FishNet.Managing.Server
    • ClientConnectionChangeBroadcast
    • ConnectedClientsBroadcast
    • KickReason
    • ServerManager
    • ServerObjects
  • FishNet.Managing.Statistic
    • NetworkTrafficArgs
    • NetworkTraficStatistics
    • StatisticsManager
  • FishNet.Managing.Timing
    • EstimatedTick
    • EstimatedTick.OldTickOption
    • PhysicsMode
    • PreciseTick
    • PreciseTickExtensions
    • PreciseTickSerializer
    • TickRounding
    • TickType
    • TimeManager
  • FishNet.Managing.Transporting
    • IntermediateLayer
    • LatencySimulator
    • TransportManager
  • FishNet.Managing.Utility
    • Packets
  • FishNet.Object
    • ClientAttribute
    • DataOrderType
    • DespawnType
    • EmptyNetworkBehaviour
    • GlobalPreserveOwnedObjects
    • NetworkBehaviour
    • NetworkObject
    • NetworkObject.HostVisibilityUpdatedDelegate
    • NetworkObjectIdComparer
    • NetworkPreserveOwnedObjects
    • ObserversRpcAttribute
    • ReplicateState
    • ReplicateStateExtensions
    • RpcAttribute
    • ServerAttribute
    • ServerRpcAttribute
    • TargetRpcAttribute
    • TransformProperties
    • TransformPropertiesCls
    • TransformPropertiesFlag
    • TransformPropertiesOptionExtensions
  • FishNet.Object.Prediction
    • AdaptiveInterpolationType
    • ChildTransformTickSmoother
    • IReconcileData
    • IReplicateData
    • PredictionigidbodySerializers
    • PredictionRigidbody
    • PredictionRigidbody.AllForceData
    • PredictionRigidbody.EntryData
    • PredictionRigidbody.ForceApplicationType
    • PredictionRigidbody.IForceData
    • PredictionRigidbody2D
    • PredictionRigidbody2D.AllForceData
    • PredictionRigidbody2D.EntryData
    • PredictionRigidbody2D.ForceApplicationType
    • PredictionRigidbody2D2DSerializers
    • ReconcileAttribute
    • ReplicateAttribute
  • FishNet.Object.Synchronizing
    • ByteSyncVar
    • DoubleSyncVar
    • FloatSyncVar
    • ICustomSync
    • IntSyncVar
    • LongSyncVar
    • ReadPermission
    • SbyteSyncVar
    • ShortSyncVar
    • SyncDictionary<TKey, TValue>
    • SyncHashSet<T>
    • SyncList<T>
    • SyncObjectAttribute
    • SyncStopwatch
    • SyncStopwatch.SyncTypeChanged
    • SyncStopwatchOperation
    • SyncTimer
    • SyncTimer.SyncTypeChanged
    • SyncTimerOperation
    • SyncTypeSettings
    • SyncVarAttribute
    • UIntSyncVar
    • ULongSyncVar
    • UShortSyncVar
    • Vector2IntSyncVar
    • Vector2SyncVar
    • Vector3IntSyncVar
    • Vector3SyncVar
    • Vector4SyncVar
    • WritePermission
  • FishNet.Observing
    • HostVisibilityUpdateTypes
    • NetworkObserver
    • NetworkObserver.ConditionOverrideType
    • ObserverCondition
    • ObserverConditionType
  • FishNet.Serializing
    • AutoPackType
    • DeltaSerializerOption
    • DeltaSerializerOptionExtensions
    • PooledReader
    • PooledWriter
    • Reader
    • Reader.DataSource
    • ReaderPool
    • SubStream
    • Writer
    • WriterPool
  • FishNet.Transporting
    • Channel
    • ClientConnectionStateArgs
    • ClientReceivedDataArgs
    • ConnectedClientsArgs
    • IPAddressType
    • LocalConnectionState
    • RemoteConnectionState
    • RemoteConnectionStateArgs
    • ServerConnectionStateArgs
    • ServerReceivedDataArgs
    • Transport
    • TransportConsts
  • GameKit.Dependencies.Utilities
    • ApplicationState
    • Arrays
    • BasicQueue<T>
    • Booleans
    • Bytes
    • CanvaseGroups
    • CanvasGroupBlockingType
    • CollectionCaches<T>
    • CollectionCaches<T1, T2>
    • Collider2DExtensions
    • ColliderExtensions
    • DictionaryFN
    • Disks
    • Enums
    • Floats
    • Hashing
    • Ints
    • IOs
    • IResettable
    • IWeighted
    • Layers
    • LayoutGroups
    • Materials
    • Maths
    • ObjectCaches<T>
    • Objects
    • Particles
    • PointerMonoBehaviour
    • Quaternions
    • ResettableCollectionCaches<T>
    • ResettableCollectionCaches<T1, T2>
    • ResettableObjectCaches<T>
    • ResettableT1CollectionCaches<T1, T2>
    • ResettableT2CollectionCaches<T1, T2>
    • Strings
    • Transforms
    • UInts
    • Vectors
    • WeightedRandom
  • GameKit.Dependencies.Utilities.ObjectPooling
    • ListStack<GameObject>
    • ObjectPool
    • PoolData
  • GameKit.Dependencies.Utilities.ObjectPooling.Examples
    • Projectile
    • ProjectileSpawner
  • GameKit.Dependencies.Utilities.Types
    • ByteRange
    • CanvasGroupFader
    • CanvasGroupFader.FadeGoalType
    • CanvasTracker
    • DDOL
    • FloatRange
    • FloatRange2D
    • IntRange
    • IOrderable
    • RectTransformResizer
    • RectTransformResizer.ResizeData
    • RectTransformResizer.ResizeDelegate
    • ResettableRingBuffer<T>
    • ResettableRingBuffer<T>.Enumerator
    • RingBuffer<T>
    • RingBuffer<T>.Enumerator
    • SceneAttribute
    • ScrollbarValueSetter
    • SingletonScriptableObject<T>
    • SmoothCameraTarget
    • TimedOperation
    • UIntRange
    • Vector2Range
  • GameKit.Dependencies.Utilities.Types.CanvasContainers
    • ButtonData
    • ButtonData.PressedDelegate
    • FloatingContainer
    • FloatingImage
    • ImageButtonData
    • ResizableContainer
  • GameKit.Dependencies.Utilities.Types.OptionMenuButtons
    • FloatingOptions

Class Vectors

Inheritance
System.Object
Vectors
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: GameKit.Dependencies.Utilities
Assembly: GameKit.Dependencies.dll
Syntax
public static class Vectors

Methods

Add(Vector3, Vector2)

Adds a Vector2 X/Y onto a Vector3.

Declaration
public static Vector3 Add(this Vector3 v3, Vector2 v2)
Parameters
Type Name Description
UnityEngine.Vector3 v3
UnityEngine.Vector2 v2
Returns
Type Description
UnityEngine.Vector3

FastDistance(Vector3, Vector3)

Fast Distance.

Declaration
public static float FastDistance(Vector3 a, Vector3 b)
Parameters
Type Name Description
UnityEngine.Vector3 a
UnityEngine.Vector3 b
Returns
Type Description
System.Single

FastNormalize(Vector3)

Fast Normalize.

Declaration
public static Vector3 FastNormalize(Vector3 value)
Parameters
Type Name Description
UnityEngine.Vector3 value
Returns
Type Description
UnityEngine.Vector3

FastSqrMagnitude(Vector3)

Fast SqrMagnitude.

Declaration
public static float FastSqrMagnitude(Vector3 vector)
Parameters
Type Name Description
UnityEngine.Vector3 vector
Returns
Type Description
System.Single

GetRate(Vector2, Vector2, Single, out Single, UInt32)

Returns how fast an object must move over duration to reach goal.

Declaration
public static float GetRate(this Vector2 a, Vector2 goal, float duration, out float distance, uint interval = 1U)
Parameters
Type Name Description
UnityEngine.Vector2 a
UnityEngine.Vector2 goal

Vector3 to measure distance against.

System.Single duration

How long it should take to move to goal.

System.Single distance
System.UInt32 interval

A multiplier applied towards interval. Typically this is used for ticks passed.

Returns
Type Description
System.Single

GetRate(Vector3, Vector3, Single, out Single, UInt32)

Returns how fast an object must move over duration to reach goal.

Declaration
public static float GetRate(this Vector3 a, Vector3 b, float duration, out float distance, uint interval = 1U)
Parameters
Type Name Description
UnityEngine.Vector3 a
UnityEngine.Vector3 b

Vector3 to measure distance against.

System.Single duration

How long it should take to move to goal.

System.Single distance
System.UInt32 interval

A multiplier applied towards interval. Typically this is used for ticks passed.

Returns
Type Description
System.Single

InverseLerp(Vector3, Vector3, Vector3)

Calculates the linear parameter t that produces the interpolant value within the range [a, b].

Declaration
public static float InverseLerp(Vector3 a, Vector3 b, Vector3 value)
Parameters
Type Name Description
UnityEngine.Vector3 a
UnityEngine.Vector3 b
UnityEngine.Vector3 value
Returns
Type Description
System.Single

IsNan(Vector3)

Returns if any values within a Vector3 are NaN.

Declaration
public static bool IsNan(this Vector3 source)
Parameters
Type Name Description
UnityEngine.Vector3 source
Returns
Type Description
System.Boolean

Lerp2(Vector2[], Single)

Lerp between three Vector2 values.

Declaration
public static Vector2 Lerp2(Vector2[] vectors, float percent)
Parameters
Type Name Description
UnityEngine.Vector2[] vectors
System.Single percent
Returns
Type Description
UnityEngine.Vector2

Lerp3(Vector2, Vector2, Vector2, Single)

Lerp between three Vector2 values.

Declaration
public static Vector2 Lerp3(Vector2 a, Vector2 b, Vector2 c, float percent)
Parameters
Type Name Description
UnityEngine.Vector2 a
UnityEngine.Vector2 b
UnityEngine.Vector2 c
System.Single percent
Returns
Type Description
UnityEngine.Vector2

Lerp3(Vector3, Vector3, Vector3, Single)

Lerp between three Vector3 values.

Declaration
public static Vector3 Lerp3(Vector3 a, Vector3 b, Vector3 c, float percent)
Parameters
Type Name Description
UnityEngine.Vector3 a
UnityEngine.Vector3 b
UnityEngine.Vector3 c
System.Single percent
Returns
Type Description
UnityEngine.Vector3

Lerp3(Vector3[], Single)

Lerp between three Vector3 values.

Declaration
public static Vector3 Lerp3(Vector3[] vectors, float percent)
Parameters
Type Name Description
UnityEngine.Vector3[] vectors
System.Single percent
Returns
Type Description
UnityEngine.Vector3

Multiply(Vector2, Vector2)

Multiplies a Vector2 by another.

Declaration
public static Vector2 Multiply(this Vector2 src, Vector2 multiplier)
Parameters
Type Name Description
UnityEngine.Vector2 src
UnityEngine.Vector2 multiplier
Returns
Type Description
UnityEngine.Vector2

Multiply(Vector3, Vector3)

Multiplies a Vector3 by another.

Declaration
public static Vector3 Multiply(this Vector3 src, Vector3 multiplier)
Parameters
Type Name Description
UnityEngine.Vector3 src
UnityEngine.Vector3 multiplier
Returns
Type Description
UnityEngine.Vector3

Near(Vector3, Vector3, Single)

Returns if the target Vector3 is within variance of the source Vector3.

Declaration
public static bool Near(this Vector3 a, Vector3 b, float tolerance = 0.01F)
Parameters
Type Name Description
UnityEngine.Vector3 a

Source vector.

UnityEngine.Vector3 b

Target vector.

System.Single tolerance

How close the target vector must be to be considered close.

Returns
Type Description
System.Boolean

Subtract(Vector3, Vector2)

Subtracts a Vector2 X/Y from a Vector3.

Declaration
public static Vector3 Subtract(this Vector3 v3, Vector2 v2)
Parameters
Type Name Description
UnityEngine.Vector3 v3
UnityEngine.Vector2 v2
Returns
Type Description
UnityEngine.Vector3
In This Article
Back to top Generated by DocFX