Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ronan
coraMaths
Commits
3a038543
Commit
3a038543
authored
Jun 05, 2016
by
ronan
Browse files
Add minX ... sRectangle
parent
6492de13
Pipeline
#2250
passed with stage
in 59 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bpush.sh
View file @
3a038543
#!/bin/bash
../bpush.sh
"
$*
"
if
[
$#
-ge
1
]
then
./build.sh
./push.sh
$*
fi
build.sh
View file @
3a038543
#!/bin/bash
../build.sh
"
$*
"
mvn clean
install
name
=
$(
basename
target/
*
javadoc.jar
)
group
=
${
name
%%-*
}
idname
=
${
name
#*-
}
idname
=
$group
-
${
idname
%%-*
}
version
=
${
name
#*-
}
version
=
${
version
#*-
}
version
=
${
version
%-*
}
echo
"Jar in
$group
/
$idname
/
$version
"
if
[
!
-d
"
$group
"
]
then
mkdir
$group
fi
if
[
!
-d
"
$group
/
$idname
"
]
then
mkdir
"
$group
/
$idname
"
fi
if
[
!
-d
"
$group
/
$idname
/
$version
"
]
then
mkdir
"
$group
/
$idname
/
$version
"
fi
folder
=
"
$group
/
$idname
/
$version
"
cp
target/
*
.jar
"
$folder
"
cp
pom.xml
$folder
/
$idname
-
$version
.pom
cora/cora-maths/1.0/cora-maths-1.0-javadoc.jar
View file @
3a038543
No preview for this file type
cora/cora-maths/1.0/cora-maths-1.0-sources.jar
View file @
3a038543
No preview for this file type
cora/cora-maths/1.0/cora-maths-1.0.jar
View file @
3a038543
No preview for this file type
push.sh
View file @
3a038543
#!/bin/bash
../push.sh
"
$*
"
if
[
$#
-ge
1
]
then
git add
--all
git commit
-m
"
$*
"
git push origin master
fi
src/main/java/org/cora/maths/sRectangle.java
View file @
3a038543
...
@@ -215,4 +215,42 @@ public class sRectangle extends Form
...
@@ -215,4 +215,42 @@ public class sRectangle extends Form
setLeftX
(
x
);
setLeftX
(
x
);
setLeftY
(
y
);
setLeftY
(
y
);
}
}
@Override
public
void
rotateRadians
(
float
a
)
{
// Do nothing
}
@Override
public
void
rotateRadians
(
float
a
,
Vector2D
center
)
{
// Do nothing
}
@Override
public
float
getMinX
()
{
return
getX
(
0
);
}
@Override
public
float
getMaxX
()
{
return
getX
(
2
);
}
@Override
public
float
getMinY
()
{
return
getY
(
0
);
}
@Override
public
float
getMaxY
()
{
return
getY
(
2
);
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment