public class btUnionFind extends BulletBase
className| Constructor and Description |
|---|
btUnionFind() |
btUnionFind(long cPtr,
boolean cMemoryOwn)
Construct a new btUnionFind, normally you should not need this constructor it's intended for low-level usage.
|
| Modifier and Type | Method and Description |
|---|---|
void |
allocate(int N) |
int |
find(int x) |
int |
find(int p,
int q) |
void |
Free() |
static long |
getCPtr(btUnionFind obj) |
btElement |
getElement(int index) |
btElement |
getElementConst(int index) |
int |
getNumElements() |
boolean |
isRoot(int x) |
void |
reset(int N) |
void |
sortIslands() |
void |
unite(int p,
int q) |
dispose, equals, getCPointer, hashCode, hasOwnership, isDisposed, isObtained, obtain, release, releaseOwnership, takeOwnership, toStringpublic btUnionFind(long cPtr,
boolean cMemoryOwn)
public btUnionFind()
public static long getCPtr(btUnionFind obj)
public void sortIslands()
public void reset(int N)
public int getNumElements()
public boolean isRoot(int x)
public btElement getElement(int index)
public btElement getElementConst(int index)
public void allocate(int N)
public void Free()
public int find(int p,
int q)
public void unite(int p,
int q)
public int find(int x)
Copyright © 2021. All rights reserved.