Skip to content

Commit ed0b91c

Browse files
Create ToLatexString() method
Changed the properties to methods
1 parent 690b1c7 commit ed0b91c

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

SharpMath/Geometry/Vector2.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ public double Y
123123
/// <summary>
124124
/// Gets the LaTeX-string representing this vector graphically.
125125
/// </summary>
126-
public string LaTeXString => @"\left( \begin{array}{c} " + this[0] + @" \\ " + this[1] + @" \end{array} \right)"
127-
;
126+
public string ToLaTeXString() => @"\left( \begin{array}{c} " + this[0] + @" \\ " + this[1] + @" \end{array} \right)";
128127

129128
/// <summary>
130129
/// Generates a <see cref="Vector2" /> from the <see cref="Vector" /> base class, if the dimension is correct.

SharpMath/Geometry/Vector3.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public double Z
143143
/// <summary>
144144
/// Gets the LaTeX-string representing this vector graphically.
145145
/// </summary>
146-
public string LaTeXString
146+
public string ToLaTeXString()
147147
=> @"\left( \begin{array}{c} " + this[0] + @" \\ " + this[1] + @" \\ " + this[2] + @" \end{array} \right)";
148148

149149
/// <summary>

SharpMath/Geometry/Vector4.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public double W
106106
/// <summary>
107107
/// Gets the LaTeX-string representing this vector graphically.
108108
/// </summary>
109-
public string LaTeXString
109+
public string ToLaTeXString()
110110
=>
111111
@"\left( \begin{array}{c} " + this[0] + @" \\ " + this[1] + @" \\ " + this[2] + @" \\ " + this[3] +
112112
@" \end{array} \right)";

0 commit comments

Comments
 (0)