@Name(value="op::Rectangle<float>") @NoOffset @Properties(inherit=openpose.class) public class FloatRectangle extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
FloatRectangle() |
FloatRectangle(float x,
float y,
float width,
float height) |
FloatRectangle(FloatRectangle rectangle)
Copy constructor.
|
FloatRectangle(long size)
Native array allocator.
|
FloatRectangle(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
float |
area() |
FloatPoint |
bottomRight() |
FloatPoint |
center()
Move assignment.
|
FloatRectangle |
divide(float value) |
FloatRectangle |
dividePut(float value) |
FloatRectangle |
getPointer(long i) |
float |
height() |
FloatRectangle |
height(float setter) |
FloatRectangle |
multiply(float value) |
FloatRectangle |
multiplyPut(float value)
It returns a string with the whole Rectangle
|
FloatRectangle |
position(long position) |
FloatRectangle |
put(FloatRectangle rectangle)
Copy assignment.
|
void |
recenter(float newWidth,
float newHeight) |
FloatPoint |
topLeft() |
float |
width() |
FloatRectangle |
width(float setter) |
float |
x() |
FloatRectangle |
x(float setter) |
float |
y() |
FloatRectangle |
y(float setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public FloatRectangle(Pointer p)
Pointer(Pointer)
.public FloatRectangle(long size)
Pointer.position(long)
.public FloatRectangle(float x, float y, float width, float height)
public FloatRectangle()
public FloatRectangle(@Const @ByRef FloatRectangle rectangle)
fast copy
: For performance purpose, copying a Rectanglerectangle
- Rectangle to be copied.public FloatRectangle position(long position)
public FloatRectangle getPointer(long i)
getPointer
in class Pointer
public float x()
public FloatRectangle x(float setter)
public float y()
public FloatRectangle y(float setter)
public float width()
public FloatRectangle width(float setter)
public float height()
public FloatRectangle height(float setter)
@ByRef @Name(value="operator =") public FloatRectangle put(@Const @ByRef FloatRectangle rectangle)
rectangle
- Rectangle to be copied.@ByVal public FloatPoint center()
rectangle
- Rectangle to be moved.@ByVal public FloatPoint topLeft()
@ByVal public FloatPoint bottomRight()
public float area()
public void recenter(float newWidth, float newHeight)
@ByRef @Name(value="operator *=") public FloatRectangle multiplyPut(float value)
[x, y, width, height]
@ByVal @Name(value="operator *") public FloatRectangle multiply(float value)
@ByRef @Name(value="operator /=") public FloatRectangle dividePut(float value)
@ByVal @Name(value="operator /") public FloatRectangle divide(float value)
Copyright © 2022. All rights reserved.