Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
Vector3Output.cs
1using System;
2using System.Numerics;
3using System.Text;
6
8{
13 {
19 public Grade Supports(Type Object) => Object == typeof(Vector3) ? Grade.Ok : Grade.NotAtAll;
20
26 public string GetString(object Value)
27 {
28 Vector3 v = (Vector3)Value;
29 StringBuilder sb = new StringBuilder();
30
31 sb.Append("Vector3(");
32 sb.Append(Expression.ToString(v.X));
33 sb.Append(',');
34 sb.Append(Expression.ToString(v.Y));
35 sb.Append(',');
36 sb.Append(Expression.ToString(v.Z));
37 sb.Append(')');
38
39 return sb.ToString();
40 }
41 }
42}
Class managing a script expression.
Definition: Expression.cs:39
static string ToString(double Value)
Converts a value to a string, that can be parsed as part of an expression.
Definition: Expression.cs:4496
Converts values of type Vector3 to expression strings.
string GetString(object Value)
Gets a string representing a value.
Grade Supports(Type Object)
If the interface understands objects such as Object .
Interface for custom string output classes. Converts objects of a given type to an expression string.
Grade
Grade enumeration
Definition: Grade.cs:7