File: vector_from_point_to_point.xml

package info (click to toggle)
jsxgraph 1.11.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 24,984 kB
  • sloc: javascript: 81,688; xml: 5,869; java: 1,072; php: 281; makefile: 189; python: 174; cpp: 76; sh: 12
file content (40 lines) | stat: -rw-r--r-- 1,157 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!-- This file is to illustrate the use of the element vector and constraint vector_from_point_to_point.
     It still has not been run on any DGS, so it may contain bugs. -->
<construction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xml/intergeo.xsd">
	<elements>
		<point id="P">
			<homogeneous_coordinates>
				<double>1.0</double>
				<double>0.0</double>
				<double>1.0</double>
			</homogeneous_coordinates>
		</point>
		<point id="Q">
			<homogeneous_coordinates>
				<double>2.0</double>
				<double>1.0</double>
				<double>1.0</double>
			</homogeneous_coordinates>
		</point>
		<vector id="v">
			<homogeneous_coordinates>
				<double>1.0</double>
				<double>1.0</double>
				<double>1.0</double>
			</homogeneous_coordinates>
		</vector>
	</elements>
	<constraints>
		<free_point>
			<point out="true">P</point>
		</free_point>
		<free_point>
			<point out="true">Q</point>
		</free_point>
		<vector_from_point_to_point>
			<vector out="true">v</vector>
			<point>P</point>
			<point>Q</point>
		</vector_from_point_to_point>
	</constraints>
</construction>