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