xyLine (type) (타입 xyLine)
원본: Computation Layer 문서(xyLine (type))
일차방정식 또는 일차식을 나타낸다.
원문(영어) 보기
Represents a linear equation or expression.
만들기(Creating)
xyLine
주어진 latex 글자로 새 xyLine(직선) 객체를 만든다.
원문(영어) 보기
Create a new xyLine object from the provided latex string.
# Assigns to a variable called "myLine" an "xyLine" object # built from the content of a cell in the table. ▷ 변수 "myLine"에 표의 한 셀의 내용으로 만든 "xyLine" 객체를 정한다. myLine = xyLine(lineInfoTable.cellContent(1,2)) ▶ 변수 myLine은 표 lineInfoTable의 1행 2열 셀 내용으로 만든 직선(xyLine) 객체(xyLine(lineInfoTable.cellContent(1,2)))로 한다.xyLine(latex)는 latex 글자로 직선(xyLine) 객체를 만들고,cellContent(행, 열)은 행 번호와 열 번호로 셀의 내용을 가져온다. 행 번호 1은 머리글 바로 아래 첫 행이다. # Displays the slope of the xyLine object in a table. ▷ xyLine 객체의 기울기를 표에 표시한다. cellContent(2,2): "${myLine.slope}" ▶ 표의 2행 2열 셀의 내용(cellContent)은 "${myLine.slope}", 즉 직선의 기울기로 한다.cellContent(행, 열)은 지정한 셀의 내용을 정한다.slope는 직선의 기울기를 돌려주고,${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다. # Displays the y-intercept of the xyLine object in a table. ▷ xyLine 객체의 y절편을 표에 표시한다. cellContent(3,2): "${myLine.yIntercept}" ▶ 표의 3행 2열 셀의 내용(cellContent)은 "${myLine.yIntercept}", 즉 직선의 y절편으로 한다.yIntercept는 직선의 y절편을 돌려준다. # Displays the x-intercept of the xyLine object in a table. ▷ xyLine 객체의 x절편을 표에 표시한다. cellContent(4,2): "${myLine.xIntercept}" ▶ 표의 4행 2열 셀의 내용(cellContent)은 "${myLine.xIntercept}", 즉 직선의 x절편으로 한다.xIntercept는 직선의 x절편을 돌려준다. # Displays "Yes" if the line is horizontal. ▷ 직선이 수평이면 "Yes"를 표시한다. cellContent(5,2): "${when myLine.isHorizontal "Yes" otherwise "No"}" ▶ 표의 5행 2열 셀의 내용(cellContent)은 직선이 수평(myLine.isHorizontal)이면 "Yes", 아니면 "No"로 한다.
코드는${ }안에when … otherwise …를 넣어 적었다.isHorizontal은 직선이 수평인지를 참/거짓으로 돌려주고,when은 조건을 차례로 확인해 처음 맞는 값을 쓴다.${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다. # Displays "Yes" if the line is vertical. ▷ 직선이 수직이면 "Yes"를 표시한다. cellContent(6,2): "${when myLine.isVertical "Yes" otherwise "No"}" ▶ 표의 6행 2열 셀의 내용(cellContent)은 직선이 수직(myLine.isVertical)이면 "Yes", 아니면 "No"로 한다.
코드는${ }안에when … otherwise …를 넣어 적었다.isVertical은 직선이 수직인지를 참/거짓으로 돌려준다.${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다. # Displays the angle the line makes with the x-axis in radians. ▷ 직선이 x축과 이루는 각을 라디안으로 표시한다. cellContent(7,2): "${myLine.angle}" ▶ 표의 7행 2열 셀의 내용(cellContent)은 "${myLine.angle}", 즉 직선이 x축과 이루는 각(라디안)으로 한다.angle은 직선이 x축과 이루는 각을 라디안으로 돌려준다.
속성(Attributes)
angle
xyLine 객체가 x축과 이루는 각을 라디안으로 돌려준다.
원문(영어) 보기
Returns the angle an xyLine object makes with the x-axis, measured in radians.
# Assigns to a variable called "myLine" an "xyLine" object # built from the content of a cell in the table. ▷ 변수 "myLine"에 표의 한 셀의 내용으로 만든 "xyLine" 객체를 정한다. myLine = xyLine(lineInfoTable.cellContent(1,2)) ▶ 변수 myLine은 표 lineInfoTable의 1행 2열 셀 내용으로 만든 직선(xyLine) 객체(xyLine(lineInfoTable.cellContent(1,2)))로 한다.xyLine(latex)는 latex 글자로 직선(xyLine) 객체를 만들고,cellContent(행, 열)은 행 번호와 열 번호로 셀의 내용을 가져온다. 행 번호 1은 머리글 바로 아래 첫 행이다. # Displays the angle the line makes with the x-axis in radians. ▷ 직선이 x축과 이루는 각을 라디안으로 표시한다. cellContent(2,2): "${myLine.angle}" ▶ 표의 2행 2열 셀의 내용(cellContent)은 "${myLine.angle}", 즉 직선이 x축과 이루는 각(라디안)으로 한다.cellContent(행, 열)은 지정한 셀의 내용을 정한다.angle은 직선이 x축과 이루는 각을 라디안으로 돌려주고,${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다.
slope
xyLine 객체의 기울기를 돌려준다.
원문(영어) 보기
Returns the slope of an xyLine object.
# Assigns to a variable called "myLine" an "xyLine" object # built from the content of a cell in the table. ▷ 변수 "myLine"에 표의 한 셀의 내용으로 만든 "xyLine" 객체를 정한다. myLine = xyLine(lineInfoTable.cellContent(1,2)) ▶ 변수 myLine은 표 lineInfoTable의 1행 2열 셀 내용으로 만든 직선(xyLine) 객체(xyLine(lineInfoTable.cellContent(1,2)))로 한다.xyLine(latex)는 latex 글자로 직선(xyLine) 객체를 만들고,cellContent(행, 열)은 행 번호와 열 번호로 셀의 내용을 가져온다. 행 번호 1은 머리글 바로 아래 첫 행이다. # Displays the slope of the xyLine object in a table. ▷ xyLine 객체의 기울기를 표에 표시한다. cellContent(2,2): "${myLine.slope}" ▶ 표의 2행 2열 셀의 내용(cellContent)은 "${myLine.slope}", 즉 직선의 기울기로 한다.cellContent(행, 열)은 지정한 셀의 내용을 정한다.slope는 직선의 기울기를 돌려주고,${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다.
yIntercept
xyLine 객체의 y절편을 돌려준다.
원문(영어) 보기
Returns the y-intercept of an xyLine object.
# Assigns to a variable called "myLine" an "xyLine" object # built from the content of a cell in the table. ▷ 변수 "myLine"에 표의 한 셀의 내용으로 만든 "xyLine" 객체를 정한다. myLine = xyLine(lineInfoTable.cellContent(1,2)) ▶ 변수 myLine은 표 lineInfoTable의 1행 2열 셀 내용으로 만든 직선(xyLine) 객체(xyLine(lineInfoTable.cellContent(1,2)))로 한다.xyLine(latex)는 latex 글자로 직선(xyLine) 객체를 만들고,cellContent(행, 열)은 행 번호와 열 번호로 셀의 내용을 가져온다. 행 번호 1은 머리글 바로 아래 첫 행이다. # Displays the y-intercept of the xyLine object in a table. ▷ xyLine 객체의 y절편을 표에 표시한다. cellContent(2,2): "${myLine.yIntercept}" ▶ 표의 2행 2열 셀의 내용(cellContent)은 "${myLine.yIntercept}", 즉 직선의 y절편으로 한다.cellContent(행, 열)은 지정한 셀의 내용을 정한다.yIntercept는 직선의 y절편을 돌려주고,${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다.
xIntercept
xyLine 객체의 x절편을 돌려준다.
원문(영어) 보기
Returns the x-intercept of an xyLine object.
# Assigns to a variable called "myLine" an "xyLine" object # built from the content of a cell in the table. ▷ 변수 "myLine"에 표의 한 셀의 내용으로 만든 "xyLine" 객체를 정한다. myLine = xyLine(lineInfoTable.cellContent(1,2)) ▶ 변수 myLine은 표 lineInfoTable의 1행 2열 셀 내용으로 만든 직선(xyLine) 객체(xyLine(lineInfoTable.cellContent(1,2)))로 한다.xyLine(latex)는 latex 글자로 직선(xyLine) 객체를 만들고,cellContent(행, 열)은 행 번호와 열 번호로 셀의 내용을 가져온다. 행 번호 1은 머리글 바로 아래 첫 행이다. # Displays the x-intercept of the xyLine object in a table. ▷ xyLine 객체의 x절편을 표에 표시한다. cellContent(2,2): "${myLine.xIntercept}" ▶ 표의 2행 2열 셀의 내용(cellContent)은 "${myLine.xIntercept}", 즉 직선의 x절편으로 한다.cellContent(행, 열)은 지정한 셀의 내용을 정한다.xIntercept는 직선의 x절편을 돌려주고,${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다.
isHorizontal
xyLine 객체를 받아 그 직선이 수평인지를 불리언 값으로 돌려준다.
원문(영어) 보기
Returns a Boolean value given an xyLine object that indicates whether or not the line is horizontal.
# Assigns to a variable called "myLine" an "xyLine" object # built from the content of a cell in the table. ▷ 변수 "myLine"에 표의 한 셀의 내용으로 만든 "xyLine" 객체를 정한다. myLine = xyLine(lineInfoTable.cellContent(1,2)) ▶ 변수 myLine은 표 lineInfoTable의 1행 2열 셀 내용으로 만든 직선(xyLine) 객체(xyLine(lineInfoTable.cellContent(1,2)))로 한다.xyLine(latex)는 latex 글자로 직선(xyLine) 객체를 만들고,cellContent(행, 열)은 행 번호와 열 번호로 셀의 내용을 가져온다. 행 번호 1은 머리글 바로 아래 첫 행이다. # Displays "Yes" if the line is horizontal. ▷ 직선이 수평이면 "Yes"를 표시한다. cellContent(2,2): "${when myLine.isHorizontal "Yes" otherwise "No"}" ▶ 표의 2행 2열 셀의 내용(cellContent)은 직선이 수평(myLine.isHorizontal)이면 "Yes", 아니면 "No"로 한다.
코드는${ }안에when … otherwise …를 넣어 적었다.cellContent(행, 열)은 지정한 셀의 내용을 정한다.isHorizontal은 직선이 수평인지를 참/거짓으로 돌려주고,when은 조건을 차례로 확인해 처음 맞는 값을 쓴다.${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다.
isVertical
xyLine 객체를 받아 그 직선이 수직인지를 불리언 값으로 돌려준다.
원문(영어) 보기
Returns a Boolean value given an xyLine object that indicates whether or not the line is vertical.
# Assigns to a variable called "myLine" an "xyLine" object # built from the content of a cell in the table. ▷ 변수 "myLine"에 표의 한 셀의 내용으로 만든 "xyLine" 객체를 정한다. myLine = xyLine(lineInfoTable.cellContent(1,2)) ▶ 변수 myLine은 표 lineInfoTable의 1행 2열 셀 내용으로 만든 직선(xyLine) 객체(xyLine(lineInfoTable.cellContent(1,2)))로 한다.xyLine(latex)는 latex 글자로 직선(xyLine) 객체를 만들고,cellContent(행, 열)은 행 번호와 열 번호로 셀의 내용을 가져온다. 행 번호 1은 머리글 바로 아래 첫 행이다. # Displays "Yes" if the line is vertical. ▷ 직선이 수직이면 "Yes"를 표시한다. cellContent(2,2): "${when myLine.isVertical "Yes" otherwise "No"}" ▶ 표의 2행 2열 셀의 내용(cellContent)은 직선이 수직(myLine.isVertical)이면 "Yes", 아니면 "No"로 한다.
코드는${ }안에when … otherwise …를 넣어 적었다.cellContent(행, 열)은 지정한 셀의 내용을 정한다.isVertical은 직선이 수직인지를 참/거짓으로 돌려주고,when은 조건을 차례로 확인해 처음 맞는 값을 쓴다.${ }는 글자 안에 변수의 값을 끼워 넣는 표기이다.