This is a helper method which will return a non-empty list of items of type T, if and only if *all* of the given nodes are of type T.
This is a helper method which will return a non-empty list of items of type T, if and only if *all* of the given nodes are of type T.
the type you're interested in
a list of SceneNode
the elements in the nodes list, as a List[T], if *all* of them are of type T, or an empty list otherwise.
This is a helper methode which returns a non-empty Option[T] if and only if the list of nodes consists of a single item of type T
This is a helper methode which returns a non-empty Option[T] if and only if the list of nodes consists of a single item of type T
the type you're interested in
a list of SceneNode
Some[T] if the list consisted of a single item of type T, or None otherwise
This is a helper method which will filter a list of nodes, and return those which are of a given type T.
This is a helper method which will filter a list of nodes, and return those which are of a given type T.
the type you're interested in
a list of SceneNode
all the elements in the nodes list which are of type T, as a List[T]