Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add section on python bindings #135

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/PortingGuide2-3.md
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,10 @@ Other changes:
* When compiling for CUDA, the `complex` type comes from `thrust`
rather than `std`

### `Shear6` in ImathShear.h

* `baseTypeMin()` is replaced with `baseTypeLowest()`

### ImathVecAlgo.h

The following functions are no longer defined for integer-based
Expand Down Expand Up @@ -517,5 +521,27 @@ vectors, because such behavior is not clearly defined:
constructors that take as an argument any data object of similar
size and layout.

## Python Changes:

In general, the changes at the C++ level are reflected in the python
bindings. In particular:

* The following methods are removed for integer-based
vector and matrix objects and arrays:

- `length()`
- `normalize()`
- `normalizeExc()`
- `normalizeNonNull()`
- `normalized()`
- `normalizedExc()`
- `normalizedNonNull()`

* `baseTypeMin()` is replaced with `baseTypeLowest()` for:

- `Vec2`, `Vec3`, `Vec4`
- `Color3`, `Color4`
- `Matrix22`, `Matrix33`, `Matrix44`
- `Box`
- `Shear6`