File tree Expand file tree Collapse file tree
RLBotCSharpExample/RLBotCSharpExample Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ namespace RLBotCSharpExample
2+ {
3+ public static class DataConversion
4+ {
5+ public static System . Numerics . Vector3 ToVector3 ( this rlbot . flat . Vector3 vec )
6+ {
7+ return new System . Numerics . Vector3 ( vec . X , vec . Y , vec . Z ) ;
8+ }
9+
10+ public static System . Numerics . Vector2 ToVector2 ( this rlbot . flat . Vector3 vec )
11+ {
12+ return new System . Numerics . Vector2 ( vec . X , vec . Y ) ;
13+ }
14+ }
15+ }
Original file line number Diff line number Diff line change 1111 <TargetFrameworkVersion >v4.6.1</TargetFrameworkVersion >
1212 <FileAlignment >512</FileAlignment >
1313 <AutoGenerateBindingRedirects >true</AutoGenerateBindingRedirects >
14+ <TargetFrameworkProfile />
1415 </PropertyGroup >
1516 <PropertyGroup Condition =" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' " >
1617 <PlatformTarget >AnyCPU</PlatformTarget >
6263 </Reference >
6364 <Reference Include =" System" />
6465 <Reference Include =" System.Core" />
66+ <Reference Include =" System.Numerics" />
6567 <Reference Include =" System.Xml.Linq" />
6668 <Reference Include =" System.Data.DataSetExtensions" />
6769 <Reference Include =" Microsoft.CSharp" />
7678 </ItemGroup >
7779 <ItemGroup >
7880 <None Include =" App.config" />
81+ <Compile Include =" DataConversion.cs" />
7982 <None Include =" packages.config" />
8083 <None Include =" port.cfg" >
8184 <CopyToOutputDirectory >Always</CopyToOutputDirectory >
8285 </None >
8386 </ItemGroup >
8487 <Import Project =" $(MSBuildToolsPath)\Microsoft.CSharp.targets" />
85- </Project >
88+ </Project >
You can’t perform that action at this time.
0 commit comments