The Metapost path fullcircle
Is the MetaPost path fullcircle cyclic?
I attempted to find the answer in "METAPOST - A User's Manual" but had no luck.
UPDATE:
show cycle fullcircle;
will print the answer true
.
metapost
New contributor
|
show 3 more comments
Is the MetaPost path fullcircle cyclic?
I attempted to find the answer in "METAPOST - A User's Manual" but had no luck.
UPDATE:
show cycle fullcircle;
will print the answer true
.
metapost
New contributor
2
How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
– daleif
5 hours ago
I know that there is an operatorcycle
, but I don't know how to print the result ofcycle fullcircle
.
– soegaard
5 hours ago
1
Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
– daleif
5 hours ago
2
Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
– daleif
5 hours ago
1
Tak for tippet.
– soegaard
4 hours ago
|
show 3 more comments
Is the MetaPost path fullcircle cyclic?
I attempted to find the answer in "METAPOST - A User's Manual" but had no luck.
UPDATE:
show cycle fullcircle;
will print the answer true
.
metapost
New contributor
Is the MetaPost path fullcircle cyclic?
I attempted to find the answer in "METAPOST - A User's Manual" but had no luck.
UPDATE:
show cycle fullcircle;
will print the answer true
.
metapost
metapost
New contributor
New contributor
edited 5 hours ago
New contributor
asked 6 hours ago
soegaard
1114
1114
New contributor
New contributor
2
How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
– daleif
5 hours ago
I know that there is an operatorcycle
, but I don't know how to print the result ofcycle fullcircle
.
– soegaard
5 hours ago
1
Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
– daleif
5 hours ago
2
Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
– daleif
5 hours ago
1
Tak for tippet.
– soegaard
4 hours ago
|
show 3 more comments
2
How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
– daleif
5 hours ago
I know that there is an operatorcycle
, but I don't know how to print the result ofcycle fullcircle
.
– soegaard
5 hours ago
1
Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
– daleif
5 hours ago
2
Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
– daleif
5 hours ago
1
Tak for tippet.
– soegaard
4 hours ago
2
2
How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
– daleif
5 hours ago
How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
– daleif
5 hours ago
I know that there is an operator
cycle
, but I don't know how to print the result of cycle fullcircle
.– soegaard
5 hours ago
I know that there is an operator
cycle
, but I don't know how to print the result of cycle fullcircle
.– soegaard
5 hours ago
1
1
Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
– daleif
5 hours ago
Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
– daleif
5 hours ago
2
2
Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
– daleif
5 hours ago
Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
– daleif
5 hours ago
1
1
Tak for tippet.
– soegaard
4 hours ago
Tak for tippet.
– soegaard
4 hours ago
|
show 3 more comments
1 Answer
1
active
oldest
votes
A path such as
(0,0)..(1,0)..(1,1)..(0,1)..(0,0)
is open. You can check this by doing
*path p;
*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);
*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0,0)
*show point 10 of p;
>> (0,0)
*show point 12 of p;
>> (0,0)
On the other hand, we can see
*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;
*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0.08765,-0.07457)
*show point 10 of p;
>> (1,1)
*show point 12 of p;
>> (0,0)
Going on:
*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);
*show cycle p;
>> false
*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;
*show cycle p;
>> true
You can get the definition of fullcircle
:
*show fullcircle;
>> Path at line 0:
(0.5,0)..controls (0.5,0.13261) and (0.44731,0.25978)
..(0.35355,0.35355)..controls (0.25978,0.44731) and (0.13261,0.5)
..(0,0.5)..controls (-0.13261,0.5) and (-0.25978,0.44731)
..(-0.35355,0.35355)..controls (-0.44731,0.25978) and (-0.5,0.13261)
..(-0.5,0)..controls (-0.5,-0.13261) and (-0.44731,-0.25978)
..(-0.35355,-0.35355)..controls (-0.25978,-0.44731) and (-0.13261,-0.5)
..(0,-0.5)..controls (0.13261,-0.5) and (0.25978,-0.44731)
..(0.35355,-0.35355)..controls (0.44731,-0.25978) and (0.5,-0.13261)
..cycle
and this is cyclic.
Actually you don't find the definition in plain.mp
, because fullcircle
is defined by fullcircle = makepath pencircle;
, but when the path has been built it can be shown.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
soegaard is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467957%2fthe-metapost-path-fullcircle%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
A path such as
(0,0)..(1,0)..(1,1)..(0,1)..(0,0)
is open. You can check this by doing
*path p;
*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);
*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0,0)
*show point 10 of p;
>> (0,0)
*show point 12 of p;
>> (0,0)
On the other hand, we can see
*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;
*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0.08765,-0.07457)
*show point 10 of p;
>> (1,1)
*show point 12 of p;
>> (0,0)
Going on:
*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);
*show cycle p;
>> false
*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;
*show cycle p;
>> true
You can get the definition of fullcircle
:
*show fullcircle;
>> Path at line 0:
(0.5,0)..controls (0.5,0.13261) and (0.44731,0.25978)
..(0.35355,0.35355)..controls (0.25978,0.44731) and (0.13261,0.5)
..(0,0.5)..controls (-0.13261,0.5) and (-0.25978,0.44731)
..(-0.35355,0.35355)..controls (-0.44731,0.25978) and (-0.5,0.13261)
..(-0.5,0)..controls (-0.5,-0.13261) and (-0.44731,-0.25978)
..(-0.35355,-0.35355)..controls (-0.25978,-0.44731) and (-0.13261,-0.5)
..(0,-0.5)..controls (0.13261,-0.5) and (0.25978,-0.44731)
..(0.35355,-0.35355)..controls (0.44731,-0.25978) and (0.5,-0.13261)
..cycle
and this is cyclic.
Actually you don't find the definition in plain.mp
, because fullcircle
is defined by fullcircle = makepath pencircle;
, but when the path has been built it can be shown.
add a comment |
A path such as
(0,0)..(1,0)..(1,1)..(0,1)..(0,0)
is open. You can check this by doing
*path p;
*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);
*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0,0)
*show point 10 of p;
>> (0,0)
*show point 12 of p;
>> (0,0)
On the other hand, we can see
*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;
*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0.08765,-0.07457)
*show point 10 of p;
>> (1,1)
*show point 12 of p;
>> (0,0)
Going on:
*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);
*show cycle p;
>> false
*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;
*show cycle p;
>> true
You can get the definition of fullcircle
:
*show fullcircle;
>> Path at line 0:
(0.5,0)..controls (0.5,0.13261) and (0.44731,0.25978)
..(0.35355,0.35355)..controls (0.25978,0.44731) and (0.13261,0.5)
..(0,0.5)..controls (-0.13261,0.5) and (-0.25978,0.44731)
..(-0.35355,0.35355)..controls (-0.44731,0.25978) and (-0.5,0.13261)
..(-0.5,0)..controls (-0.5,-0.13261) and (-0.44731,-0.25978)
..(-0.35355,-0.35355)..controls (-0.25978,-0.44731) and (-0.13261,-0.5)
..(0,-0.5)..controls (0.13261,-0.5) and (0.25978,-0.44731)
..(0.35355,-0.35355)..controls (0.44731,-0.25978) and (0.5,-0.13261)
..cycle
and this is cyclic.
Actually you don't find the definition in plain.mp
, because fullcircle
is defined by fullcircle = makepath pencircle;
, but when the path has been built it can be shown.
add a comment |
A path such as
(0,0)..(1,0)..(1,1)..(0,1)..(0,0)
is open. You can check this by doing
*path p;
*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);
*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0,0)
*show point 10 of p;
>> (0,0)
*show point 12 of p;
>> (0,0)
On the other hand, we can see
*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;
*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0.08765,-0.07457)
*show point 10 of p;
>> (1,1)
*show point 12 of p;
>> (0,0)
Going on:
*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);
*show cycle p;
>> false
*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;
*show cycle p;
>> true
You can get the definition of fullcircle
:
*show fullcircle;
>> Path at line 0:
(0.5,0)..controls (0.5,0.13261) and (0.44731,0.25978)
..(0.35355,0.35355)..controls (0.25978,0.44731) and (0.13261,0.5)
..(0,0.5)..controls (-0.13261,0.5) and (-0.25978,0.44731)
..(-0.35355,0.35355)..controls (-0.44731,0.25978) and (-0.5,0.13261)
..(-0.5,0)..controls (-0.5,-0.13261) and (-0.44731,-0.25978)
..(-0.35355,-0.35355)..controls (-0.25978,-0.44731) and (-0.13261,-0.5)
..(0,-0.5)..controls (0.13261,-0.5) and (0.25978,-0.44731)
..(0.35355,-0.35355)..controls (0.44731,-0.25978) and (0.5,-0.13261)
..cycle
and this is cyclic.
Actually you don't find the definition in plain.mp
, because fullcircle
is defined by fullcircle = makepath pencircle;
, but when the path has been built it can be shown.
A path such as
(0,0)..(1,0)..(1,1)..(0,1)..(0,0)
is open. You can check this by doing
*path p;
*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);
*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0,0)
*show point 10 of p;
>> (0,0)
*show point 12 of p;
>> (0,0)
On the other hand, we can see
*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;
*show point 3 of p;
>> (0,1)
*show point 3.5 of p;
>> (-0.20709,0.49998)
*show point 4 of p;
>> (0,0)
*show point 4.1 of p;
>> (0.08765,-0.07457)
*show point 10 of p;
>> (1,1)
*show point 12 of p;
>> (0,0)
Going on:
*p:=(0,0)..(1,0)..(1,1)..(0,1)..(0,0);
*show cycle p;
>> false
*p:=(0,0)..(1,0)..(1,1)..(0,1)..cycle;
*show cycle p;
>> true
You can get the definition of fullcircle
:
*show fullcircle;
>> Path at line 0:
(0.5,0)..controls (0.5,0.13261) and (0.44731,0.25978)
..(0.35355,0.35355)..controls (0.25978,0.44731) and (0.13261,0.5)
..(0,0.5)..controls (-0.13261,0.5) and (-0.25978,0.44731)
..(-0.35355,0.35355)..controls (-0.44731,0.25978) and (-0.5,0.13261)
..(-0.5,0)..controls (-0.5,-0.13261) and (-0.44731,-0.25978)
..(-0.35355,-0.35355)..controls (-0.25978,-0.44731) and (-0.13261,-0.5)
..(0,-0.5)..controls (0.13261,-0.5) and (0.25978,-0.44731)
..(0.35355,-0.35355)..controls (0.44731,-0.25978) and (0.5,-0.13261)
..cycle
and this is cyclic.
Actually you don't find the definition in plain.mp
, because fullcircle
is defined by fullcircle = makepath pencircle;
, but when the path has been built it can be shown.
answered 4 hours ago
egreg
708k8618823164
708k8618823164
add a comment |
add a comment |
soegaard is a new contributor. Be nice, and check out our Code of Conduct.
soegaard is a new contributor. Be nice, and check out our Code of Conduct.
soegaard is a new contributor. Be nice, and check out our Code of Conduct.
soegaard is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f467957%2fthe-metapost-path-fullcircle%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
How do you mean? Have you tried. Afair a closed curve in mp is cyclic as in you can go around as many times you want. (though I don't use metapost that much any more)
– daleif
5 hours ago
I know that there is an operator
cycle
, but I don't know how to print the result ofcycle fullcircle
.– soegaard
5 hours ago
1
Draw a point at certain times on the curve. Afair fullcircle goes 0 1 2 3 4 0, as in (assuming complex plane), 1, I, -1, -i, 1. So at time 2 it is at (-1,0).
– daleif
5 hours ago
2
Perhaps you should explain why you need to know if a given path is closed? What do you need this information for?
– daleif
5 hours ago
1
Tak for tippet.
– soegaard
4 hours ago