Rotation constructor
- @DomName('Rotation.Rotation')
- @DocsEditable()
Implementation
@DomName('Rotation.Rotation')
@DocsEditable()
factory Rotation(num angle, [num x, num y, num z]) {
if ((angle is num) && x == null && y == null && z == null) {
return Rotation._create_1(angle);
}
if ((z is num) && (y is num) && (x is num) && (angle is num)) {
return Rotation._create_2(angle, x, y, z);
}
throw new ArgumentError("Incorrect number or type of arguments");
}