コード例 #1
0
		private static ContourPatternStepPair GetStraight(float currentSlope, float deltaSlope, float topLength, float bottomLength, bool bumpify) {
			ContourPatternStepStraight top = new ContourPatternStepStraight(currentSlope + deltaSlope, topLength, bumpify);
			ContourPatternStepStraight bottom = new ContourPatternStepStraight(currentSlope + deltaSlope, bottomLength, bumpify);
			ContourPatternStepPair straight = new ContourPatternStepPair(top, bottom);
			return straight;
		}
コード例 #2
0
ファイル: PathPattern.cs プロジェクト: wtrebella/Grappler
		private void AddInstructionPair(ContourPatternStepPair instructionPair) {
			if (instructionPairs == null) instructionPairs = new List<ContourPatternStepPair>();
			instructionPairs.Add(instructionPair);
		}
コード例 #3
0
		private static ContourPatternStepPair GetDivergentCurve(float currentSlope, float topDeltaSlope, float bottomDeltaSlope, float topRadius, float bottomRadius, bool bumpify) {
			ContourPatternStepCurve top = new ContourPatternStepCurve(currentSlope + topDeltaSlope, topRadius, bumpify);
			ContourPatternStepCurve bottom = new ContourPatternStepCurve(currentSlope + bottomDeltaSlope, bottomRadius, bumpify);
			ContourPatternStepPair curve = new ContourPatternStepPair(top, bottom);
			return curve;
		}