コード例 #1
0
    public Vector3 convertFrom(Vector3 otherLoc, CoordSystem otherCoordSys)
    {
        //	Debug.Log (this + "convertFrom: " + otherLoc + "," + otherCoordSys.ToString());

        return(new Vector3(
                   x.convertFrom(otherLoc.x, otherCoordSys.x),
                   y.convertFrom(otherLoc.y, otherCoordSys.y),
                   z.convertFrom(otherLoc.z, otherCoordSys.z)));
    }