class ByVector4FilterOperation(val attrId: Int, var propId: Int = 0, val filterBuilder: FilterBuilder)
// Find entities where vector4Var equals Vector4(1.0f, 2.0f, 3.0f, 4.0f)
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.vector4VarData).isEqualTo(Vector4(1.0f, 2.0f, 3.0f, 4.0f)) }
// Find entities where vector4Var.w is greater than 0.5f
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.vector4VarData).byW().greaterThan(0.5f) }
// Find entities where vector4Var.z is between 0.0f and 1.0f
Query.where { has(TestComponent.id)}
.filter { by(TestComponent.vector4VarData).byZ().greaterThanOrEqualTo(0.0f) and
by(TestComponent.vector4VarData).byZ().lessThanOrEqualTo(1.0f) }
| Name | Summary |
|---|---|
ByVector4FilterOperation | constructor(attrId: Int, propId: Int = 0, filterBuilder: FilterBuilder) |
| Name | Summary |
|---|---|
attrId | val attrId: Int |
filterBuilder | val filterBuilder: FilterBuilder |
propId | var propId: Int |
| Name | Summary |
|---|---|
byW | fun byW(): ByVector4FilterOperation Sets the filter to operate on the W component of the Vector4. |
byX | fun byX(): ByVector4FilterOperation Sets the filter to operate on the X component of the Vector4. |
byY | fun byY(): ByVector4FilterOperation Sets the filter to operate on the Y component of the Vector4. |
byZ | fun byZ(): ByVector4FilterOperation Sets the filter to operate on the Z component of the Vector4. |
greaterThan | fun greaterThan(value: Float): ByVector4FilterNode Creates a filter node representing a greater than condition with the given float value. This compares only the component specified by propId (X, Y, Z, or W). By default, the filter operates on the X component. |
greaterThanOrEqualTo | fun greaterThanOrEqualTo(value: Float): ByVector4FilterNode Creates a filter node representing a greater than or equal to condition with the given float value. This compares only the component specified by propId (X, Y, Z, or W). By default, the filter operates on the X component. |
isEqualTo | fun isEqualTo(value: Vector4): ByVector4FilterNode Creates a filter node representing an equality condition with the given Vector4 value. This compares all x, y, z, and w components of the vector. fun isEqualTo(value: Float): ByVector4FilterNode Creates a filter node representing an equality condition with the given float value. This compares only the component specified by propId (X, Y, Z, or W). By default, the filter operates on the X component. |
lessThan | fun lessThan(value: Float): ByVector4FilterNode Creates a filter node representing a less than condition with the given float value. This compares only the component specified by propId (X, Y, Z, or W). By default, the filter operates on the X component. |
lessThanOrEqualTo | fun lessThanOrEqualTo(value: Float): ByVector4FilterNode Creates a filter node representing a less than or equal to condition with the given float value. This compares only the component specified by propId (X, Y, Z, or W). By default, the filter operates on the X component. |