public void SetMatrix3x3(apMatrix3x3 matrix4x4, CalculateType calculateType, bool isWeighted, float weight) { _valueType = UnitValueType.Matrix3x3; _val_Matrix3x3 = matrix4x4; _calculateType = calculateType; _isWeighted = isWeighted; _weight = weight; }
public void SetMatrixWrap(apMatrix matrixWrap, CalculateType calculateType, bool isWeighted, float weight) { _valueType = UnitValueType.MatrixWrap; if (_val_MatrixWrap == null) { _val_MatrixWrap = new apMatrix(matrixWrap); //<<복사를 하자 } else { _val_MatrixWrap.SetMatrix(matrixWrap); } _calculateType = calculateType; _isWeighted = isWeighted; _weight = weight; }
public void SetPosition(Vector2[] vertPositions, CalculateType calculateType, bool isWeighted, float weight) { _valueType = UnitValueType.VertPos; if (_val_VertPos == null || _val_VertPos.Length != vertPositions.Length) { _val_VertPos = new Vector2[vertPositions.Length]; } for (int i = 0; i < vertPositions.Length; i++) { _val_VertPos[i] = vertPositions[i]; } _calculateType = calculateType; _isWeighted = isWeighted; _weight = weight; }