Skip to content

Use of goto statements makes code harder to read and maintain. Consider refactoring this logic using structured control flow (if/else, functions, or early returns) instead. #71

@taylorbrown75

Description

@taylorbrown75

Use of goto statements makes code harder to read and maintain. Consider refactoring this logic using structured control flow (if/else, functions, or early returns) instead.

		}
		else
		{
			Euler[0] = PI / 2.0;
			Euler[1] = atan2(CosIn[1], sqrt(CosIn[0] * CosIn[0] + CosIn[2] * CosIn[2]));
		}
	}
	else
	{
		Euler[0] = atan2(CosIn[0], CosIn[2]);
		Euler[1] = atan2(CosIn[1], sqrt(CosIn[0] * CosIn[0] + CosIn[2] * CosIn[2]));
	}

Originally posted by @Copilot in #63 (comment)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions