public class SbBox2s extends SbBasic
See also:
SbBox3f, SbXfBox3f, SbBox2f, SbVec3f, SbVec2f, SbVec2s, SbMatrix
| Modifier and Type | Field and Description |
|---|---|
short[] |
array |
| Constructor and Description |
|---|
SbBox2s()
Constructor for a 2D integer box.
|
SbBox2s(SbBox2s copyFrom) |
SbBox2s(SbVec2s _min,
SbVec2s _max)
Constructor for a 2D integer box.
|
SbBox2s(short[] components) |
SbBox2s(short xmin,
short ymin,
short xmax,
short ymax)
Constructor for a 2D integer box.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
void |
extendBy(SbBox2s r)
Extends this box (if necessary) to contain the specified box.
|
void |
extendBy(SbVec2s pt)
Extends this box (if necessary) to contain the specified point.
|
float |
getAspectRatio()
Returns aspect ratio (ratio of width to height) of box.
|
short[] |
getBounds()
Gets the corners of the box.
|
SbVec2s |
getMax()
Returns the maximum point of the box.
|
SbVec2s |
getMin()
Returns the minimum point of the box.
|
SbVec2s[] |
getMinMax()
Gets the corners of the box.
|
short[] |
getOrigin()
Returns origin (minimum point) of box.
|
short[] |
getSize()
Returns box size.
|
short[] |
getValue() |
boolean |
hasArea()
Returns true if both dimensions of the box have positive size, and false otherwise.
|
boolean |
intersect(SbBox2s bb)
Returns true if the specified box intersects this box.
|
boolean |
intersect(SbVec2s pt)
Returns true if the specified point intersects this box.
|
SbBox2s |
intersection(SbBox2s box)
Returns the intersection of the specified box with this box.
|
boolean |
isEmpty()
Returns true if the box is empty, and false otherwise.
|
void |
makeEmpty()
Makes an empty box.
|
void |
setBounds(SbVec2s _min,
SbVec2s _max)
Sets the corners of the box.
|
void |
setBounds(short xmin,
short ymin,
short xmax,
short ymax)
Sets the corners of the box.
|
void |
setValue(SbBox2s copyFrom) |
SbBox2s |
setValue(short[] components) |
SbBox2s |
setValue(short[] components,
int startIndex) |
static SbBox2s[] |
toArray(long nativeArray,
long length) |
public SbBox2s(short[] components)
public SbBox2s(SbBox2s copyFrom)
public SbBox2s(short xmin,
short ymin,
short xmax,
short ymax)
public SbBox2s()
public SbBox2s setValue(short[] components, int startIndex)
public SbBox2s setValue(short[] components)
public short[] getValue()
public void setValue(SbBox2s copyFrom)
public boolean isEmpty()
makeEmpty() method. (This method only returns true if the maximum X value is
less than the minimum X value.)public void makeEmpty()
public static SbBox2s[] toArray(long nativeArray, long length)
public void setBounds(short xmin,
short ymin,
short xmax,
short ymax)
public boolean hasArea()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic void extendBy(SbVec2s pt)
public short[] getBounds()
public SbVec2s getMax()
public SbBox2s intersection(SbBox2s box)
public boolean intersect(SbBox2s bb)
public void extendBy(SbBox2s r)
public boolean intersect(SbVec2s pt)
public short[] getSize()
public float getAspectRatio()
public SbVec2s[] getMinMax()
public SbVec2s getMin()
public short[] getOrigin()
Generated on July 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com