Mojo struct
Weighted2DPoint
struct Weighted2DPoint[dtype: DType]
Utility class to wrap 2-d point coordinates and floating point weight for bilinear interpolation.
Fieldsβ
- βy (
Int): - βx (
Int): - βw (
Scalar[dtype]):
Implemented traitsβ
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methodsβ
__init__β
__init__(y: Int, x: Int, weight: Scalar[dtype]) -> Self
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!