#include <pyfbsdk.h>
Public Member Functions | |
| FBUV () | |
| Default constructor. | |
| FBUV (FBUV pUV) | |
| Copy constructor. | |
| FBUV (float pU, float pV) | |
| Constructor from components. | |
| FBUV (object pObject) | |
| Constructor from a Python object with indexing support. | |
| FBUV (list pList) | |
| Constructor from list. | |
| int | __len__ () |
| Returns the number of elements. | |
| float | __getitem__ (int pIndex) |
| Returns the ith component. | |
| void | __setitem__ (int pIndex, float pValue) |
| Sets the ith component. | |
| str | __repr__ () |
| Representation for debugging. | |
| str | __str__ () |
| String representation. | |
| FBUV | __add__ (FBUV pUV) |
| Addition operator with another UV. | |
| FBUV | __add__ (float pScalar) |
| Addition operator with a scalar. | |
| FBUV | __sub__ (FBUV pUV) |
| Subtraction operator with another UV. | |
| FBUV | __sub__ (float pScalar) |
| Subtraction operator with a scalar. | |
| FBUV | __mul__ (FBUV pUV) |
| Multiplication operator with another UV (component-wise). | |
| FBUV | __mul__ (float pScalar) |
| Multiplication operator with a scalar. | |
| FBUV | __div__ (FBUV pUV) |
| Division operator with another UV (component-wise). | |
| FBUV | __div__ (float pScalar) |
| Division operator with a scalar. | |
| FBUV | __iadd__ (FBUV pUV) |
| In-place addition with another UV. | |
| FBUV | __iadd__ (float pScalar) |
| In-place addition with a scalar. | |
| FBUV | __isub__ (FBUV pUV) |
| In-place subtraction with another UV. | |
| FBUV | __isub__ (float pScalar) |
| In-place subtraction with a scalar. | |
| FBUV | __imul__ (FBUV pUV) |
| In-place multiplication with another UV (component-wise). | |
| FBUV | __imul__ (float pScalar) |
| In-place multiplication with a scalar. | |
| FBUV | __idiv__ (FBUV pUV) |
| In-place division with another UV (component-wise). | |
| FBUV | __idiv__ (float pScalar) |
| In-place division with a scalar. | |
| FBUV | __neg__ () |
| Unary negation operator. | |
| FBUV | CopyFrom (FBUV pUV) |
| Copy values from another UV. | |
| FBUV | CopyFrom (list pList) |
| Copy values from a list. | |
| bool | NotEqual (FBUV pUV) |
| Compare for inequality. | |
| bool | IsEqual (FBUV pUV) |
| Compare for equality. | |
| int | GetBufferAddress () |
| Get the buffer address for the UV data. | |
| list | GetList () |
| Get the UV as a list. | |
FBUV class.
Represents a UV texture coordinate as 2 float values. Value 0 is the U coordinate and value 1 is the V coordinate. Values are typically in the range of 0.0 to 1.0.
| FBUV | ( | ) |
Default constructor.
Initializes to (0, 0).
Referenced by __add__(), __add__(), __div__(), __div__(), __iadd__(), __iadd__(), __idiv__(), __idiv__(), __imul__(), __imul__(), __isub__(), __isub__(), __mul__(), __mul__(), __neg__(), __sub__(), __sub__(), CopyFrom(), CopyFrom(), FBUV(), IsEqual(), and NotEqual().
Constructor from a Python object with indexing support.
| pObject | Object with len and indexing support containing 2 float values. |
Returns the ith component.
Corresponds to python: print uv[1]
| pIndex | Index of the component to get (0 or 1). |
In-place addition with another UV.
Corresponds to python: uv1 += uv2
| pUV | UV to add. |
References FBUV().
In-place addition with a scalar.
Corresponds to python: uv += 2.0
| pScalar | Scalar value to add to each component. |
References FBUV().
In-place division with another UV (component-wise).
Corresponds to python: uv1 /= uv2
| pUV | UV to divide by. |
References FBUV().
In-place division with a scalar.
Corresponds to python: uv /= 2.0
| pScalar | Scalar value to divide each component by. |
References FBUV().
In-place multiplication with another UV (component-wise).
Corresponds to python: uv1 *= uv2
| pUV | UV to multiply. |
References FBUV().
In-place multiplication with a scalar.
Corresponds to python: uv *= 2.0
| pScalar | Scalar value to multiply each component. |
References FBUV().
In-place subtraction with another UV.
Corresponds to python: uv1 -= uv2
| pUV | UV to subtract. |
References FBUV().
In-place subtraction with a scalar.
Corresponds to python: uv -= 2.0
| pScalar | Scalar value to subtract from each component. |
References FBUV().
| int __len__ | ( | ) |
Returns the number of elements.
Corresponds to python: len(object)
| FBUV __neg__ | ( | ) |
| str __repr__ | ( | ) |
Representation for debugging.
Corresponds to python: repr(uv)
Sets the ith component.
Corresponds to python: uv[1] = 0.5
| pIndex | Index of the component to set (0 or 1). |
| pValue | Value of the UV component. |
| str __str__ | ( | ) |
String representation.
Corresponds to python: str(uv) or print(uv)
| int GetBufferAddress | ( | ) |
Get the buffer address for the UV data.
| list GetList | ( | ) |
Get the UV as a list.
Compare for equality.
| pUV | UV to compare with. |
References FBUV().