<commit_before>Class {
	#name : #SpartaTransformationScale,
	#superclass : #SpartaTransformationOperation,
	#instVars : [
		'scaleX',
		'scaleY'
	],
	#category : #'Sparta-Core-Math'
}

{ #category : #dispatch }
SpartaTransformationScale >> applyOn: aSpartaMatrix [
	aSpartaMatrix scaleX: scaleX Y: scaleY
]

{ #category : #testing }
SpartaTransformationScale >> isIdentity [
	<return: #Boolean>

	^ (scaleX closeTo: 1.0) and: [ scaleY closeTo: 1.0 ]
]

{ #category : #testing }
SpartaTransformationScale >> isReversable [
	<return: #Boolean>
	
	^ true
]

{ #category : #enumerating }
SpartaTransformationScale >> reverseScaleDo: aBlock [
	self isIdentity<commit_msg>scale is not reversable in Skia<commit_after>Class {
	#name : #SpartaTransformationScale,
	#superclass : #SpartaTransformationOperation,
	#instVars : [
		'scaleX',
		'scaleY'
	],
	#category : #'Sparta-Core-Math'
}

{ #category : #dispatch }
SpartaTransformationScale >> applyOn: aSpartaMatrix [
	aSpartaMatrix scaleX: scaleX Y: scaleY
]

{ #category : #testing }
SpartaTransformationScale >> isIdentity [
	<return: #Boolean>

	^ (scaleX closeTo: 1.0) and: [ scaleY closeTo: 1.0 ]
]

{ #category : #testing }
SpartaTransformationScale >> isReversable [
	<return: #Boolean>
	
	^ false
]

{ #category : #enumerating }
SpartaTransformationScale >> reverseScaleDo: aBlock [
	self isIdentity
{'fraction_non_alphanumeric': 0.13027387120651368, 'fraction_numerical': 0.005921539600296077, 'mean_word_length': 5.1454545454545455, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 23, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '409474', 'n_tokens_mistral': 506, 'n_tokens_neox': 493, 'n_words': 98}