isAllCompPositive

checks all components

bool
isAllCompPositive
(
V
)
(
in V v
)
if (
is(typeof(v[0])) &&
isNumeric!(typeof(v[0]))
)

Return Value

Type: bool

true if all is positive

Examples

assert(  isAllCompPositive( [1,2,3] ) );
assert(  isAllCompPositive( vec3( 1,2,3 ) ) );
assert(  isAllCompPositive( CrdVector!3( 1,2,3 ) ) );
assert( !isAllCompPositive( [-1,2,3] ) );

Meta