Fixed NaN bug

Angle output as NaN (Not-A-Number) value, this should treated as
invalid triangle..