Interface VStream
- All Known Implementing Classes:
FilteredVStream
,PollingVStream
A VStream is similar to an IStream, but instead of a stream of doubles, it represents a stream of
Vector2Ds.
-
Method Summary
Modifier and TypeMethodDescriptiondefault VStream
Combine two VStreams by adding their results togetherstatic VStream
static VStream
static VStream
default IStream
Combine two VStreams into an IStream by dot producting them togetherdefault FilteredVStream
Create a new FilteredVStream from the current streamget()
default PollingVStream
polling
(double dt) Create a new PollingVStream from the current streamdefault VStream
Combine two VStreams by subtracting their results together
-
Method Details
-
create
-
create
-
create
-
get
Vector2D get() -
filtered
Create a new FilteredVStream from the current stream- Parameters:
filters
- the filters you want to apply to the VStream- Returns:
- The FilteredVStream
-
polling
Create a new PollingVStream from the current stream- Parameters:
dt
- the time inbetween each poll of the VStream- Returns:
- The PollingVStream
-
add
Combine two VStreams by adding their results together- Parameters:
other
- other VStream to and with this one- Returns:
- the resulting VStream after the and
-
sub
Combine two VStreams by subtracting their results together- Parameters:
other
- other VStream to or with this one- Returns:
- the resulting VStream after the or
-
dot
Combine two VStreams into an IStream by dot producting them together- Parameters:
other
- other VStream to dot with this one- Returns:
- the IStream with the dot product
-