Show / Hide Table of Contents

Class VectorCapture

An event that is meant to store a vector value that was present at some point in time. Used to represent things such as position and rotation.

Inheritance
System.Object
Capture<UnityEngine.Vector3>
VectorCapture
Implements
ICapture
Inherited Members
Capture<Vector3>.Time
Capture<Vector3>.Value
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)
Namespace: Recolude.Core
Assembly: Recolude.Core.dll
Syntax
[Serializable]
public class VectorCapture : Capture<Vector3>, ICapture

Constructors

VectorCapture(Single, Vector3)

Creates a new capture of a vector value in a point in time.

Declaration
public VectorCapture(float time, Vector3 vector)
Parameters
Type Name Description
System.Single time

A point in time the vector was observed.

UnityEngine.Vector3 vector

The value of the vector observed.

Methods

SetTime(Single)

Creates a new VectorCapture with the vector value but with a modified time, leaving the original event unchanged.

Declaration
public override ICapture SetTime(float newTime)
Parameters
Type Name Description
System.Single newTime

The new time the event occured in the recording.

Returns
Type Description
ICapture

A entirely new capture that occured with the time passed in.

Overrides
Recolude.Core.Capture<UnityEngine.Vector3>.SetTime(System.Single)

ToCSV()

Builds a string that represents a single row in a csv file that contains this object's data.

Declaration
public override string ToCSV()
Returns
Type Description
System.String

A row of csv data as a string.

Overrides
Recolude.Core.Capture<UnityEngine.Vector3>.ToCSV()

ToJSON()

Builds a JSON string that represents the VectorCapture object.

Declaration
public override string ToJSON()
Returns
Type Description
System.String

A JSON string.

Overrides
Recolude.Core.Capture<UnityEngine.Vector3>.ToJSON()

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Implements

ICapture

Extension Methods

ICaptureExtensions.FallsWithin(ICapture, Single, Single)
ICaptureExtensions.FallsWithin(ICapture, Vector2)
Back to top Generated by DocFX