Пример #1
0
        public void RotateOrigin(Vector3 vRotation, Vector3 vOrigin)
        {
            VectorHelper.VectorRotateOrigin(V1, vRotation, vOrigin, out var v1);
            VectorHelper.VectorRotateOrigin(V2, vRotation, vOrigin, out var v2);
            VectorHelper.VectorRotateOrigin(V3, vRotation, vOrigin, out var v3);

            V1 = v1;
            V2 = v2;
            V3 = v3;
        }
Пример #2
0
        public void RotateOrigin(Vector3 vRotation, Vector3 vOrigin)
        {
            VectorHelper.VectorRotateOrigin(Vertex, vRotation, vOrigin, out var vertex);

            Vertex = vertex;
        }