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