class ByFloatFilterOperation(val attrId: Int, val filterBuilder: FilterBuilder)
// Find entities where floatVar equals 3.14f
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.floatVarData).isEqualTo(3.14f) }
// Find entities where floatVar is between 0.0f and 1.0f
Query.where { has(TestComponent.id) }
.filter { by(TestComponent.floatVarData).greaterThanOrEqualTo(0.0f) and
by(TestComponent.floatVarData).lessThanOrEqualTo(1.0f) }
// Find entities where floatVar is not equal to 0.0f
Query.where { has(TestComponent.id) }
.filter { not(by(TestComponent.floatVarData).isEqualTo(0.0f)) }
| Name | Summary |
|---|---|
ByFloatFilterOperation | constructor(attrId: Int, filterBuilder: FilterBuilder) |
| Name | Summary |
|---|---|
attrId | val attrId: Int |
filterBuilder | val filterBuilder: FilterBuilder |
| Name | Summary |
|---|---|
greaterThan | fun greaterThan(value: Float): ByFloatFilterNode Creates a filter node representing a greater than condition with the given value. |
greaterThanOrEqualTo | fun greaterThanOrEqualTo(value: Float, epsilon: Float = 1.0E-5f): ByFloatFilterNode Creates a filter node representing a greater than or equal to condition with the given value. |
isEqualTo | fun isEqualTo(value: Float, epsilon: Float = 1.0E-5f): ByFloatFilterNode Creates a filter node representing an equality condition with the given value. |
lessThan | fun lessThan(value: Float): ByFloatFilterNode Creates a filter node representing a less than condition with the given value. |
lessThanOrEqualTo | fun lessThanOrEqualTo(value: Float, epsilon: Float = 1.0E-5f): ByFloatFilterNode Creates a filter node representing a less than or equal to condition with the given value. |