PINE LIBRARY
CommonTypesMath

Library "CommonTypesMath"
Provides a common library source for common types of useful mathematical structures.
Includes: `complex, Vector2, Vector3, Vector4, Quaternion, Segment2, Segment3, Pole, Plane, M32, M44`
complex
Representation of a Complex Number, a complex number `z` is a number in the form `z = x + yi`,
Fields:
re: Real part of the complex number.
im: Imaginary part of the complex number.
Vector2
Representation of a two dimentional vector with components `(x:float,y:float)`.
Fields:
x: Coordinate `x` of the vector.
y: Coordinate `y` of the vector.
Vector3
Representation of a three dimentional vector with components `(x:float,y:float,z:float)`.
Fields:
x: Coordinate `x` of the vector.
y: Coordinate `y` of the vector.
z: Coordinate `z` of the vector.
Vector4
Representation of a four dimentional vector with components `(x:float,y:float,z:float,w:float)`.
Fields:
x: Coordinate `x` of the vector.
y: Coordinate `y` of the vector.
z: Coordinate `z` of the vector.
w: Coordinate `w` of the vector.
Quaternion
Representation of a four dimentional vector with components `(x:float,y:float,z:float,w:float)`.
Fields:
x: Coordinate `x` of the vector.
y: Coordinate `y` of the vector.
z: Coordinate `z` of the vector.
w: Coordinate `w` of the vector, specifies the rotation component.
Segment2
Representation of a line in two dimentional space.
Fields:
origin: Origin coordinates.
target: Target coordinates.
Segment3
Representation of a line in three dimentional space.
Fields:
origin: Origin coordinates.
target: Target coordinates.
Pole
Representation of polar coordinates `(radius:float,angle:float)`.
Fields:
radius: Radius of the pole.
angle: Angle in radians of the pole.
Plane
Representation of a 3D plane.
Fields:
normal: Normal vector of the plane.
distance: Distance of the plane along its normal from the origin.
M32
Representation of a 3x2 matrix.
Fields:
m11: First element of the first row.
m12: Second element of the first row.
m21: First element of the second row.
m22: Second element of the second row.
m31: First element of the third row.
m32: Second element of the third row.
M44
Representation of a 4x4 matrix.
Fields:
m11: First element of the first row.
m12: Second element of the first row.
m13: Third element of the first row.
m14: fourth element of the first row.
m21: First element of the second row.
m22: Second element of the second row.
m23: Third element of the second row.
m24: fourth element of the second row.
m31: First element of the third row.
m32: Second element of the third row.
m33: Third element of the third row.
m34: fourth element of the third row.
m41: First element of the fourth row.
m42: Second element of the fourth row.
m43: Third element of the fourth row.
m44: fourth element of the fourth row.
Provides a common library source for common types of useful mathematical structures.
Includes: `complex, Vector2, Vector3, Vector4, Quaternion, Segment2, Segment3, Pole, Plane, M32, M44`
complex
Representation of a Complex Number, a complex number `z` is a number in the form `z = x + yi`,
Fields:
re: Real part of the complex number.
im: Imaginary part of the complex number.
Vector2
Representation of a two dimentional vector with components `(x:float,y:float)`.
Fields:
x: Coordinate `x` of the vector.
y: Coordinate `y` of the vector.
Vector3
Representation of a three dimentional vector with components `(x:float,y:float,z:float)`.
Fields:
x: Coordinate `x` of the vector.
y: Coordinate `y` of the vector.
z: Coordinate `z` of the vector.
Vector4
Representation of a four dimentional vector with components `(x:float,y:float,z:float,w:float)`.
Fields:
x: Coordinate `x` of the vector.
y: Coordinate `y` of the vector.
z: Coordinate `z` of the vector.
w: Coordinate `w` of the vector.
Quaternion
Representation of a four dimentional vector with components `(x:float,y:float,z:float,w:float)`.
Fields:
x: Coordinate `x` of the vector.
y: Coordinate `y` of the vector.
z: Coordinate `z` of the vector.
w: Coordinate `w` of the vector, specifies the rotation component.
Segment2
Representation of a line in two dimentional space.
Fields:
origin: Origin coordinates.
target: Target coordinates.
Segment3
Representation of a line in three dimentional space.
Fields:
origin: Origin coordinates.
target: Target coordinates.
Pole
Representation of polar coordinates `(radius:float,angle:float)`.
Fields:
radius: Radius of the pole.
angle: Angle in radians of the pole.
Plane
Representation of a 3D plane.
Fields:
normal: Normal vector of the plane.
distance: Distance of the plane along its normal from the origin.
M32
Representation of a 3x2 matrix.
Fields:
m11: First element of the first row.
m12: Second element of the first row.
m21: First element of the second row.
m22: Second element of the second row.
m31: First element of the third row.
m32: Second element of the third row.
M44
Representation of a 4x4 matrix.
Fields:
m11: First element of the first row.
m12: Second element of the first row.
m13: Third element of the first row.
m14: fourth element of the first row.
m21: First element of the second row.
m22: Second element of the second row.
m23: Third element of the second row.
m24: fourth element of the second row.
m31: First element of the third row.
m32: Second element of the third row.
m33: Third element of the third row.
m34: fourth element of the third row.
m41: First element of the fourth row.
m42: Second element of the fourth row.
m43: Third element of the fourth row.
m44: fourth element of the fourth row.
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
파인 라이브러리
트레이딩뷰의 진정한 정신에 따라, 작성자는 이 파인 코드를 오픈소스 라이브러리로 게시하여 커뮤니티의 다른 파인 프로그래머들이 재사용할 수 있도록 했습니다. 작성자에게 경의를 표합니다! 이 라이브러리는 개인적으로 사용하거나 다른 오픈소스 게시물에서 사용할 수 있지만, 이 코드의 게시물 내 재사용은 하우스 룰에 따라 규제됩니다.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.