Xor

data class Xor<P : Position<P>>(val positionBasedFilterA: PositionBasedFilter<P>, val positionBasedFilterB: PositionBasedFilter<P>) : PositionBasedFilter<P>

Check if only one between positionBasedFilterA and positionBasedFilterB is satisfied.

Parameters

positionBasedFilterA

the first filter.

positionBasedFilterB

the second filter.

Constructors

Link copied to clipboard
constructor(positionBasedFilterA: PositionBasedFilter<P>, positionBasedFilterB: PositionBasedFilter<P>)

Properties

Functions

Link copied to clipboard
open fun and(p0: Predicate<in P>): Predicate<P>
Link copied to clipboard
open operator override fun contains(position: P): Boolean

Returns true if only one positionBasedFilterA and positionBasedFilterB is satisfied.

Link copied to clipboard
open operator override fun invoke(position: P): Boolean

Checks if the position is inside the shape.

Link copied to clipboard
open fun negate(): Predicate<P>
Link copied to clipboard
open fun or(p0: Predicate<in P>): Predicate<P>
Link copied to clipboard
open override fun test(position: P): Boolean

Checks if the position is inside the shape.